skills/mukul975/anthropic-cybersecurity-skills/implementing-policy-as-code-with-open-policy-agent/Gen Agent Trust Hub
implementing-policy-as-code-with-open-policy-agent
Pass
Audited by Gen Agent Trust Hub on Apr 20, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pyuses thesubprocess.runfunction to execute OPA CLI commands such aseval,test, andcheck. These calls are implemented using list-based arguments which prevents shell injection vulnerabilities. - [COMMAND_EXECUTION]: The script
scripts/process.pyexecutes theconftestandkubectlutilities viasubprocess.runto evaluate local manifests and query cluster audit violations. These operations use safe list-based command construction. - [EXTERNAL_DOWNLOADS]: The skill provides instructions to download the
conftestbinary from the official Open Policy Agent GitHub repository and theopabinary from the project's official website. These are trusted sources for these tools. - [EXTERNAL_DOWNLOADS]: Documentation in
references/api-reference.mdincludes standard package installation commands for therequestsandpyyamlPython libraries from public registries.
Audit Metadata