RiskGate
Risk-adaptive access control for small AWS teams: CloudTrail behaviour scoring, attack-path analysis and human-approved, time-bound access.
- Built with
- Python, FastAPI, AWS IAM / STS, CloudTrail, pytest
- Code
- Code stays private until the project is assessed.
- 1Reads CloudTrail
- 2Scores behaviour
- 3Ranks attack paths
- 4Asks a human
- 5Grants time-bound access
RiskGate reads CloudTrail activity from a sandbox AWS account and scores each person’s risk from three kinds of signal: behaviour, IAM policy and misconfiguration. It finds attack paths from the internet to critical assets, and it only grants temporary, human-approved access elevation when the score allows it.
The problem
Small cloud teams usually hand out standing admin rights, because a proper privileged-access system is too heavy for them. Scanners list misconfigurations, but they don’t say which one matters for the person asking for access right now.
RiskGate joins the two. It looks at:
- what someone has actually been doing
- what their policies allow
- what is exposed
It then rates the elevation request as low, medium, high or critical risk.
How it works
- Detectors read CloudTrail (or a replay of it) for behaviour, policy and misconfiguration signals.
- An explainable risk engine turns those signals into a score, a band and the reasons behind them.
- A resource graph ranks attack paths and says which edge to fix first.
- An approval gate sends the request to a human approver.
- A time-bound STS session is issued, then revoked automatically, and every step is logged.
What is secured, and how
- Least privilege by default. Nobody holds standing elevated rights. Access is a short STS session for one named role, approved by someone who is allowed to approve it.
- Guard rails on the tool itself:
- it runs as a dry run by default
- an account-ID guard makes it refuse any account except the sandbox
- every role it can hand out has a permissions boundary
- session length is capped
- Tamper-evident audit log. Every request, approval and revocation is written to a SHA-256 hash chain. A verify command detects any edited row.
- Revocation tested against real AWS. A sandbox run revokes a live session and measures how long AWS keeps honouring it.
This is assessed university work. The code and results stay private until it is marked.