
Security News
Microsoft Releases Open Source Toolkit for AI Agent Runtime Security
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.
@lcdp/assert-safe-chain
Advanced tools
Assert that you are using a proxy when installing dependencies At the moment, it works with @aikidosec/safe-chain and sfw proxies
To make sure that the command is run with one of these proxies, add the following to your package.json
{
"scripts": {
"preinstall": "pnpm dlx @lcdp/assert-safe-chain@1.0.8"
}
}
Using pnpm in the example, because it also gives you the minimal release age.
We recommend fixing the version of this package to avoid potential security issues.
This package exposes a bin that will be called by pnpm dlx, npx, ...
This script builds a tree of the system processes, so when you run pnpm install without a proxy, it will look something like this :
│ Process tree: [ │ 'node ./script/preinstall.mjs', │ 'node ~/.config/nvm/versions/node/v22.18.0/bin/pnpm install', │ '-zsh', │ '/usr/bin/tmux' │ ]
The script then parses each process to figure out if one is using aikido or sfw.
If it does, then the script exits successfully, so does the preinstall, and the installation can continue. If it doesn't, the script exits with an error, and the preinstall fails with a nice message.
FAQs
Assert that safe-chain npm alias is properly configured
We found that @lcdp/assert-safe-chain 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
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.