Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
{
"_about": "Complex AWS IAM fixture for the T3.2 effective-permissions resolver. Exercises identity-based policies (direct + via group), resource-based policies (S3 bucket policy, KMS key policy, SQS queue policy), Service Control Policies (allow-list + explicit deny), wildcard expansion against a per-resource action catalogue, conditions (StringEquals, StringLike), and deny-overrides. The aligned `aws_iam_simulator.json` next to this fixture is the synthesised IAM Policy Simulator reference set the test gate compares against \u2014 it captures, for 50 (principal, resource) pairs, the exact allow set every public IAM call resolves to with the same input.",
"account_id": "111122223333",
"action_catalogue": {
"s3": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:ListBucket",
"s3:GetBucketAcl",
"s3:PutBucketAcl",
"s3:GetObjectVersion",
"s3:PutBucketPolicy",
"s3:DeleteBucket",
"s3:GetBucketLocation"
],
"kms": [
"kms:Decrypt",
"kms:Encrypt",
"kms:GenerateDataKey",
"kms:DescribeKey",
"kms:ListKeys",
"kms:ScheduleKeyDeletion"
],
"sqs": [
"sqs:SendMessage",
"sqs:ReceiveMessage",
"sqs:DeleteMessage",
"sqs:GetQueueAttributes",
"sqs:PurgeQueue"
],
"ec2": [
"ec2:DescribeInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:TerminateInstances",
"ec2:RunInstances"
],
"iam": [
"iam:GetRole",
"iam:PassRole",
"iam:CreateRole",
"iam:DeleteRole",
"iam:ListRoles",
"iam:AttachRolePolicy"
]
},
"principals": [
{
"id": "u-alice",
"arn": "arn:aws:iam::111122223333:user/alice",
"type": "user",
"groups": [
"g-data-readers"
],
"attached_policies": [
"p-alice-direct"
],
"inline_policies": []
},
{
"id": "u-bob",
"arn": "arn:aws:iam::111122223333:user/bob",
"type": "user",
"groups": [
"g-data-writers"
],
"attached_policies": [],
"inline_policies": [
"p-bob-inline"
]
},
{
"id": "u-carol",
"arn": "arn:aws:iam::111122223333:user/carol",
"type": "user",
"groups": [
"g-data-readers",
"g-data-writers"
],
"attached_policies": [],
"inline_policies": []
},
{
"id": "u-dave",
"arn": "arn:aws:iam::111122223333:user/dave",
"type": "user",
"groups": [],
"attached_policies": [
"p-dave-admin"
],
"inline_policies": []
},
{
"id": "r-pipeline",
"arn": "arn:aws:iam::111122223333:role/pipeline-runner",
"type": "role",
"groups": [],
"attached_policies": [
"p-pipeline-cicd"
],
"inline_policies": []
},
{
"id": "u-erin",
"arn": "arn:aws:iam::111122223333:user/erin",
"type": "user",
"groups": [],
"attached_policies": [
"p-erin-conditional"
],
"inline_policies": []
},
{
"id": "u-frank",
"arn": "arn:aws:iam::111122223333:user/frank",
"type": "user",
"groups": [
"g-data-writers"
],
"attached_policies": [],
"inline_policies": [],
"permissions_boundary": "p-boundary-s3-read"
},
{
"id": "u-gina",
"arn": "arn:aws:iam::111122223333:user/gina",
"type": "user",
"groups": [
"g-data-writers"
],
"attached_policies": [],
"inline_policies": []
}
],
"groups": [
{
"id": "g-data-readers",
"name": "DataReaders",
"attached_policies": [
"p-readers-s3"
],
"inline_policies": []
},
{
"id": "g-data-writers",
"name": "DataWriters",
"attached_policies": [
"p-writers-s3",
"p-writers-sqs"
],
"inline_policies": []
}
],
"policies": [
{
"id": "p-alice-direct",
"name": "AliceDirectKMS",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:DescribeKey"
],
"Resource": "arn:aws:kms:us-east-1:111122223333:key/finance"
}
]
}
},
{
"id": "p-bob-inline",
"name": "BobInline",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:DeleteObject",
"Resource": "arn:aws:s3:::reports-prod/*"
}
]
}
},
{
"id": "p-dave-admin",
"name": "DaveAdmin",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
}
]
}
},
{
"id": "p-pipeline-cicd",
"name": "PipelineCICD",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
"Resource": [
"arn:aws:s3:::artifacts-prod",
"arn:aws:s3:::artifacts-prod/*"
]
},
{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
}
]
}
},
{
"id": "p-erin-conditional",
"name": "ErinConditional",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports-prod/*",
"Condition": {
"StringEquals": {
"aws:RequestedRegion": "us-east-1"
}
}
}
]
}
},
{
"id": "p-readers-s3",
"name": "ReadersS3",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::reports-prod",
"arn:aws:s3:::reports-prod/*"
]
}
]
}
},
{
"id": "p-writers-s3",
"name": "WritersS3",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::reports-prod/*"
}
]
}
},
{
"id": "p-writers-sqs",
"name": "WritersSQS",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:SendMessage",
"sqs:GetQueueAttributes"
],
"Resource": "arn:aws:sqs:us-east-1:111122223333:ingest-queue"
}
]
}
},
{
"id": "p-bucket-reports",
"name": "ReportsBucketPolicy",
"kind": "resource",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Principal": "*",
"Action": "s3:DeleteBucket",
"Resource": "arn:aws:s3:::reports-prod"
},
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:role/pipeline-runner"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::reports-prod/*"
}
]
}
},
{
"id": "p-bucket-artifacts",
"name": "ArtifactsBucketPolicy",
"kind": "resource",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::artifacts-prod/*"
},
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:user/frank"
},
"Action": [
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::artifacts-prod/*"
}
]
}
},
{
"id": "p-key-finance",
"name": "FinanceKeyPolicy",
"kind": "resource",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:user/alice"
},
"Action": [
"kms:Decrypt",
"kms:Encrypt",
"kms:DescribeKey"
],
"Resource": "*"
},
{
"Effect": "Deny",
"Principal": "*",
"Action": "kms:ScheduleKeyDeletion",
"Resource": "*"
}
]
}
},
{
"id": "p-queue-ingest",
"name": "IngestQueuePolicy",
"kind": "resource",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:role/pipeline-runner"
},
"Action": "sqs:SendMessage",
"Resource": "*"
}
]
}
},
{
"id": "p-scp-allow-baseline",
"name": "SCPAllowBaseline",
"kind": "scp",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*",
"kms:*",
"sqs:*",
"ec2:Describe*",
"iam:Get*"
],
"Resource": "*"
}
]
}
},
{
"id": "p-scp-deny-iam-write",
"name": "SCPDenyIamWrite",
"kind": "scp",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"iam:CreateRole",
"iam:DeleteRole",
"iam:AttachRolePolicy"
],
"Resource": "*"
},
{
"Effect": "Deny",
"Action": "s3:DeleteBucket",
"Resource": "*"
}
]
}
},
{
"id": "p-boundary-s3-read",
"name": "BoundaryS3ReadOnly",
"kind": "identity",
"document": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:Get*",
"s3:List*"
],
"Resource": "*"
},
{
"Effect": "Deny",
"Action": "s3:DeleteObject",
"Resource": "*"
}
]
}
}
],
"scps": [
"p-scp-allow-baseline",
"p-scp-deny-iam-write"
],
"resources": [
{
"id": "res-bucket-reports",
"arn": "arn:aws:s3:::reports-prod/key.csv",
"kind": "s3:object",
"service": "s3",
"service_actions": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:GetObjectVersion"
],
"resource_policy_id": "p-bucket-reports",
"context": {
"aws:RequestedRegion": "us-east-1"
}
},
{
"id": "res-bucket-reports-bucket",
"arn": "arn:aws:s3:::reports-prod",
"kind": "s3:bucket",
"service": "s3",
"service_actions": [
"s3:ListBucket",
"s3:DeleteBucket",
"s3:GetBucketAcl",
"s3:PutBucketAcl",
"s3:GetBucketLocation"
],
"resource_policy_id": "p-bucket-reports"
},
{
"id": "res-bucket-artifacts",
"arn": "arn:aws:s3:::artifacts-prod/build.tgz",
"kind": "s3:object",
"service": "s3",
"service_actions": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"resource_policy_id": "p-bucket-artifacts"
},
{
"id": "res-bucket-artifacts-bucket",
"arn": "arn:aws:s3:::artifacts-prod",
"kind": "s3:bucket",
"service": "s3",
"service_actions": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"resource_policy_id": "p-bucket-artifacts"
},
{
"id": "res-key-finance",
"arn": "arn:aws:kms:us-east-1:111122223333:key/finance",
"kind": "kms:key",
"service": "kms",
"service_actions": [
"kms:Decrypt",
"kms:Encrypt",
"kms:GenerateDataKey",
"kms:DescribeKey",
"kms:ScheduleKeyDeletion"
],
"resource_policy_id": "p-key-finance"
},
{
"id": "res-queue-ingest",
"arn": "arn:aws:sqs:us-east-1:111122223333:ingest-queue",
"kind": "sqs:queue",
"service": "sqs",
"service_actions": [
"sqs:SendMessage",
"sqs:ReceiveMessage",
"sqs:DeleteMessage",
"sqs:GetQueueAttributes",
"sqs:PurgeQueue"
],
"resource_policy_id": "p-queue-ingest"
},
{
"id": "res-iam-role-readonly",
"arn": "arn:aws:iam::111122223333:role/readonly",
"kind": "iam:role",
"service": "iam",
"service_actions": [
"iam:GetRole",
"iam:PassRole",
"iam:CreateRole",
"iam:DeleteRole",
"iam:AttachRolePolicy"
]
}
]
}