How secsimon/ttm works
TTModeler is an IoT-focused threat-modeling application for web and desktop. The documented workflow is to create or open a project, model the system and its threats, assess risk and mitigations, then review results or export reports. Its major capabilities also include customizable threat libraries, security-reference integrations, project storage and collaboration, and multiple diagram types. The graph combines documented product stages with central model and service modules; unsampled UI-to-engine calls are not asserted.
Main entry points: modeling.component.ts Modeling workspace · data.service.ts Project storage service · home.component.ts Project home · login.component.ts GitHub login
Components 20
Application and projects
- TTModeler app
src/app/app.component.ts - Project home
src/app/home/home.component.ts - GitHub login
src/app/login/login.component.ts - Project model
src/app/model/project-file.ts - Project storage service
src/app/util/data.service.ts - Offline preferences
src/app/util/local-storage.service.ts
System modeling
- Modeling workspace
src/app/modeling/modeling.component.ts - System diagrams
src/app/model/diagram.ts - Device context
src/app/model/system-context.ts - Device components
src/app/model/component.ts
Threat and risk analysis
- Threat analysis
src/app/util/threat-engine.service.ts - Threat records
src/app/model/threat-model.ts - Risk overview
src/app/risk-overview/risk-overview.component.ts - Mitigation analysis
src/app/util/mitigation-engine.service.ts - Mitigation records
src/app/model/mitigations.ts
Configuration and libraries
- Threat library settings
src/app/configuration/configuration.component.ts - Security references
src/app/shared/components/cve-entry/cve-entry.component.ts
Review and reporting
- Results dashboard
src/app/dashboard/dashboard.component.ts - Reports and exports
src/app/reporting/reporting.component.ts
Other components
- Modeler
Connections 20
- Modeler → Project home: opens projects
README.md - Modeler → Modeling workspace: models device
README.md - Modeler → GitHub login: signs in
README.md - Project home → Project storage service: loads or saves
src/app/home/home.component.ts - GitHub login → Project storage service: authorizes storage
- Project storage service → Project model: loads and saves
src/app/util/data.service.ts - Project storage service → Offline preferences: reads preferences
src/app/util/data.service.ts - Modeling workspace → System diagrams: edits diagrams
- Modeling workspace → Device context: models system
- Modeling workspace → Device components: models components
- Modeler → Threat analysis: identifies threats
README.md - Threat analysis → Threat records: generates threats
src/app/util/threat-engine.service.ts - Modeler → Risk overview: assesses risk
README.md - Modeler → Mitigation analysis: reviews mitigations
README.md - Mitigation analysis → Mitigation records: evaluates controls
src/app/util/mitigation-engine.service.ts - Modeler → Threat library settings: customizes libraries
README.md - Modeler → Security references: consults references
README.md - Modeler → Results dashboard: reviews results
README.md - Modeler → Reports and exports: exports reports
README.md - Project model → Reports and exports: provides project data