Security Swarm - Devin Docs

Open original

This is documentation for Devin's Security Swarm feature, which runs AI-powered security scans on code repositories to find vulnerabilities, then optionally assigns fixes to Devin for automated remediation. You configure scan profiles to shape what threats the AI looks for, review findings with severity and evidence, and can set up automatic recurring scans.

  • Scan profiles control investigation scope and let you define threat models, investigation guidance, triage rules, and sandbox validation parameters—you can create them manually or have Devin generate one from natural language descriptions.
  • Findings include severity, exploitability, affected code paths, remediation recommendations, and sandbox validation results; you can assign them to Devin to open pull requests, dismiss them as false positives, or adjust them.
  • Auto Scan runs incremental scans on new commits on a schedule (daily, weekly, monthly, or custom), making repeated scans cheaper than full repository rescans each time.
  • Interactive mode pauses before investigation to let you review and refine the proposed threat model before Devin investigates, and you can ingest findings from other scanners and have Devin triage and validate them alongside its own results.

Security Swarm Scanning Guide To run a security scan with Devin's Security Swarm, you need repository access, authorization to use Devin sessions, and the "Use code scans" permission. Starting a scan is straightforward: open Security in the sidebar, pick a repository, optionally choose a scan profile and effort level, then run it. The system generates a proposed threat model that you review before scanning begins. As findings surface, you see severity levels, affected code snippets, remediation recommendations, and sandbox validation results. You can assign findings to Devin for automatic remediation via pull request, provide feedback, or adjust them manually. Findings are grouped by status—Open (needs attention), Reviewed (done), or Dismissed (false positive/duplicate). Scan profiles control what gets checked and how. You can generate one using Devin by describing your application and threats in plain language, or build one manually. Each profile needs a clear name (like "Multi-tenant API authorization" rather than a team name), a description of scope, and a threat model that outlines attackers, sensitive assets, and trust boundaries. Investigation guidance tells Devin what evidence to collect and how to distinguish real vulnerabilities from theoretical ones. Triage guidance sets your severity standards so results match your organization's priorities. You can also enable sandbox validation if Devin can safely build and test the application, and set it to validate only critical/high findings if you want to save resources. Advanced options let you include or exclude specific file patterns and control how many files get grouped per investigation batch. For larger deployments, Security Swarm handles bulk scanning across multiple repositories at once—you can filter by name and skip repos already scanned with a profile. There's also an "Ingest findings" mode that pulls results from other scanners (like GitHub code scanning or Semgrep) so you can triage and remediate them alongside Devin's discoveries. Scans run at Normal effort (faster, larger batches) or Deep effort (slower but more thorough tracing). Interactive mode is enabled by default for first-time single-repo scans, letting you review and adjust the threat model before investigation starts. Organization-level profiles are standard, but enterprise admins can promote them to enterprise-wide visibility for consistency across teams.

Ask about this article