Agent Runaway Risk Audit
by CashonlyTian
Audit AI agent autonomy settings to identify dangerous flags, blanket permissions, and runaway risks.
$29
Works with the AI Agents you already use
Agent Runaway Risk Audit
Example session with this skill installed
Audit the agent settings in the 'InternalTools' directory. Project name is 'AdminOps'. Use brand 'SecurityTeam' and accent '#FF0000'.
- Read your context and instructions
- Compiled the agent runaway risk
- Generated the document
I have completed the autonomy audit for project
AdminOps. The scan analyzed your agent configurations, scripts, and instruction files for runaway risk.
The audit detected multiple critical bypass flags and blanket permissions that allow the agent to execute destructive commands without user confirmation.
Audit Result: CRITICAL RISK
Score: 24/100 | Grade: F
Findings: 14 (6 Critical, 5 High, 3 Medium)
| Check | Score | Status |
|---|---|---|
| Dangerous Flags | 0/15 | Found --dangerously-skip-permissions in dev.sh |
| Auto-Approve | 0/15 | allow: ["*"] detected in .claudecode.json |
| Shell Permissions | 5/15 | Blanket Bash(*) enabled |
| Write Permissions | 0/10 | Unrestricted file write access |
| Network Access | 10/10 | Restricted to known domains |
| MCP Servers | 2/10 | High-risk filesystem-write server active |
| Hooks & Guards | 0/8 | No PreToolUse hooks found |
| Git Automation | 0/8 | auto-push: true found in workflow config |
| Sandbox | 5/5 | Running inside DevContainer |
| Instruction Safety | 2/4 | "Just do it" directive found in prompt.md |
Top 3 Prioritized Fixes:
- Remove the
--dangerously-skip-permissionsflag fromscripts/dev.sh. - Update
.claudecode.jsonto require manual approval forshellandfilesystemtools. - Disable
auto-pushin your git automation hooks to prevent unreviewed code from reaching the remote.
Files Generated:
scan-2025-05-20.png(Score-card Image)scan-report.md(Detailed Finding Log)
Next steps
- Review the full finding list in
scan-report.mdto see exact line numbers. - Apply the top 3 fixes to your configuration files.
- Re-run the audit to confirm your score has moved into the 'Safe' zone.
scan-2025-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Granting an AI agent broad autonomy without oversight is a security liability. This skill audits your agent configuration to prevent runaway behavior by identifying dangerous flags, blanket permissions, and missing safety guards.
What it does
- Permission Auditing checks for
--dangerously-skip-permissions,--yolo, and other bypass flags in scripts and configs. - Access Control Analysis identifies blanket shell, write, and network permissions that allow agents to act without confirmation.
- Risk Scoring calculates a 0-100 score based on 10 specific safety checks including MCP server risks and git automation.
- Instruction Scanning detects "never ask" or "just do it" directives in system prompts and instruction files.
- Visual Reporting generates a shareable score-card PNG and a prioritized Markdown report with fix instructions.
How it works
- Point the agent at a local project directory containing your agent configurations or start scripts.
- The skill runs a local python scan to evaluate 10 security categories including sandbox settings and protective hooks.
- Review the generated
scan-report.mdfor a graded risk level and a list of findings sorted by severity. - Apply the prioritized fixes to your configs and re-run the scan to verify the updated safety score.
Frameworks & tools
This tool scans configurations for Claude Code, Codex, Cursor, Copilot, and Gemini CLI. It analyzes local directories, environment files, and agent-specific instruction sets.
Why this beats prompting it yourself
Manual reviews often miss hidden flags in nested shell scripts or conflicting directives across multiple instruction files. This skill provides a systematic 10-point scoring framework that ensures no "yolo" settings remain active before you launch a task.
Use cases
- Audit a new "yolo mode" setup copied from a repository before execution.
- Generate safety compliance reports for clients before deploying agents on their codebases.
- Identify high-risk MCP servers that provide unnecessary filesystem or browser access.
- Verify that protective
PreToolUsehooks are properly implemented in a team environment.
Known limitations
The scanner cannot distinguish between flags used in throwaway sandboxes versus production hosts. It skips files over 2 MB and binary files.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Does not verify secret values. Cannot distinguish between sandbox and production environments. Skips files over 2MB. Only scans local directories.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago