← AWS Security Specialty: evidence-based security
04 / 25 · 30 MIN

WAF and GenAI application protection

Introduce filters with validation and retain data authorization.

Concept and mechanism

A filter needs testing against traffic actually serving the business. For AWS WAF, current documentation uses protection pack, also known as a web ACL. Rehearsing rules and observing Count helps understand matches before blocking.

A managed rule does not eliminate application-specific false positives. Classify legitimate and suspicious samples, define criteria, and bound exceptions. Count does not mean Block.

Updates can also take time to propagate; temporary differences merit convergence observation, while persistent differences need diagnosis. Repeating changes continuously can make effective configuration harder to determine.

Guided application

In GenAI applications, a created Bedrock Guardrail does not automatically protect every call. Integration needs to invoke the correct identifier and version or use ApplyGuardrail on the intended path. Test inputs, outputs, and segments actually evaluated.

Sensitive-information filters use probabilistic detection and do not replace authorization. A project document can be confidential without containing PII. Apply permissions to retrieval and source access and test with different identities, including cases that should be refused.

Record results and limit exposure during a pilot. The objective is to demonstrate concrete protection layers without claiming a filter eliminates every content or access risk.

Workshop: matching, blocking and false positives

A fictional sample contains four requests: L1 is a legitimate form with no match; L2 is a legitimate form matching the rule; A1 and A2 are malicious requests that also match. This is the only rule, it is in Count, and the default action is Allow.

Predict how many requests match, how many this rule blocks, and what changing only to Block would do. Answer: three matches and zero blocks; Block would reject three requests, including L2. The sample has one false positive among two legitimate requests and identifies both supplied attacks; it does not measure production detection rate.

Analyze L2’s characteristic, propose a bounded exception, and retest L1/L2 and attack variants. A whole-path exclusion could also release A1. Define observation and rollback before activation and track convergence after the change.

Workshop: authorize before retrieval

In a second model, Ana can access project North and Bruno only project South. N1 is a confidential North document with no PII; S1 belongs to South. The filter reports no PII for either.

Complete the matrix Ana/N1, Ana/S1, Bruno/N1 and Bruno/S1 before reading the answer: Allow, Deny, Deny, Allow. The filter does not change these permissions. For Bruno/N1, retrieval must be denied before adding N1 to context, even if the text passes filtering.

Also confirm that the actual path uses the intended guardrail and version; a playground test does not prove application integration. ML-based PII detectors depend on context, and a document can be confidential without PII. Deliver the matrix, integration evidence and negative tests.

This answer is a model with supplied inputs, with no Bedrock calls or claim of complete anonymization.

IN PRACTICE

A legitimate form matches a WAF rule. A non-PII document belongs to another project. Both require context beyond filter output.

Common pitfalls

Managed as infallible; Count as blocking; created guardrail as applied; no PII as public.

Related topics: Federation and delegation across entities · Policies, tags, and access analysis

Take this idea with you

Validate filtering and authorization using the design’s actual traffic and identities.

Create account

References

AWS is a trademark of Amazon.com, Inc. or its affiliates. bigsavant.com is an independent preparation platform and is not affiliated with, associated with, sponsored, authorised or endorsed by AWS. Content and questions are original, are not official exam questions, and completing our tests does not award or guarantee any certification. Names are used only to identify the subject. All other trademarks belong to their respective owners.