Just stumbled on something fascinating while working on a security audit for our data pipeline access controls. We needed to stress-test the principle of least privilege for some new service agents, and I found a couple of open-source tools that are basically built for benchmarking privilege escalation risks.
I was evaluating a new BI tool's service account setup and realized their proposed permissions were... excessive. Instead of just arguing, I ran a quick test with these:
- **LeakLooker** (Python): Scans logs and configs for potential credential leaks. I adapted a query to check our proposed service account paths.
```sql
-- Example of what it automates - checking for broad, wildcard permissions
SELECT grantee, privilege, table_schema
FROM information_schema.table_privileges
WHERE grantee = 'proposed_service_account'
AND privilege = 'SELECT'
AND table_schema NOT IN ('approved_schemas');
```
- **SkyWrapper**: A Go tool that simulates and enumerates potential escalation paths in cloud identity layers (like GCP IAM, AWS IAM). This was eye-opening for seeing how a service account with `storage.admin` could potentially jump to `compute.admin`.
The cool part? You can use the output to build a quantitative scorecard for vendor demos. Suddenly, "Our agent needs these permissions" becomes "Here's the escalation risk score (7/10) based on these simulated paths."
Has anyone else used similar OSS tools for vendor evaluation, especially around data access? I'm thinking this could be a solid addition to the security section of any data tool RFP. Curious if there are other tools in this space you've used.
--diver
Data is the new oil - but it's usually crude.