AI agent security guardrails for engineering teams
pip install opsentry==1.8.7 Copy PIP instructions
Three layers of defense for AI coding agents — detect, prevent, and make dangerous actions architecturally impossible.
Competitors match patterns and lose the arms race. OpSentry makes entire attack classes impossible.
# pip (recommended) pip install opsentry && opsentry install # Homebrew brew tap opsight-intelligence/opsentry && brew install opsentry && opsentry install # Git clone git clone https://github.com/opsight-intelligence/opsentry.git && cd opsentry && ./install.sh # GitHub Action (CI/CD) # uses: opsight-intelligence/opsentry-action@v1 Restart Claude Code after installation.
Pre-execution pattern matching blocks known attack vectors before they run. 8 hook scripts, 203 tests, battle-tested against 8 red team attacks.
Cross-file AST composition analysis catches exfiltration patterns that span multiple files at PR time. Import-graph-aware — detects when file-read, network-send, and sensitive-path references are assembled across imports.
Generated platform-specific sandbox configs that make dangerous actions impossible at the OS level. Not pattern matching — capability removal.
# Generate sandbox profiles from your guardrails.yaml opsentry sandbox generate --platform all --output-dir ./sandbox-profiles/ Attack Class How the Sandbox Defeats It Credential file read (.env, ~/.aws/) Denied at kernel level, regardless of command syntax Guardrail self-destruction (~/.claude/) Outside the sandbox namespace — invisible Data exfiltration via network Network denied by default or allowlisted Persistence (cron, launchd, systemd) Write access to persistence dirs denied Fork bombs / resource exhaustion Process and memory limits enforced You own the sandbox runtime — OpSentry provides the security intelligence. No vendor lock-in.
When rules are updated in this repo, every developer should pull and re-run:
cd ai-guardrails ./update.sh Verifying Installation To check that all guardrails are properly installed and unmodified:
./verify.sh Prerequisites jq is required by the hook scripts. Install with: macOS: brew install jq Ubuntu/Debian: sudo apt install jq Windows (WSL): sudo apt install jq What Is Blocked Sensitive Files All .env files, credential configs, SSL certificates, SSH keys, cloud provider configs, database connection files, and anything in secrets/, credentials/, private/, or keys/ directories.
rm -rf, sudo, chmod 777, kill -9, disk operations (mkfs, dd, fdisk), pipe-to-shell (curl | bash), and database destruction commands (DROP TABLE, TRUNCATE, DELETE without WHERE).
All git commands are blocked from agent execution. The agent will write git commands as text for the developer to review and run manually.
Curl/wget file uploads, base64 encoding of sensitive files, writes to /tmp or /dev/shm, clipboard exfiltration of secrets, and netcat outbound channels.
pip/npm/gem/go installs from git URLs, custom registries, or direct download links. Standard registry installs are allowed.
Self-modification of ~/.claude/, writes to system paths (/etc, /usr, shell configs), ssh/scp to remote hosts, docker run/exec/build, destructive terraform/kubectl commands.
US Social Security Numbers, credit card numbers (Visa, Mastercard, Amex, Discover), and Korean Resident Registration Numbers are blocked from being written into code. Synthetic test values (000-00-0000, 555-55-5555) are allowed.
The CLAUDE.md includes strict rules against including client confidential data (company names, internal identifiers, business metrics) in any outputs.
Hooks not firing? Run /hooks inside Claude Code to check if hooks are registered. Verify scripts are executable: ls -la ~/.claude/hooks/
"jq: command not found" errors? Install jq — see Prerequisites above.
Developer modified their settings.json? Run ./verify.sh to check for differences. Run ./install.sh to reset.
Open an issue on GitHub or reach out to the OpSight team.
This repo's main/develop are protected by a client-side pre-push hook (the org is on GitHub Free, which has no server-side branch protection on private repos). The hook lives in .git/hooks/, so it is not version-controlled — re-run the installer in every fresh clone, from your opsight-company checkout:
bash scripts/git-hooks/install-hooks.sh /path/to/this-repo It only guards opsight-intelligence remotes. For an intentional release push, override with OPSIGHT_ALLOW_PROTECTED_PUSH=1 git push .... All changes go through a feature//bugfix/ branch → PR into develop.
security guardrails claude-code ai-agent devsecops
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters Copy
The following attestation bundles were made for opsentry-1.8.7.tar.gz:
Publisher: publish.yml on opsight-intelligence/opsight-ai-governance
Details for the file opsentry-1.8.7-py3-none-any.whl.




