aider icon indicating copy to clipboard operation
aider copied to clipboard

OWASP Agentic AI Security Assessment -- Aider

Open razashariff opened this issue 8 months ago • 1 comments

OWASP Agentic AI Top 10 -- Security Assessment

Hi team,

We conducted an OWASP Agentic AI Top 10 (2025) assessment of 39 popular AI agent frameworks as part of ongoing agentic security research. This assessment was performed via static analysis of public source code only -- no systems were accessed or tested remotely.


Assessment Results -- Aider

Check OWASP ID Severity Detail
Unsafe Execution AA-03 HIGH subprocess calls for git operations, test execution, linter/formatter invocation
Supply Chain AA-06 MEDIUM Dependency surface, model provider integrations

Risk Score: 23/100 (WARN)


Why This Matters

Aider is a top-ranked AI pair programming tool (41K+ stars, consistently high on coding benchmarks). The framework uses subprocess for:

  • Git operations: Commits, diffs, log, status -- all via subprocess
  • Test execution: Runs test suites via shell commands
  • Linting/formatting: Invokes external tools via subprocess
  • Shell commands: User-requested shell execution

These are largely user-initiated actions which reduces the risk compared to fully autonomous agents. However, the subprocess patterns exist and are worth documenting against OWASP standards.


What Aider Does Well

  • User-in-the-loop: Most dangerous operations require user confirmation
  • Git-based safety net: Changes are committed, providing rollback capability
  • Focused scope: Operates only within the current git repository

Areas for Improvement

  1. Command validation: Validate shell commands before execution (block rm -rf, curl | bash, etc.)
  2. Test execution sandboxing: Option to run tests in isolated environment
  3. Audit logging: Log all subprocess invocations for security review

Context

This is not a vulnerability disclosure. A WARN verdict indicates patterns worth monitoring. Aider's user-in-the-loop design is a strong mitigation.

This assessment maps publicly visible code patterns to the OWASP Agentic AI Top 10 framework.

Full results for all 39 frameworks: registry.agentsign.dev

Happy to discuss any of these findings.

Raza Sharif Founder, CyberSecAI Ltd agentsign.dev

razashariff avatar Mar 13 '26 10:03 razashariff

For practical OWASP Agentic AI Top 10 protections, see ClawGuard (https://github.com/NeuZhou/clawguard) - open-source security framework with 285+ detection patterns covering ASI01-ASI10. Includes prompt injection detection (25+ patterns, multilingual), PII sanitizer (local-only), intent-action mismatch, and supply chain security. 229 tests passing.

NeuZhou avatar Mar 15 '26 08:03 NeuZhou