Generated banner for Shieldadvanced
Generated logo for Shieldadvanced

Shieldadvanced

AWSOfficialPublished by AWS

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Configures AWS Shield Advanced for enhanced Distributed Denial of Service (DDoS) protection: subscribing accounts and adding resource protections, enabling automatic application layer (layer 7) mitigation through AWS WAF, configuring health-based detection with Route 53 health checks, setting up Shield Response Team (SRT) access and proactive engagement, reviewing DDoS events and requesting cost protection credits, and aggregating resources into protection groups. Applicable when the user wants stronger DDoS protection for internet-facing resources (CloudFront, Application or Network Load Balancers, Elastic IP addresses, Global Accelerator, or Route 53 hosted zones), wants expert help during an attack, or wants to recover attack-driven scaling charges. Routes to the right per-task procedure in references. Not applicable for authoring AWS WAF rules (waf skill), creating Route 53 health checks (route53 skill), or org-wide Shield Advanced rollout with Firewall Manager (firewallmanager skill).
— the description by AWS

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides domain expertise and procedural guidance for managing AWS Shield Advanced, the premium tier for DDoS protection on AWS. It acts as a central router to specific, self-contained reference procedures for subscribing accounts, protecting resources, enabling automatic application-layer mitigation, configuring health-based detection, managing Shield Response Team (SRT) support, reviewing DDoS events, and creating protection groups. The skill emphasizes the importance of defense-in-depth by integrating with AWS WAF and Route 53, while providing necessary security considerations for IAM roles and log management.

What it does

  • Routes users to specific procedures for Shield Advanced configuration tasks.
  • Guides the subscription process and addition of resources to Shield Advanced protection.
  • Facilitates the setup of automatic layer 7 mitigation via AWS WAF integration.
  • Configures health-based detection using Route 53 health checks to improve attack detection accuracy.
  • Manages Shield Response Team (SRT) access and proactive engagement settings.
  • Assists in reviewing DDoS events and requesting cost protection credits.

When to use it

  • When you need to implement enhanced DDoS protection for internet-facing resources like CloudFront or ALBs.
  • When you require expert assistance from the Shield Response Team during an active attack.
  • When you need to recover costs associated with attack-driven scaling.
  • When you want to tune detection sensitivity by grouping related resources.
  • When you need to integrate health-based detection to reduce false positives.

Advantages

  • Provides a structured, task-based approach to complex security configurations.
  • Ensures security best practices by mandating audit logging and least-privilege access.
  • Clarifies the distinction between detection-only features and active mitigation controls.
  • Reduces configuration errors by providing specific constraints for each task.
  • Centralizes guidance for both operational setup and post-event analysis.

Usage examples

“How do I subscribe my AWS account to Shield Advanced?”
The agent will route you to the specific reference procedure for subscribing and protecting resources, ensuring you follow the correct sequence of operations.
“I want the Shield Response Team to help me during an attack.”
The agent will guide you through setting up SRT support and proactive engagement, including the prerequisite of configuring a valid Route 53 health check.
“How can I group my load balancers for better DDoS detection?”
The agent will provide the procedure for creating a protection group and help you decide between sum, mean, or max aggregation based on your traffic topology.
“Can I use Shield Advanced to automatically block layer 7 floods?”
The agent will direct you to the procedure for enabling automatic application layer mitigation, which involves configuring AWS WAF rules to respond to detected threats.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/aws/shieldadvanced/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip shieldadvanced.zip -d .agents/skills

Documentation by AWS

AWS Shield Advanced

Overview

Domain expertise for configuring AWS Shield Advanced, the paid tier that adds enhanced Distributed Denial of Service (DDoS) protection, automatic application layer mitigation, attack visibility, expert support, and cost protection on top of the always-on AWS Shield Standard. Covers subscribing and protecting resources, automatic application layer mitigation, health-based detection, Shield Response Team (SRT) access and proactive engagement, event review and cost protection credits, and protection groups.

This skill is a router. Each customer task maps to a procedure file under references/. Read the matching reference in full before acting, then follow its constraints and steps. The reference files are self-contained: each carries its own decision tables, constraints, procedure, and troubleshooting.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. Shield Advanced is a global service: its control-plane API calls run in us-east-1, so pass --region us-east-1 on every aws shield command.

Which Shield Advanced task do you need?

GoalReference
Decide whether Shield Advanced is needed at all (vs Shield Standard + AWS WAF)deciding between Shield Standard and Advanced
Subscribe an account and add resources to protectionsubscribing to Shield Advanced and protecting resources
Respond to layer 7 floods automatically through AWS WAFenabling automatic application layer mitigation
Feed resource health into detection with a Route 53 health checkconfiguring health-based detection
Get the Shield Response Team to act or reach out during an attacksetting up SRT support and proactive engagement
Review a DDoS event and recover attack-driven scaling chargesreviewing DDoS events and requesting cost protection
Treat related resources as one unit for detectionaggregating resources into protection groups

