Skills Explorer Add Skills

scanning-with-aws-security-agent

An agent skill by aws, from aws/agent-toolkit-for-aws. Tags: cloud, code-review, scanning, security, validation.

What it does

Run an AWS Security Agent scan on the workspace — uploads the source to AWS, scans it with the managed Security Agent service, and returns ranked, verified findings with code locations and remediations. Use when the user asks to scan code, find vulnerabilities, run a security scan or review, check security issues, check scan status, show findings, list recent scans, or stop a scan.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add aws/agent-toolkit-for-aws --skill scanning-with-aws-security-agent

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws
cp -r agent-toolkit-for-aws/plugins/aws-agents-for-devsecops/skills/scanning-with-aws-security-agent ~/.claude/skills/scanning-with-aws-security-agent

Safety box score

Grade C, moderate risk: 32 of 100 risk points, rated 2026-10-21. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill runs shell commands to zip the current workspace, upload it to AWS, start and poll Security Agent code-review jobs, and write local scan state under `.security-agent/`. The main risk is that the entire workspace is shipped off-machine for scanning, which can expose embedded secrets or sensitive source; everything else is mostly bounded to the repo and AWS account.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)It explicitly shells out to `zip`, `stat`, `md5sum`, and multiple `aws ...` CLI commands to perform the scan workflow; there is no arbitrary code evaluation, but real command execution is required.
Network access2 (moderate)The workflow uploads `/tmp/source.zip` to S3 (`aws s3 cp ... s3://<bucket>/...`) and calls AWS Security Agent APIs, so repository contents and metadata leave the machine.
Filesystem reach1 (low)It reads `.security-agent/config.json` and `.security-agent/scans.json`, and writes `.security-agent/findings-{scan_id}.md`; the changes are confined to the workspace.
Secrets & credentials2 (moderate)The full-workspace archive can include source files, `.env` files, keys, or tokens, and the skill uploads that archive to AWS for scanning.
Privilege & persistence0 (none)No sudo, global installs, service registration, shell startup edits, or OS-level configuration changes are requested.
Instruction hijack surface0 (none)There is no hidden or external prompt injection; the file even says, `Always ask before running — never auto-trigger scans.`
Irreversible actions1 (low)It can auto-run setup when config is missing and then start/poll a remote scan on the user's behalf, but only after a scan request and within the user's AWS account.
Transparency0 (none)The file is plain Markdown with visible commands; there are no binaries, base64 blobs, or downloaded installers.

Before installing

Rated 2026-10-21 by an automated review of 1 file from the skill's repository.

Source

Repository
aws/agent-toolkit-for-aws (all skills from this repository)
Path
plugins/aws-agents-for-devsecops/skills/scanning-with-aws-security-agent/SKILL.md
Branch
main
Collection
aws-agents-for-devsecops
Updated
2026-09-19