From d5415a212b3e8db8acd8b596737787e429bf510d Mon Sep 17 00:00:00 2001 From: Sylvester Kaczmarek <16242628+SJKaczmarek@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:38:50 +0100 Subject: [PATCH] Create app.py --- code/app.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 code/app.py diff --git a/code/app.py b/code/app.py new file mode 100644 index 0000000..e49e76c --- /dev/null +++ b/code/app.py @@ -0,0 +1,41 @@ +# app.py + +import streamlit as st + +# Define the main function for the Streamlit app +def main(): + st.title("Satellite Threat Modeling") + + # Step 1: Define the Scope + st.header("1. Define the Scope") + satellite_system = st.text_input("Describe the satellite system:") + + # Step 2: Identify Threats + st.header("2. Identify Threats") + threats = st.text_area("List potential threats (one per line):").split('\n') + + # Step 3: Assess Vulnerabilities + st.header("3. Assess Vulnerabilities") + vulnerabilities = st.text_area("List vulnerabilities (one per line):").split('\n') + + # Step 4: Mitigate Risks + st.header("4. Mitigate Risks") + mitigations = st.text_area("List mitigation strategies (one per line):").split('\n') + + # Step 5: Visualize & Report + st.header("5. Visualize & Report") + if st.button("Generate Report"): + st.subheader("Threats") + for threat in threats: + st.write("- ", threat) + + st.subheader("Vulnerabilities") + for vulnerability in vulnerabilities: + st.write("- ", vulnerability) + + st.subheader("Mitigation Strategies") + for mitigation in mitigations: + st.write("- ", mitigation) + +if __name__ == "__main__": + main()