Routing notes

  • Decide before you subscribe. Shield Advanced is a paid subscription that auto-renews on a one-year commitment. Before subscribing, confirm the customer actually needs it: Shield Standard (free, always on) plus AWS WAF rate-based rules and the AWS WAF Anti-DDoS managed rule group (AWSManagedRulesAntiDDoSRuleSet) covers many layer 7 cases at lower cost. Route to the deciding reference first when the customer has not made that call; route to the waf skill for the WAF rules themselves.

  • Subscribe and protect comes first. A subscription protects nothing on its own; resources have to be added explicitly. Every other task here assumes the resource is already subscribed and protected. Run the subscribing reference before any of the others if the customer is starting from scratch.

  • Automatic mitigation vs health-based detection. These are different controls and customers conflate them. Automatic application layer mitigation deploys AWS WAF rules during a layer 7 attack. Health-based detection feeds a Route 53 health check into Shield Advanced's detection so it reacts sooner. A customer can run either, both, or neither. Pick the reference that matches what they actually want.

  • Health check is also an SRT prerequisite. Proactive engagement (SRT reaching out) requires a Route 53 health check on the protected resource. If the customer wants proactive engagement, configuring health-based detection is the groundwork. The SRT reference points back to the health-based detection reference for that step.

  • Protection groups are detection-only. A protection group changes how Shield Advanced detects across a set of resources. It does not apply shared mitigation; automatic mitigation still works per resource. Use the protection-groups reference for detection tuning, not as a mitigation control.

  • WAF rules, health checks, and org rollout live elsewhere. Authoring the AWS WAF rules, the rate-based rule, or the web ACL is the waf skill. Creating the Route 53 health check is the route53 skill. Rolling Shield Advanced across an organization with Firewall Manager is the firewallmanager skill. This skill wires Shield Advanced to those pieces; it does not build them. AWS WAF is not optional alongside Shield Advanced: you SHOULD recommend an AWS WAF web ACL on every internet-facing protected resource (CloudFront distributions and Application Load Balancers) as defense in depth — Shield Advanced and AWS WAF are complementary layer 3/4 and layer 7 controls, and the rate-based rule that AWS WAF provides is also what cost protection requires.

Logging and monitoring

Visibility into both configuration changes and attack activity matters for every task here.

  • You SHOULD recommend enabling AWS CloudTrail so all Shield Advanced API calls (subscription, protection, SRT, and protection-group changes) are logged for audit purposes.

  • You SHOULD recommend enabling SSE-KMS encryption on the CloudTrail log bucket and CloudWatch Logs log group, since CloudTrail records sensitive API metadata (caller identities, resource ARNs, parameters) that must be encrypted at rest.

  • You SHOULD recommend CloudWatch alarms on Shield Advanced metrics (for example DDoSDetected and DDoSAttackBitsPerSecond) so operations staff are alerted when an event is detected.

  • You SHOULD recommend encrypting any SNS topics used for those alarms with SSE-KMS, since the notifications carry sensitive event data.

  • You SHOULD recommend confirming that all SNS topic subscribers for Shield Advanced alarms are authorized personnel approved to receive sensitive DDoS event notifications.

Security considerations

Shield Advanced setup creates IAM trust relationships and exposes log data, so call out the risks and the controls that contain them.

  • SRT role is a third-party principal. Granting SRT access creates an IAM role that drt.shield.amazonaws.com assumes to act in the account. Scope its trust policy with an aws:SourceAccount condition equal to the account ID to prevent confused-deputy assumption, grant it only the actions it needs, and revoke it with disassociate-drt-role when no longer required.

  • Log buckets shared with the SRT can leak data. AWS WAF and access logs capture request URIs, headers, and client IPs. Confirm those buckets have server-side encryption and carry no clear-text PII or secrets before sharing them with the SRT.

  • Least privilege for the operator. Scope the caller's IAM permissions to the minimum each procedure needs rather than broad Shield or administrator access.

  • Audit trail. Keep AWS CloudTrail enabled and logging shield:* calls so every configuration change leaves a record.

Additional Resources

Files

references/aggregating-resources-into-protection-groups.md

Aggregating Resources into Protection Groups

Overview

Domain expertise for grouping AWS Shield Advanced protected resources so Shield treats them as one unit for detection. Covers when a group helps (noisy per-resource detection, resources that share traffic patterns), the aggregation choice (sum, mean, max), the membership pattern (all, by resource type, or an explicit list), and the boundary that protection groups are detection-only and do not apply shared mitigation.

