How naina-r/safespaceshield works
SafeSpace Shield is a local Streamlit phishing-awareness app. A user enters a message or selects a demonstration sample, submits it for analysis, and receives a risk assessment, detected indicators, explanations, and safety guidance. The app invokes separate analyzer functions for keyword detection, URL-pattern detection, IP-based URL detection, risk scoring, and explanations. The README documents the broader capabilities; analyzer.py was not excerpted, so its internal implementation and any finer-grained dependencies are not shown.
Main entry points: app.py Analysis orchestration · analyzer.py Keyword detection
Components 10
User interface
- Message entry
app.py - Sample selector
app.py - Analysis orchestration
app.py
Message analysis
- Keyword detection
analyzer.py - URL pattern detection
analyzer.py - IP URL detection
analyzer.py - Risk scoring
analyzer.py - Explanations and guidance
analyzer.py
Assessment results
- Analysis report
app.py
Other components
- User
Connections 15
- User → Message entry: enters message
README.md - User → Sample selector: selects sample
app.py - Sample selector → Message entry: loads sample
app.py - Message entry → Analysis orchestration: submits message
app.py - Analysis orchestration → Keyword detection: detects keywords
app.py - Analysis orchestration → URL pattern detection: detects URL patterns
app.py - Analysis orchestration → IP URL detection: detects IP URLs
app.py - Analysis orchestration → Risk scoring: calculates risk
app.py - Analysis orchestration → Explanations and guidance: generates explanation
app.py - Analysis orchestration → Analysis report: renders results
app.py - Keyword detection → Analysis report: displays detections
app.py - URL pattern detection → Analysis report: displays detections
app.py - IP URL detection → Analysis report: displays detections
app.py - Risk scoring → Analysis report: displays assessment
app.py - Explanations and guidance → Analysis report: displays guidance
README.md