Agent Runaway Risk Audit

    by CashonlyTian

    1

    Audit AI agent autonomy settings to identify dangerous flags, blanket permissions, and runaway risks.

    $29

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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)

    CheckScoreStatus
    Dangerous Flags0/15Found --dangerously-skip-permissions in dev.sh
    Auto-Approve0/15allow: ["*"] detected in .claudecode.json
    Shell Permissions5/15Blanket Bash(*) enabled
    Write Permissions0/10Unrestricted file write access
    Network Access10/10Restricted to known domains
    MCP Servers2/10High-risk filesystem-write server active
    Hooks & Guards0/8No PreToolUse hooks found
    Git Automation0/8auto-push: true found in workflow config
    Sandbox5/5Running inside DevContainer
    Instruction Safety2/4"Just do it" directive found in prompt.md

    Top 3 Prioritized Fixes:

    1. Remove the --dangerously-skip-permissions flag from scripts/dev.sh.
    2. Update .claudecode.json to require manual approval for shell and filesystem tools.
    3. Disable auto-push in 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

    1. Review the full finding list in scan-report.md to see exact line numbers.
    2. Apply the top 3 fixes to your configuration files.
    3. Re-run the audit to confirm your score has moved into the 'Safe' zone.

    scan-2025-05-20.png

    PDF · document

    Generated

    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

    1. Point the agent at a local project directory containing your agent configurations or start scripts.
    2. The skill runs a local python scan to evaluate 10 security categories including sandbox settings and protective hooks.
    3. Review the generated scan-report.md for a graded risk level and a list of findings sorted by severity.
    4. 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 PreToolUse hooks 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Browser
    Network Access
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    The audit scans for critical vulnerabilities like 'yolo' flags, blanket shell/network permissions, and 'never ask' directives in system prompts that bypass human-in-the-loop oversight.

    This skill is compatible with popular AI agent frameworks and IDEs including Claude Code, Cursor, Codex, Copilot, and Gemini CLI, as well as custom scripts using MCP servers.

    No, the scan runs as a local Python-based process on your machine, ensuring your sensitive configuration files and instruction sets never leave your local environment.

    You receive the core Python scanning engine, the 10-point risk scoring framework, and a template for generating both visual PNG scorecards and detailed Markdown reports.

    Simply point the skill at your local project directory or environment files; it will automatically parse the configuration scripts and provide a prioritized list of security fixes.

    The audit is specifically designed to catch hidden flags in nested scripts and conflicting directives across multiple files that are easily overlooked during a manual human review.

    New in Security