Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caulking should alert on ARNs (AWS Resources) #68

Open
pburkholder opened this issue Apr 20, 2022 · 1 comment
Open

caulking should alert on ARNs (AWS Resources) #68

pburkholder opened this issue Apr 20, 2022 · 1 comment

Comments

@pburkholder
Copy link
Contributor


Security considerations

[note any potential changes to security boundaries, practices, documentation, risk that arise directly from this story]

@bengerman13
Copy link
Contributor

ARN format:

arn:partition:service:region:account-id:resource-id
arn:partition:service:region:account-id:resource-type/resource-id
arn:partition:service:region:account-id:resource-type:resource-id

so we should have a regex something like:
arn:aws(-us-gov|-cn)?:[^:]+:[^:]*:\d{12}:[^:\s]+
need to double-check whether it's guaranteed that account ids are 12 numeric digits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants