
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Check if the process is running in an SSH session
Useful for determining if your Node.js process is being executed over SSH, which can affect how you handle operations like opening files, browsers, or using system-specific commands.
npm install is-in-ssh
import isInSsh from 'is-in-ssh';
if (isInSsh) {
console.log('Running in an SSH session');
}
The package detects SSH sessions by checking for the presence of standard SSH environment variables:
SSH_CONNECTIONSSH_CLIENTSSH_TTYThese variables are automatically set by SSH servers when establishing a connection.
true for ssh localhost connections (which are technically SSH sessions)sudo)FAQs
Check if the process is running in an SSH session
The npm package is-in-ssh receives a total of 5,113,695 weekly downloads. As such, is-in-ssh popularity was classified as popular.
We found that is-in-ssh demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.