How 02paming/securetech_was works
SecureTech WAS is an internal-network access-control and security-monitoring product with a React console and Django API. The documented workflow runs from employee or administrator actions through the console and API to authentication, employee and policy management, and persisted logs; network monitoring and enforcement are described as a separate PCAP-side capability. The tree contains pcap_checker.py but no C engine or model implementation, so those internals are not expanded. Edges reflect shown routes, imports, calls, or README statements; unsampled feature wiring is omitted where uncertain.
Main entry points: models.py Security data models · urls.py API routing · App.jsx Console routing · api.jsx API client
Components 20
Web console
- Console routing
frontend/src/App.jsx - Sign-in and captive auth
frontend/src/pages/auth - Access home
frontend/src/pages/Home.jsx - Employee operations
frontend/src/pages/employee - Policy and AI console
frontend/src/pages/policy - API client
frontend/src/api.jsx
API services
- API routing
config/urls.py - Authentication
api/views/auth_views.py - Employee management
api/views/employee_views.py - Policy management
api/views/policy_views.py - Dashboard metrics
api/views/dashboard_views.py - Threat and access logs
api/views/log_views.py - AI thresholds history
api/views/threshold_history.py - Policy synchronization
api/views/utils.py
Network security
- PCAP monitoring and enforcement
pcap_checker.py - MAC alert watcher
api/management/commands/watch_mac_alerts.py - Webhook alerts
api/views/alert_services.py
Persistence and audit
- Security data models
api/models.py - Audit records
api/views/audit.py
Other components
- Employees and admins
Connections 29
- Employees and admins → Console routing: uses
README.md - Console routing → Sign-in and captive auth: routes to
frontend/src/App.jsx - Console routing → Access home: routes to
frontend/src/App.jsx - Console routing → Employee operations: routes to
frontend/src/App.jsx - Console routing → Policy and AI console: routes to
frontend/src/App.jsx - Sign-in and captive auth → API client: calls
frontend/src/pages/auth/CaptiveAuth.jsx - Employee operations → API client: calls
frontend/src/pages/employee/EmployeeManage.jsx - Policy and AI console → API client: calls
frontend/src/pages/policy/Dashboard.jsx - API client → API routing: sends requests
README.md - API routing → Authentication: routes to
config/urls.py - API routing → Employee management: routes to
config/urls.py - API routing → Policy management: routes to
config/urls.py - API routing → Dashboard metrics: routes to
config/urls.py - API routing → Threat and access logs: routes to
config/urls.py - Authentication → Security data models: reads and writes
api/views/auth_views.py - Employee management → Security data models: reads and writes
api/views/employee_views.py - Policy management → Security data models: reads and writes
api/views/policy_views.py - Dashboard metrics → Security data models: reads
api/views/dashboard_views.py - Threat and access logs → Security data models: reads and writes
api/views/log_views.py - Authentication → Audit records: records actions
api/views/auth_views.py - Employee management → Audit records: records actions
api/views/employee_views.py - Policy management → Audit records: records actions
api/views/policy_views.py - Threat and access logs → Audit records: records actions
api/views/log_views.py - Policy synchronization → Security data models: reads policies
api/views/utils.py - Policy synchronization → PCAP monitoring and enforcement: sends policy sync
api/views/utils.py - PCAP monitoring and enforcement → Security data models: exchanges data
pcap_checker.py - MAC alert watcher → Webhook alerts: dispatches alerts
api/management/commands/watch_mac_alerts.py - Webhook alerts → Employees and admins: notifies
api/views/alert_services.py - AI thresholds history → Security data models: tracks settings