Better HN
topnewbestaskshowjobs
Log inSign up

kmcquade

381 karma · joined Oct 15, 2019 (7y ago) · 45 submissions

Submissions

1.

Pwning AWS Bedrock AgentCore's AI Code Interpreter(beyondtrust.com ↗)

8 points · by kmcquade · 8mo ago · discuss

comment 1y ago · link · parent

These guys do an insane amount of engineering to speed up builds and everyone follows. Love their blogs.

Zero chance I'd sign up for their competitors knowing how good the product is and that everyone else follows them. I don't know why Docker, JFrog, or GitHub don't just buy them already.

comment 3y ago · link · parent

Depot is freaking awesome. Sped up two of our Docker image builds from 11 minutes to 1-1.5 minutes and the drop-in Docker build replacement in GitHub Actions was super easy. Can't imagine our CI/CD system without it.

comment 4y ago · link · parent

Love using Depot. The speed improvements are insane

5.

Metabadger: Prevent SSRF Attacks on AWS EC2 via Automatic Upgrades to IMDSv2(github.com ↗)

1 points · by kmcquade · 5y ago · discuss

6.

Show HN: Cloud Guardrails – Rapidly apply 100s of security controls in Azure(github.com ↗)

3 points · by kmcquade · 5y ago · discuss

comment 5y ago · link · parent

> the tool can discover incorrect configurations that would allow someone who extracted the key to change permissions of the bucket.

Nit: The tool can discover and abuse excessive permissions.

comment 5y ago · link · parent

Yes, you'd have to leverage compromised credentials. That could be obtained via SSRF, RCE on a privileged box, leakage of user access keys, or other means. In the context of a penetration test, it's more of a post-exploitation tool.

comment 5y ago · link · parent

Aw, thank you. I really appreciate that.

comment 5y ago · link · parent

Great feedback! I will update the docs accordingly.

comment 5y ago · link · parent

Not sure. I did uncover a ridiculously destructive approach to abusing Azure Service Principals in CI/CD pipelines that deploy infrastructure in Azure (Confused Deputy problem): https://kmcquade.com/2020/11/nuking-all-azure-resource-group...

for sub in `az account list | jq -r '.[].id'`; do \ for rg in `az group list --subscription $sub | jq -r '.[].name'`; do \ az group delete --name ${rg} --subscription $sub --no-wait --yes; \ done; done;

comment 5y ago · link · parent

Dry run as default is a good idea. I'll open a GitHub issue for that.

FWIW, if you run `endgame smash` with `--service all`, then it spits out a huge "WARNING" in ASCII art with an explanation and a confirmation prompt.

But I agree, we should have dry-run on by default.

comment 5y ago · link · parent

Thanks :)

comment 5y ago · link · parent

Author here :) Endgame exploits/abuses features. If it was a bug, I'd work with AWS to solve the problem, but with abusing features - that would result in years of unsatisfied feature requests. This should push the issue along.

>...and it's not even a hacking tool! It can be used to backdoor resources to rogue accounts, so I'd say it's a hacking tool and can/should be used on penetration tests. I'd certainly use it on a pentest :)

15.

Show HN: Endgame – An AWS Pentesting tool to backdoor or expose AWS resources(github.com ↗)

368 points · by kmcquade · 5y ago · 93 comments

comment 6y ago · link · parent

Did you open source it? If not, you definitely should.

comment 6y ago · link · parent

I wish.

comment 6y ago · link · parent

You are so right on the SELinux comparison. Of course, in this case, there are way more developers that are required to write them.

Reiterating what was mentioned in the thread - the best way to avoid this wildcard situation and make it easier for developers is to use Policy Sentry[0]

Thought I’d mention this for those who read the title and the comments instead of clicking on the tools. This will solve most of your problems with writing IAM policies for machine roles.

[0] https://github.com/salesforce/policy_sentry

comment 6y ago · link · parent

You just need a single IAM action - iam:GetAccountAuthorizationDetails (https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetA...).

I’ll definitely add that to the README. Thanks

comment 6y ago · link · parent

PMapper is definitely a great tool. It’s best used in Pentests for validating some privilege escalation paths. It has the benefit of analyzing IAM trust policies, resource based policies, viewing escalation paths in a graph based approach. Very underrated indeed.

Cloudsplaining is faster at creating a more comprehensive report. We realize that there is lots of damage that can be done just by being able to modify Infrastructure, even when your privileges fall short of legit privilege escalation.

I think the example report will illustrate this best for you. Check it out here: https://opensource.salesforce.com/cloudsplaining/

comment 6y ago · link · parent

Thanks! I’m glad you like it. Let me know if you have any feedback - here, in the Gitter channel (link in the Readme), or on Twitter (kmcquade3)

22.

Show HN: Cloudsplaining, an AWS IAM Security Assessment Tool(github.com ↗)

6 points · by kmcquade · 6y ago · 6 comments

23.

Automating Least Privilege in AWS IAM with Policy Sentry(engineering.salesforce.com ↗)

2 points · by kmcquade · 6y ago · discuss

comment 6y ago · link · parent

With this.

https://github.com/salesforce/policy_sentry

(Disclaimer: I am the author)

Not one step exactly, but it is by far the easiest way to write least privilege IAM policies. Otherwise, it becomes impossible to ensure IAM policies are written securely and at scale. This way, all custom IAM policies are written with the exact same methodology.

comment 7y ago · link · parent

Pretty awesome that it’s open source.

For large companies there are some proprietary solutions for this. Example:

https://www.trendkite.com/

Disclaimer: family member works there so that’s the reason I’m aware that this niche exists.

comment 7y ago · link · parent

> "I'm pretty excited, I've never won a single thing in my life before. And to do it in service of taking down evil patent trolls? This is one of the best days of my life, no joke. I submitted because software patents are garbage and clearly designed to extort money from productive innovators for vague and obvious claims. Also, I was homeless at the time I submitted and was spending all day at the library anyway." — Garrett, San Francisco

This guy is a legend.

comment 7y ago · link · parent

My email is also in my profile :)
12