npx skills add ...
npx skills add aws/agent-toolkit-for-aws --skill networkfirewall
npx skills add aws/agent-toolkit-for-aws --skill networkfirewall
Configures AWS Network Firewall, the managed stateful VPC firewall: deploying a firewall and routing traffic through its endpoints; centralizing inspection for many VPCs with a transit gateway-attached firewall that keeps stateful flows symmetric across Availability Zones; filtering outbound traffic by domain name; logging and rule tuning; TLS inspection with ACM certificates; writing Suricata rules; managing rules as CloudFormation/IaC; blocking an indicator mid-incident; migrating off a third-party firewall appliance; and diagnosing dropped traffic. Applicable when the user wants to inspect or filter VPC traffic at Layer 3 and 4, allow or block outbound domains, manage firewall rules as IaC, or decrypt TLS. Not applicable for AWS WAF Layer 7 rules (waf skill), Gateway Load Balancer appliance inspection (gatewayloadbalancer skill), Route 53 Resolver DNS Firewall (route53 skill), or transit gateway route tables and appliance-mode attachments (transitgateway skill).
Domain expertise for configuring AWS Network Firewall, the managed stateful firewall and intrusion prevention service that filters traffic at the perimeter of a VPC using the Suricata inspection engine. Covers placing a firewall in the traffic path and routing traffic through its endpoints, centralizing inspection across VPCs with a transit gateway-attached firewall, filtering outbound traffic by domain name, logging and rule tuning, TLS inspection of encrypted traffic, and diagnosing why traffic is dropped, passed, or unmatched.
This skill is a router. Each customer task maps to a reference 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. Network Firewall is regional; pass --region
matching the firewall's Region on every aws network-firewall command. Firewall creation,
deletion, and several operations are asynchronous: poll the resource until it reaches the expected
state before depending on it.
| Goal | Reference |
|---|---|
| Place a firewall in the path and route VPC traffic through its endpoints | deploying a firewall and routing traffic through it |
| Inspect traffic across many VPCs from one place using a transit gateway-attached firewall | centralizing inspection with a transit gateway-attached firewall |
| Allow or block outbound connections by destination domain name | filtering outbound traffic by domain name |
| Turn on alert, flow, and TLS logging and tune rules from what they show | enabling firewall logging and tuning rules |
| Decrypt and inspect TLS traffic with ACM certificates | inspecting encrypted traffic with TLS inspection |
| Write custom stateful Suricata rules and fix rules that do not match | writing and troubleshooting stateful Suricata rules |
| Block a specific indicator immediately during an active security incident | responding to an active security incident |
| Manage the firewall, policy, and rules in CloudFormation or the CDK | managing firewall rules as IaC |
| Replace a third-party firewall appliance with Network Firewall | migrating from a third-party firewall appliance |
| Find out why traffic is dropped, passed, or not matching a rule | diagnosing dropped or unmatched traffic |
tls rules stop matching. Route there before
the customer writes rules against encrypted traffic.HOME_NET, evaluation
order, and rule layer before any rewrite. Route there for "traffic is dropped," "traffic passes
when it should not," or "my rule does not match." When the symptom is "traffic dropped with no
alert log at all," suspect post-quantum ClientHello fragmentation, covered in the diagnosing and
logging references.This skill manages network perimeter security, so a misconfiguration weakens the security posture of every VPC behind the firewall. Carry these into each task:
aws:forward_to_sfe leave traffic uninspected with no error.network-firewall: actions and resources
each operator needs (e.g., network-firewall:UpdateRuleGroup, network-firewall:DescribeFirewall),
never long-lived access keys or broad administrative access, since these permissions can change what
traffic is allowed.aws logs associate-kms-key), either SSE-S3 or a customer-managed AWS KMS key on
Amazon S3 buckets, and a customer-managed AWS
KMS key on Amazon Data Firehose delivery streams, because these logs expose
sensitive network metadata (source and destination IPs, domain names, and SNI values). You SHOULD
also encrypt the firewall's data at rest with a customer-managed AWS KMS key.aws:SourceArn (the firewall's
ARN) and aws:SourceAccount condition keys, so only this firewall in the expected account can
write to the destination and another account or service cannot (confused-deputy prevention).