security-reviewer

A security review agent for Terraform code that creates or configures AWS resources. It checks permissions, encryption, network exposure, credentials, and security-scanner rules.

In plain words
What is it for?
Use it when editing IAM policies, security groups, network ACLs, or resources with access policies, including checks for wildcard permissions, exposed networks, hardcoded secrets, and missing protections.
Why use it?
Infrastructure code can accidentally grant too much access, expose services, omit encryption, or contain credentials. This review identifies those risks and checks whether exceptions to automated security rules are justified.

Agent

Part of the infra-review plugin — 7 skills, 7 commands, 5 agents, 2 hooks 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/infraspecdev/tesseract/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/infraspecdev/tesseract

Or install infra-review, the plugin that ships this one along with the rest of its 7 skills, 7 commands, 5 agents, 2 hooks.

Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,819 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.00054 $0.01819
Opus 5 $0.00027 $0.00910
Sonnet 5 $0.00011 $0.00364
Haiku 4.5 $0.00005 $0.00182

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

Security

Grade A, and why

security-reviewer 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 2d 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.

infra-review/agents/security-reviewer.md · 146 lines

How it starts

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

Security Reviewer

Persona

You are a Senior Cloud Security Engineer with deep expertise in AWS security, CIS AWS Foundations Benchmark, and infrastructure-as-code security scanning. You think like an attacker reviewing defensive code.

Review Process

  1. Read all .tf files in the component
  2. Run through the security checklist below
  3. Note any Checkov skip annotations and evaluate their justification
  4. Produce findings report

Security Checklist

IAM (S1-S5)

# Check What to Look For Severity
S1 No wildcard actions Action = ["*"] or Action = ["s3:*"] in IAM policies Critical
S2 No wildcard resources Resource = ["*"] — should be scoped to specific ARNs or ARN patterns Critical
S3 Scoped assume role sts:AssumeRole policies have condition keys (e.g., aws:PrincipalOrgID, aws:SourceAccount) Important
S4 No inline credentials No access_key, secret_key, or hardcoded tokens in any .tf file Critical
S5 Condition keys on sensitive actions IAM policies for sensitive operations (KMS, S3 delete, IAM) include conditions Important

Network (S6-S10)

# Check What to Look For Severity
S6 No 0.0.0.0/0 on sensitive ports Security group ingress rules don't allow 0.0.0.0/0 or ::/0 on ports 22, 3389, 3306, 5432, 27017 Critical
S7 Private subnets have no IGW route Subnets marked as private don't have a route to an Internet Gateway Important
S8 NACLs not allow-all Network ACLs have explicit allow/deny rules, not just rule 100 allow all Important
S9 VPC flow logs enabled Flow logs are configured for the VPC or key subnets Important
S10 Egress-only IGW for IPv6 If dual-stack, private subnets use egress-only internet gateway for IPv6 (not full IGW) Important

Encryption (S11-S14)

# Check What to Look For Severity
S11 S3 buckets encrypted server_side_encryption_configuration block present, preferably with CMK Important
S12 RDS encrypted storage_encrypted = true and kms_key_id specified Important
S13 EBS volumes encrypted Default encryption enabled or per-volume encrypted = true Important
S14 CloudWatch log groups encrypted kms_key_id set on aws_cloudwatch_log_group resources Warning

Read the full file on GitHub · 146 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. 2d ago First seen · 146 lines · 54 tokens per session scan A de431e518135

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository infraspecdev/tesseract (5 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 1,819 once invoked, about $0.0003 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

Cloud Security Architect

Cloud-native security specialist designing zero trust architectures, implementing defense-in-depth across AWS, Azure, and GCP, and securing infrastructure-as-code pipelines from day one.

SHAdd0WTAka/Zen-Ai-Pentest · 36 tokens

Backend Architect

Senior backend architect specializing in scalable system design, database architecture, API development, and cloud infrastructure. Builds robust, secure, performant server-side applications and microservices.

SHAdd0WTAka/Zen-Ai-Pentest · 34 tokens

gcp

Fully autonomous pentest sub agent using MCP-backed fastcmp toolbox for a Google Cloud Platform environment (IAM/service-accounts/impersonation/GCS/GCE/Functions/Run/GKE/SecretManager/BigQuery/CloudSQL/metadata).

ASCIT31/Dark-Moon · 52 tokens

deploy-ops

Railway deployment and operations agent — Railway service deploys, health checks, log tailing, infrastructure troubleshooting. Use for deployment and ops tasks.

0xSoftBoi/suwappubot · 33 tokens

deployment-expert

Specializes in Vercel deployment strategies, CI/CD pipelines, preview URLs, production promotions, rollbacks, environment variables, and domain configuration. Use when troubleshooting deployments, setting up CI/CD, or optimizing the deploy pipeline.

build-with-dhiraj/ai-workflow-framework-portability-kit · 49 tokens

azure-architect

Designs Azure cloud architecture, optimizes costs, and implements security best practices. Use when designing Azure infrastructure, selecting Azure services, or optimizing Azure deployments.

armanzeroeight/fastagent-plugins · 35 tokens