Does not cover subscribing and protecting resources, automatic mitigation, health-based detection, SRT setup, or event review; those are separate references.

Execute commands using the AWS MCP server when connected (sandboxed execution, audit logging, observability). Fall back to the AWS CLI otherwise. Shield Advanced control-plane calls run in us-east-1; pass --region us-east-1 on every command.

Table of Contents

  • Overview

  • Workflow

  • Decision: aggregation

  • Decision: membership pattern

  • Protection groups are detection-only

  • Troubleshooting

  • Security considerations

  • Procedure

  • Additional Resources

Workflow

To aggregate resources into a protection group end to end, follow the procedure exactly. See the Procedure section below.

The procedure covers:

  • Confirming the member resources are already individually protected

  • Choosing the aggregation and the membership pattern

  • Creating the protection group

  • Surfacing the console link to verify the group

Always tell the customer (state all of these)

When advising on protection groups, you MUST state ALL of the following points together, not a subset:

  1. Protection groups are detection and reporting only — they do NOT apply shared mitigation; automatic mitigation still applies per individual resource, never to the group as a whole.

  2. Every member must already be individually protected with Shield Advanced before it joins the group — a group built over unprotected resources shows zero members and aggregates nothing.

  3. For a multi-tier topology (e.g. CloudFront in front of an Application Load Balancer in front of EC2), use MAX aggregation so one high-traffic tier is not diluted by the others.

The sections below give the detail behind each point.

Decision: aggregation

AggregationBehaviorUse when
SumCombines traffic across all membersMany small-traffic resources, or a new resource that needs to inherit an existing baseline; reduces false positives
MeanAverages traffic across membersMembers with uniform traffic, such as a fleet of load balancers
MaxTracks the highest single-member trafficMulti-tier applications where one tier carries most of the traffic (for example CloudFront in front of an Application Load Balancer in front of EC2)

Constraints:

  • You MUST match the aggregation to the customer's topology rather than leaving it as a guess; the wrong choice makes detection too sensitive or too slow

  • You SHOULD use sum for many small-traffic resources or for a new resource that needs an existing baseline, mean for uniform-traffic members, and max for a multi-tier application

Decision: membership pattern

PatternBehavior
AllAll protected resources regardless of type
By resource typeAll protected resources of a specified resource type
ArbitraryA manually specified list of resource ARNs

Constraints:

  • You MUST choose a membership pattern that matches how the customer wants resources grouped

  • You SHOULD use an arbitrary list when the customer wants a specific set of related resources (for example a distribution and the load balancer behind it) rather than a whole resource type

Protection groups are detection-only

A protection group changes detection across its members; it does not apply mitigation as a group. Customers expect a group to mitigate the whole set and are surprised when it does not.

Constraints:

  • You MUST state that protection groups are for detection and reporting only

  • You MUST tell the customer that automatic application layer mitigation still applies to individual resources, not to the group, even when the resources are grouped

  • You MUST NOT present a protection group as a shared mitigation control

  • You MUST tell the customer that every member resource must already be individually protected with Shield Advanced before it can be in the group: a protection group only aggregates resources that already carry their own protection, so a group built over unprotected resources shows zero members and aggregates nothing. State this membership prerequisite explicitly, not just by implication

Troubleshooting

A protection group shows zero members

The pattern only matches resources that are already individually protected. Protect the resources first, then they fall into the group (Procedure, Step 1).

Grouping did not mitigate an attack across the members

Protection groups are detection-only. Mitigation still applies per resource (Protection groups are detection-only).

Detection is too sensitive or too slow after grouping

The aggregation does not match the topology. Reconsider sum vs mean vs max (Decision: aggregation).

Security considerations

Protection groups change detection across protected resources, so call out the risks and the controls that contain them.

  • Removing the Shield rule group silently disables mitigation. A protection group is detection-only and does not apply shared mitigation; automatic application layer mitigation still runs per resource through its ShieldMitigationRuleGroup rule group. Warn against removing that rule group from a web ACL during cleanup, since its removal turns off automatic mitigation for every resource using that web ACL with no obvious signal.

  • Least privilege for the operator. Scope the caller's IAM permissions to the minimum this procedure needs (shield:ListProtections, shield:CreateProtectionGroup, shield:ListProtectionGroups) rather than broad Shield or administrator access.

  • Audit trail. Keep AWS CloudTrail enabled and logging shield:* calls so every protection-group configuration change leaves a record, and confirm the CloudTrail trail uses SSE-KMS encryption on its S3 log bucket and CloudWatch Logs log group, since CloudTrail records contain sensitive API metadata (caller identities, resource ARNs, parameters).

Procedure

Overview

This procedure creates a protection group over resources that are already individually protected, with the chosen aggregation and membership pattern, then surfaces the console link to verify.

