
Weekend Productivity Challenge: SecTriage
Learn how I built a lightweight AI-powered tool that transforms raw security findings and task lists into prioritized, actionable recommendations using Python, Flask, and Amazon Bedrock. Along the way, I share practical lessons about IAM permissions, Bedrock integration, and building a real-world application over a weekend.
SecTriage – An AI Assistant for Security Triage
One thing I've realized working in application security is that the hardest part usually isn't finding security issues it's deciding which ones actually deserve attention first.
Every week I'm looking at vulnerability scans, backlog tickets, and long to-do lists where everything looks "important." In reality, only a handful of findings need immediate action, while others can safely wait. I wanted a faster way to make those decisions without manually reviewing every item.
So over the weekend I built SecTriage.
What It Does
SecTriage is a lightweight AI-powered tool that helps prioritize work instead of just listing it.
You can paste in:
- A simple to-do list
- Security findings from tools like Trivy or Snyk
- Any messy collection of tasks
With one click, the application returns a ranked list based on what should be tackled first.
For every item it provides:
- A priority level (Critical, High, Medium, Low)
- A short explanation of why it received that ranking
- A recommended next action
Instead of relying only on CVSS scores, the AI considers factors such as exploitability, business impact, and implementation effort—closer to how a security engineer actually makes prioritization decisions.
During testing, an unauthenticated SQL injection vulnerability and a public S3 bucket exposing customer PII were immediately ranked as Critical, while lower-impact items like documentation issues naturally fell to the bottom of the list.
The goal wasn't to replace human judgment—it was to speed it up.
How I Built It
I intentionally kept the architecture simple so I could complete the project in a weekend.
The application consists of:
- A Python Flask backend
- A simple HTML/JavaScript frontend
- Amazon Bedrock using the Nova 2 Lite model for reasoning
The backend sends the user's input to Amazon Bedrock through the Converse API with a carefully designed system prompt that instructs the model to behave like a security triage assistant. It evaluates each finding and returns structured, ranked results.
Sometimes the simplest architecture is enough.
Architecture
The request flow is straightforward:
Browser → Flask API → Amazon Bedrock (Nova 2 Lite) → Ranked response → Browser
There is:
- No database
- No background workers
- No persistent server state
Authentication is handled entirely through AWS IAM credentials, so there are no API keys or secrets stored in the application.
What I Learned
Interestingly, most of the learning came from everything around the AI rather than the AI itself.
I initially started building from Git Bash on Windows before realizing my Python environment wasn't the one I expected. After switching to my WSL Ubuntu environment, everything became much smoother.
Getting Amazon Bedrock working also taught me a few lessons.
My first API call failed with an
AccessDeniedException . I assumed I simply needed to enable model access, but I discovered that the newer Nova models don't use the old "Request Model Access" workflow. Access is controlled entirely through IAM permissions.When I tried attaching the
AmazonBedrockFullAccess managed policy, I ran into AWS's limit on the number of managed policies that can be attached directly to a user.The better solution ended up being an inline IAM policy granting only the permissions I actually needed (
bedrock:InvokeModel ). Not only did that solve the problem, but it also followed the principle of least privilege.Another small lesson was discovering that the correct model identifier for on-demand inference in
us-east-1 is:us.amazon.nova-2-lite-v1:0 Using the incorrect model ID results in validation errors, so that tiny detail mattered more than I expected.
Final Thoughts
The AI itself was surprisingly easy to integrate.
The more valuable experience came from understanding how to securely connect everything together—working with IAM, Bedrock, AWS permissions, and building a simple application that solves a real problem I run into almost every week.
It's a small project, but it's one I'll actually use.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article