Claude
Skills
Sign in
Back

fastly-ngwaf

Included with Lifetime
$97 forever

Performs an internal audit of Fastly Next-Gen WAF (NGWAF) workspaces to audit that critical templated protection rules are configured and enabled. Use when auditing NGWAF workspace security posture, checking for missing or disabled login protection rules (LOGINDISCOVERY, LOGINATTEMPT, LOGINSUCCESS, LOGINFAILURE), auditing credit card validation rules (CC-VAL-ATTEMPT, CC-VAL-FAILURE, CC-VAL-SUCCESS), auditing gift card protection rules (GC-VAL-ATTEMPT, GC-VAL-FAILURE, GC-VAL-SUCCESS), or identifying potential login endpoints not covered by NGWAF rules.

Securityscripts

What this skill does

## Trigger and scope
This skill is designed to be triggered when performing an internal audit of Fastly Next-Gen WAF (NGWAF) workspaces. It is particularly useful for security teams, DevOps engineers, or anyone responsible for managing NGWAF configurations who wants to ensure that critical templated protection rules are properly configured and enabled. The fastly-cli skill should be used to configure rules while this skill is used to identify any gaps in rule configuration or enablement, especially for login protection, credit card validation, and gift card validation rules.

# Fastly Next-Gen WAF Internal Audit

This skill audits Fastly NGWAF workspaces to understand the status of critical templated rules related to:
1. **Login Protection**: `LOGINDISCOVERY`, `LOGINATTEMPT`, `LOGINSUCCESS`, and `LOGINFAILURE`.
2. **Credit Card Validation**: `CC-VAL-ATTEMPT`, `CC-VAL-FAILURE`, and `CC-VAL-SUCCESS`.
3. **Gift Card Validation**: `GC-VAL-ATTEMPT`, `GC-VAL-FAILURE`, and `GC-VAL-SUCCESS`.

## Workflow

1. **Retrieve Workspaces**: Fetches all NGWAF workspaces associated with the account.
2. **Inspect Rules**: For each workspace, it retrieves the list of configured rules.
3. **Validate Critical Rules**: Specifically checks for the presence and enablement of the templated rules listed above.
4. **Recommend Actions**: If any of these rules are missing or disabled, it recommends configuring and enabling them to strengthen security posture against Account Takeover (ATO) and carding attacks.

## Usage

Assume that the user has correctly configured their FASTLY_API_KEY environment variable. Run the assessment script provided in the skill:

```bash
# Execute the assessment script
./scripts/assess_ngwaf_rules.sh
```

## API References

- [List Workspaces](https://www.fastly.com/documentation/reference/api/ngwaf/workspaces/#ngwafListWorkspaces)
- [List Workspace Rules](https://www.fastly.com/documentation/reference/api/ngwaf/rules/#ngwafListWorkspaceRules)
Files: 2
Size: 6.4 KB
Complexity: 31/100
Category: Security

Related in Security