Skip to content

build-on-aws/threat-model-accelerator-with-genai

Threat Model Accelerator with GenAI

Highlights

  • You may follow instructions below to quickly launch a web app for threat modeling accelerator
  • What it does is to allow you input application template files to automatically generate a threat model baseline for your app
  • Behind the scenes the web app interact with LLM powered by Amazon Bedrock

Note

  • If you want to access full version of the solution guidance, please view the following AWS Community blog post:

https://community.aws/content/2nEM8sepo2qQXXH1cVJYnt4rpiK/accelerate-your-threat-modeling-with-genai

Prepare the environment on your local laptop

Following commands assume you use MAC OS, with Python3 and pip3 installed.

  • Step 1: Install Streamlit pip3 install -r requirements.txt

  • Step 2: Test streamlit: streamlit hello

  • Step 3: Run the Steamlit web app streamlit run app-tm.py

Solution architect view

Solution architect view

Web app GUI view

Web app GUI view

Common issue

Question When I execute the web app, I've got following error. Why? ERROR: Can't invoke 'anthropic.claude-3-sonnet-20240229-v1:0'. Reason: An error occurred (AccessDeniedException) when calling the InvokeModel operation: You don't have access to the model with the specified model ID.

Answer

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages