ecs-security

ecs-security is a skill for Claude Code, Codex from aws-samples/sample-apex-skills. It costs 230 tokens per session (6,890 once invoked), scanned B, original, MIT-0.

Security and compliance guidance for Amazon ECS, AWS's service for running containerized applications. It covers permissions, IAM roles, secrets, container hardening, and differences between the Fargate and EC2 deployment options.

In plain words
What is it for?
Use it to troubleshoot task and execution roles, IAM pass-role permissions, secret injection, trust policies, root filesystems, user privileges, and Linux capability settings.
Why use it?
It helps explain and fix common ECS permission and security problems, including role-assumption failures and unsafe container settings.

Skill for Claude CodeCodex ✓ vendor

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to troubleshoot task and execution roles, IAM pass-role permissions, secret injection, trust policies, root filesystems, user privileges, and Linux capability settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/sample-apex-skills/ecs-security
About the project

APEX Skills is a collection of agent skills that provide AWS platform-engineering knowledge and workflows to coding agents. Engineers use it for tasks involving services such as Amazon EKS and Kubernetes. The catalogue entries are its skills and agents.

aws-samples/sample-apex-skills · 92 stars · on GitHub · aws-samples.github.io

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.

Any agent
npx skills add aws-samples/sample-apex-skills --skill ecs-security
Clone the repo
git clone --depth 1 https://github.com/aws-samples/sample-apex-skills

Made for: Claude Code, Codex.

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 ecs-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/sample-apex-skills/ecs-security/github.svg)](https://agentmods.dev/skills/aws-samples/sample-apex-skills/ecs-security)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/sample-apex-skills/ecs-security"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-apex-skills/ecs-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.

agentmods 80×15 button for ecs-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/sample-apex-skills/ecs-security"><img src="https://agentmods.dev/badge/skills/aws-samples/sample-apex-skills/ecs-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 230 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,890 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00230 $0.06890
Opus 5.5 $0.00092 $0.02756
Sonnet 5.5 $0.00046 $0.01378
Haiku 4.5 $0.00023 $0.00689

Measured 2mo ago against content hash 9361d1a92ffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ecs-security scanned grade B with 1 finding 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 2mo 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- **Encryption** — EBS volumes and ephemeral storage encrypted (Fargate ephemeral storage is AES-256 encrypted by default on **platform version 1.4.0+**); CMK for ECR/EBS/logs under compliance regimes; **lock down IMDS f

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/ecs-security/SKILL.md · 143 lines

The source is not reproduced here

Licensed MIT-0

The repository is licensed MIT-0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 2mo ago Changed 9361d1a92ffb
  2. 2mo ago First seen · 143 lines · 230 tokens per session scan B 3d28f0155602

Subscribe to this mod's changes

ecs-security is a skill published in the GitHub repository aws-samples/sample-apex-skills (92 stars, last pushed today), licensed MIT-0. It adds 230 tokens to every session and 6,890 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ecs-security compared with skills from other repositories

ecs-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ecs-securityaws-samples/sample-apex-skillsSkill92todayMIT-0B230Claude Code, Codex
Triage EKS Node NotReadybregman-arie/devops-sre-skillsSkill277mo agoApache-2.0A22Claude Code, Codex
aws-serverless-patternsseandkendall/kiro-configSkill811d agoApache-2.0A43Claude Code, Codex
aws-diagram-htmlseandkendall/kiro-configSkill811d agoApache-2.0A83Claude Code, Codex
aws-diagram-pngseandkendall/kiro-configSkill811d agoApache-2.0A61Claude Code, Codex
cognito-email-migrationseandkendall/kiro-configSkill811d agoApache-2.0A57Claude Code, Codex
deploy-on-awsseandkendall/kiro-configSkill811d agoApache-2.0A65Claude Code, Codex