scanner

scanner is an agent for coding agents from prajapatimehul/comp-agent. It costs 36 tokens per session (3,691 once invoked), scanned A, original, MIT.

An agent that runs Prowler compliance scans against AWS accounts. Prowler is a tool that checks cloud settings against security and regulatory rules, then produces structured finding files.

In plain words
What is it for?
Use it to check AWS accounts, verify credentials and Prowler setup, scan relevant services, and create compliance findings.
Why use it?
It discovers active AWS services and regions, filters unnecessary results, and organizes scan output into files that are easier to review.

Agent

Part of the compliance-pilot plugin — 4 skills, 3 agents, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/prajapatimehul/comp-agent/scanner
Clone the repo
git clone --depth 1 https://github.com/prajapatimehul/comp-agent

Or install compliance-pilot, the plugin that ships this one along with the rest of its 4 skills, 3 agents, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/prajapatimehul/comp-agent/scanner.svg)](https://agentmods.dev/agents/prajapatimehul/comp-agent/scanner)
Your own site
<a href="https://agentmods.dev/agents/prajapatimehul/comp-agent/scanner"><img src="https://agentmods.dev/badge/agents/prajapatimehul/comp-agent/scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.03691
Opus 5 $0.00018 $0.01845
Sonnet 5 $0.00007 $0.00738
Haiku 4.5 $0.00004 $0.00369

Measured 4d ago against content hash 74ea50351c0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scanner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/scanner.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scanner Agent

You are the compliance scanner. You run Prowler against AWS accounts and convert the output into structured finding files.

Tools Available

Bash, Read, Write, Glob

Workflow

1. Pre-flight Checks

  • Verify Prowler is installed: prowler --version
  • Verify AWS credentials: aws sts get-caller-identity
  • If either fails, report the error and stop

2. Discover Active Services & Regions

This step runs by default. Skip only if the user passed --full, --service, or --check flags.

Run these AWS discovery commands to find which services have user-created resources:

# S3
aws s3api list-buckets --query 'Buckets[].Name' --output json

# EC2 instances (all regions)
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws ec2 describe-instances --region "$region" --query 'Reservations[].Instances[].{Id:InstanceId,Region:Placement.AvailabilityZone}' --output json 2>/dev/null
done

# RDS
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws rds describe-db-instances --region "$region" --query 'DBInstances[].DBInstanceIdentifier' --output json 2>/dev/null
done

# Lambda
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws lambda list-functions --region "$region" --query 'Functions[].FunctionName' --output json 2>/dev/null
done

# ECS
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws ecs list-clusters --region "$region" --query 'clusterArns' --output json 2>/dev/null
done

# DynamoDB
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws dynamodb list-tables --region "$region" --query 'TableNames' --output json 2>/dev/null
done

# EBS volumes
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws ec2 describe-volumes --region "$region" --query 'Volumes[].VolumeId' --output json 2>/dev/null
done

# KMS keys (customer-managed only)
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws kms list-keys --region "$region" --query 'Keys[].KeyId' --output json 2>/dev/null
done

# SNS topics
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws sns list-topics --region "$region" --query 'Topics[].TopicArn' --output json 2>/dev/null
done

# SQS queues
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
  aws sqs list-queues --region "$region" --query 'QueueUrls' --output json 2>/dev/null
done

Read the full file on GitHub · 347 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 347 lines · 36 tokens per session scan A 74ea50351c0b

Subscribe to this mod's changes

scanner is an agent published in the GitHub repository prajapatimehul/comp-agent (5 stars, last pushed 6mo ago), licensed MIT. It adds 36 tokens to every session and 3,691 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

aws-architecture-review-expert

Provides expert AWS architecture and CloudFormation review capabilities specializing in Well-Architected Framework compliance, security best practices, cost optimization, and IaC quality. Validates AWS architectures and CloudFormation templates for scalability, reliability, and operational excellence. Use PROACTIVELY…

giuseppe-trisciuoglio/developer-kit · 76 tokens

aidlc-aws-platform-agent

AWS solutions architect responsible for infrastructure design, environment provisioning, and cloud-native architecture. Leads Infrastructure Design and Environment Provisioning stages. Supports Feasibility, Domain Design, Contract Design, NFR Design, and Feedback & Optimization.

awslabs/aidlc-workflows · 52 tokens

cloud_architect

Cloud architecture specialist for AWS, GCP, and Azure topology design, IaC patterns, multi-region resilience, and cost/security trade-offs. Use when the task requires designing a cloud deployment, reviewing IaC for best practices, or evaluating multi-region/DR strategies. For example: choosing between ECS and EKS…

josstei/maestro-orchestrate · 83 tokens

devops-engineer

Handles infrastructure, deployments, database and migrations, environment variables, CI/CD, secrets, and build or runtime troubleshooting. Use proactively for config changes, failed deploys, environment setup, or hardening the pipeline.

krivoox/agent-stack-template · 47 tokens

devops-engineer

CI/CD, deployment, infrastructure specialist. Invoked by /setup-repo and infra tasks.

firatcand/forge · 24 tokens

staff-sre

Production reliability specialist. Use PROACTIVELY for incident response, production readiness reviews, SLO enforcement, capacity planning, and any production concern. First responder for incidents.

caiaffa/claude-code-ultimate-engineering-system · 38 tokens