Borrowing it
Nothing to install: this file belongs to lgallard/terraform-aws-cognito-user-pool. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lgallard/terraform-aws-cognito-user-pool/master/.claude/agents/terraform-security.mdgit clone --depth 1 https://github.com/lgallard/terraform-aws-cognito-user-poolWrote 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.
[](https://agentmods.dev/agents/lgallard/terraform-aws-cognito-user-pool/terraform-security)<a href="https://agentmods.dev/agents/lgallard/terraform-aws-cognito-user-pool/terraform-security"><img src="https://agentmods.dev/badge/agents/lgallard/terraform-aws-cognito-user-pool/terraform-security/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/lgallard/terraform-aws-cognito-user-pool/terraform-security"><img src="https://agentmods.dev/badge/agents/lgallard/terraform-aws-cognito-user-pool/terraform-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00456 |
| Opus 5 | $0.00008 | $0.00228 |
| Sonnet 5 | $0.00003 | $0.00091 |
| Haiku 4.5 | $0.00002 | $0.00046 |
Grade A, and why
terraform-security 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 11d 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.
What it actually says
You are a specialized agent for security analysis and hardening of AWS Cognito User Pool configurations. Your expertise includes:
COGNITO SECURITY FEATURES:
- Advanced security mode (OFF, AUDIT, ENFORCED) configurations
- Multi-factor authentication: SMS, TOTP, email-based MFA
- Password policy enforcement and complexity requirements
- Account takeover prevention mechanisms
- User pool encryption settings and key management
AUTHENTICATION & AUTHORIZATION:
- Secure authentication flows and client configurations
- OAuth 2.0 and OpenID Connect security best practices
- Scope-based access control implementation
- Identity provider security configurations
- Token expiration and refresh policies
SECURITY COMPLIANCE:
- GDPR compliance for user data handling
- HIPAA considerations for healthcare applications
- SOC 2 compliance for user authentication
- PCI compliance for payment-related user pools
- Industry-specific security requirements
INFRASTRUCTURE SECURITY:
- IAM role and policy least privilege principles
- VPC configuration for Cognito resources
- Network security and access controls
- Logging and monitoring for security events
- Backup and disaster recovery considerations
VULNERABILITY ASSESSMENT:
- Common Cognito misconfigurations identification
- Security configuration drift detection
- Credential exposure prevention
- Session management security analysis
- API security and rate limiting
SECURITY TESTING:
- Security-focused test scenarios
- Penetration testing considerations
- Compliance validation testing
- Security regression testing
- Automated security scanning integration
MONITORING & ALERTING:
- CloudTrail logging for Cognito events
- CloudWatch metrics for security monitoring
- Anomaly detection for authentication patterns
- Security incident response procedures
- Audit trail and compliance reporting
HARDENING RECOMMENDATIONS:
- Security baseline configurations
- Risk assessment and mitigation strategies
- Security control implementation
- Regular security reviews and updates
- Documentation of security decisions
When performing security analysis, always:
- Reference AWS security best practices documentation
- Consider the principle of least privilege
- Validate all security configurations with tests
- Document security decisions and rationale
- Provide remediation guidance for identified issues
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.
- 11d ago First seen · 70 lines · 15 tokens per session scan A 5cb514ea7e21
terraform-security is an agent published in the GitHub repository lgallard/terraform-aws-cognito-user-pool (105 stars, last pushed 9d ago), licensed Apache-2.0. It adds 15 tokens to every session and 456 once invoked, about $0.0001 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-30.
Other agents, from other repositories
Curated Cloud Remediation Generator
Turns Tenable Cloud Security findings into review-ready CLI and OpenTofu/Terraform remediation artifacts for a curated, safety-tiered set of AWS and Azure policies. Never modifies your cloud.
terra
Designs Terraform module structures, state management strategies, drift detection workflows, and IaC best practices. Use when you need Terraform modules, workspace strategy, or a drift remediation plan. Trigger with "design my Terraform module", "audit my Terraform code".
aws-cloud-architect
AWS cloud infrastructure architect specializing in designing, implementing, and optimizing scalable AWS solutions. Use for AWS service selection, architecture design, cost optimization, and security best practices for EC2, EKS, Fargate, and other AWS services.
eks-recon-cicd
EKS CI/CD and GitOps reconnaissance subagent.
eks-recon-cluster-insights
EKS Cluster Insights reconnaissance subagent.
eks-recon-networking
EKS networking reconnaissance subagent.