Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 1.06 KB

05.allow.md

File metadata and controls

50 lines (43 loc) · 1.06 KB

AWS Security Group Allow Use Case

Objective

This use case is specific to AWS, highlighting actuator specifiers and security group modifiers.

Scenario

AWS security groups, their virtual stateful firewall implementation that controls traffic for AWS instances and services, support only allow rules. A 'deny' action would unallow an existing rule.

Account/region/security_group_id specification must be supplied for the actuator.

OpenC2 JSON Command

{
    "action": "deny",
    "actuator": {
        "slpf": {
            "asset_id": "arn:aws:ec2:us-east-1:123456789012:network-acl/acl-01234567"
        }
    },
    "args": {
        "response_requested": "complete",
        "slpf": {
            "insert_rule": 101,
            "direction": "ingress"
        }
    },
    "target": {
        "ipv4_connection": {
            "src_addr": "1.2.3.4",
            "dst_port": 443,
            "protocol": "tcp"
        }
    }
}

Response

{
    "status": 200,
    "results": {
        "slpf": {
            "rule_number": 101
        }
    }
}