How ashish070patel/cross-platform-hardening works
Cross-Platform Hardening is an endpoint-security monitoring and advisory platform: a Python agent registers a device, gathers security signals, and periodically uploads reports; the Express API stores reports and synchronizes alerts, while a React dashboard presents device, security, and alert views. Users can request Gemini assessments of the latest report and inspect saved analysis history. The graph combines sampled calls, SOURCE INDEX references, and documented capabilities; unsampled subsystem links are included only where the README establishes them.
Main entry points: app.js Express routing · api.js Web API client · agent.py Monitoring loop · App.jsx Dashboard routes
Components 26
Endpoint monitoring
- Monitoring loop
agent/agent.py - Agent configuration
agent/config.py - Security checks
agent/security_checks.py - Device metadata
agent/system_info.py - Agent API client
agent/api_client.py
Backend API
- Express routing
backend/app/app.js - Agent endpoints
backend/controllers/agentController.js - Security reports
backend/controllers/securityController.js - Alert endpoints
backend/controllers/alertController.js - AI endpoints
backend/controllers/aiController.js
Persistence and assessment
- Agent records
backend/services/agentService.js - Report service
backend/services/securityService.js - Alert synchronization
backend/services/alertService.js - Gemini assessment
backend/services/aiService.js - MongoDB
Web dashboard
- Dashboard routes
frontend/src/App.jsx - Web API client
frontend/src/services/api.js - Dashboard view
frontend/src/pages/Dashboard.jsx - Devices view
frontend/src/pages/Devices.jsx - Security view
frontend/src/pages/Security.jsx - Alerts view
frontend/src/pages/Alerts.jsx - Analysis history UI
frontend/src/components/AISecurityAnalysis.jsx - Port classification
frontend/src/utils/portClassification.js
Other components
- Security operator
- Monitored endpoint
- Gemini API
Connections 34
- Monitored endpoint → Monitoring loop: runs on
README.md - Monitoring loop → Agent configuration: loads settings
agent/agent.py - Monitoring loop → Security checks: collects signals
agent/agent.py - Monitoring loop → Device metadata: collects metadata
agent/agent.py - Monitoring loop → Agent API client: uploads reports
agent/agent.py - Agent API client → Express routing: HTTP requests
README.md - Express routing → Agent endpoints: routes agent calls
backend/app/app.js - Express routing → Security reports: routes report calls
backend/app/app.js - Express routing → Alert endpoints: routes alert calls
backend/app/app.js - Express routing → AI endpoints: routes analysis calls
backend/app/app.js - Agent endpoints → Agent records: delegates records
backend/controllers/agentController.js - Agent records → MongoDB: reads and writes
README.md - Security reports → Report service: saves and reads
backend/controllers/securityController.js - Security reports → Alert synchronization: synchronizes alerts
backend/controllers/securityController.js - Report service → MongoDB: stores reports
backend/services/securityService.js - Alert synchronization → MongoDB: stores alerts
backend/services/alertService.js - Alert endpoints → Alert synchronization: retrieves alerts
backend/controllers/alertController.js - AI endpoints → Gemini assessment: requests assessment
backend/controllers/aiController.js - AI endpoints → MongoDB: reads reports and saves analyses
backend/controllers/aiController.js - Gemini assessment → Gemini API: requests assessment
README.md - Gemini assessment → MongoDB: saves analysis
README.md - Security operator → Dashboard routes: uses dashboard
README.md - Dashboard routes → Dashboard view: routes to
frontend/src/App.jsx - Dashboard routes → Devices view: routes to
frontend/src/App.jsx - Dashboard routes → Security view: routes to
frontend/src/App.jsx - Dashboard routes → Alerts view: routes to
frontend/src/App.jsx - Dashboard view → Web API client: fetches dashboard data
frontend/src/pages/Dashboard.jsx - Devices view → Web API client: fetches devices
frontend/src/pages/Devices.jsx - Security view → Web API client: fetches security data
frontend/src/pages/Security.jsx - Security view → Analysis history UI: renders analysis UI
frontend/src/pages/Security.jsx - Security view → Port classification: classifies ports
frontend/src/pages/Security.jsx - Analysis history UI → Web API client: requests analysis and history
frontend/src/components/AISecurityAnalysis.jsx - Alerts view → Web API client: fetches alerts
frontend/src/pages/Alerts.jsx - Web API client → Express routing: HTTP requests
README.md