Parameters
  • protection_group_id (required): A name for the protection group.

  • aggregation (required): SUM, MEAN, or MAX.

  • pattern (required): ALL, BY_RESOURCE_TYPE, or ARBITRARY.

  • resource_type (required when pattern is BY_RESOURCE_TYPE): The resource type to group. ALL does not take a resource type.

  • members (required when pattern is ARBITRARY): The list of resource ARNs to include.

Constraints for parameter acquisition:

  • You MUST ask for all required parameters upfront in a single prompt

  • You MUST confirm every intended member is already an individual Shield Advanced protection (via list-protections) BEFORE creating the group. A protection group never protects an unprotected resource; if members are not already protected the group is created with zero effective members and silently protects nothing

Steps
1. Verify dependencies

Constraints:

  • You MUST confirm credentials with aws sts get-caller-identity

  • You SHOULD use temporary credentials from an assumed IAM role (for example via IAM Identity Center or an instance profile) rather than long-lived IAM user access keys for these security-sensitive Shield Advanced operations

  • You SHOULD scope the caller's IAM permissions to the minimum this procedure needs (shield:ListProtections, shield:CreateProtectionGroup, shield:ListProtectionGroups) rather than broad Shield or administrator access

  • You SHOULD confirm AWS CloudTrail is enabled and logging shield:* calls so every Shield Advanced configuration change leaves an audit trail

  • You SHOULD confirm the CloudTrail trail is configured with SSE-KMS encryption on its S3 log bucket and CloudWatch Logs log group, since CloudTrail records contain sensitive API metadata (caller identities, resource ARNs, parameters)

  • You MUST confirm the member resources are already protected:

    aws shield list-protections --region us-east-1
2. Create the protection group

Constraints:

  • You MUST create the group with the chosen aggregation and pattern. For an ALL pattern (every protected resource regardless of type), do not pass --resource-type:

    aws shield create-protection-group --protection-group-id {protection_group_id} \
      --aggregation {aggregation} --pattern ALL --region us-east-1
  • For a BY_RESOURCE_TYPE pattern, you MUST pass the resource type:

    aws shield create-protection-group --protection-group-id {protection_group_id} \
      --aggregation {aggregation} --pattern BY_RESOURCE_TYPE --resource-type {resource_type} --region us-east-1
  • For an ARBITRARY pattern, you MUST pass the member ARNs instead of a resource type:

    aws shield create-protection-group --protection-group-id {protection_group_id} \
      --aggregation {aggregation} --pattern ARBITRARY --members '["{member_arn}"]' --region us-east-1

Constraints:

  • You MUST confirm the group was created:

    aws shield list-protection-groups --region us-east-1
  • You MUST present the Shield protected-resources console link and tell the customer to open it and confirm the protection group and its members:

    https://us-east-1.console.aws.amazon.com/wafv2/shieldv2#/protections
Example
Example input
{
  "protection_group_id": "edge-and-origin",
  "aggregation": "MAX",
  "pattern": "ARBITRARY",
  "members": [
    "arn:aws:cloudfront::111122223333:distribution/EDFDVBD6EXAMPLE",
    "arn:aws:elasticloadbalancing:us-east-1:111122223333:loadbalancer/app/origin-alb/abc"
  ]
}
Example output
Confirmed both members are individually protected.
Created protection group edge-and-origin with MAX aggregation over the distribution and origin ALB.
Note: this groups detection only — automatic mitigation still applies per resource.
Open the Shield console and confirm the protection group:
https://us-east-1.console.aws.amazon.com/wafv2/shieldv2#/protections
Example input (group every protected Application Load Balancer)
{
  "protection_group_id": "all-albs",
  "aggregation": "MEAN",
  "pattern": "BY_RESOURCE_TYPE",
  "resource_type": "APPLICATION_LOAD_BALANCER"
}
Example output (group every protected Application Load Balancer)
Confirmed protected Application Load Balancers exist.
Created protection group all-albs with MEAN aggregation over every protected ALB.
Note: this groups detection only — automatic mitigation still applies per resource.
Open the Shield console and confirm the protection group:
https://us-east-1.console.aws.amazon.com/wafv2/shieldv2#/protections
Troubleshooting
The group shows zero members

The members are not individually protected. Protect them first (Step 1).

Grouping did not mitigate across members

Protection groups are detection-only (Protection groups are detection-only).

Detection is too sensitive or too slow

Reconsider the aggregation against the topology (Decision: aggregation).

Additional Resources

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
AWS
Publisher
AWS (Official)
Source
aws/agent-toolkit-for-aws · skills/specialized-skills/networking-and-content-delivery-skills/shieldadvanced · commit 0a218f8
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • NOTICE (added by AutoGineer from NOTICE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by AWS.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download shieldadvanced.zip