Author: Mukesh Kesharwani (mukesh.kesharwani@adobe.com)
Organization: Adobe
Version: 2.1.0 (document revision; application release is root package.json, currently 1.9.0)
Last Updated: July 2026
- Overview
- System Architecture
- Data Flow
- Frontend Architecture
- Backend Architecture
- AI Integration (Bedrock / Mistral)
- Technology Stack
- Security Considerations
- Performance
- Deployment
- Project Structure
- Enhancement History
- Future Enhancements
Keekar's OSCAL SOA/SSP/CCM Generator is a full-stack web application with a React frontend and Node.js backend, designed to simplify the creation of Statement of Applicability (SOA), System Security Plans (SSP), and Cloud Control Matrix (CCM) from OSCAL catalogues.
- Backend Server: Port
3020(default, configurable viaPORTenvironment variable) - Frontend Dev Server: Port
3021(configured invite.config.js, proxies API to 3020) - Production: Single backend server on port
3020serves both API and static frontend files
The application supports a wide range of official OSCAL catalogs and profiles:
- Full catalog with all controls
- Baseline profiles: Low, Moderate, High impact levels
- Source: usnistgov/oscal-content
- Multiple security classification baselines:
- Non-Classified Baseline
- Official Sensitive Baseline
- Protected Baseline
- Secret Baseline
- Top Secret Baseline
- Source: AustralianCyberSecurityCentre/ism-oscal
- IM8 Reform catalog for low-risk cloud systems
- Source: GovTechSG/tech-standards
- Grundschutz++ Kompendium (Modern IT security baseline)
- Source: BSI-Bund/Stand-der-Technik-Bibliothek
- Cloud Medium Security Profile
- ITSP.10.033-01 (User Authentication Guidance)
- ITSP.10.171 (Protected B)
- Medium + PBHVA (Protected B, High Integrity, High Availability)
- PBHVA Overlay Profile
- SaaS FedRAMP Compliance Profile
- Source: aws-samples/cccs-oscal-samples
- Support for any OSCAL-compliant catalog via URL input
- Validates against OSCAL JSON Schema v1.1.2
- Supports both catalog and resolved profile formats
┌─────────────────────────────────────────────────────────────┐
│ Browser │
│ ┌─────────────────────────────────────────────────────── ┐ │
│ │ React Frontend (Port 3021) │ │
│ │ │ │
│ │ ┌──────────────┐ ┌──────────────┐ ┌─────────────┐ │ │
│ │ │ Catalogue │ │ System Info │ │ Controls │ │ │
│ │ │ Input │ │ Form │ │ List │ │ │
│ │ └──────────────┘ └──────────────┘ └─────────────┘ │ │
│ │ │ │
│ │ └──────────────────────┬────────────────────┘ │ │
│ └─────────────────────────┼──────────────────────────────┘ │
└────────────────────────────┼────────────────────────────────┘
│ HTTP/JSON
│ (Axios)
┌────────────────────────────┼────────────────────────────────┐
│ │ │
│ ┌─────────────────────────▼──────────────────────────────┐ │
│ │ Node.js/Express Backend (Port 3020) │ │
│ │ │ │
│ │ ┌────────────────────────────────────────────────┐ │ │
│ │ │ API Endpoints │ │ │
│ │ │ │ │ │
│ │ │ POST /api/fetch-catalogue │ │ │
│ │ │ POST /api/generate-ssp │ │ │
│ │ │ POST /api/generate-excel │ │ │
│ │ │ POST /api/generate-pdf │ │ │
│ │ │ POST /api/generate-ccm │ │ │
│ │ │ POST /api/import-ccm │ │ │
│ │ │ POST /api/extract-catalog-from-ssp │ │ │
│ │ │ POST /api/compare-ssp │ │ │
│ │ │ POST /api/suggest-control │ │ │
│ │ │ GET /api/mistral/status │ │ │
│ │ └────────────────────────────────────────────────┘ │ │
│ │ │ │
│ │ ┌─────────────────────────────────────────────────┐ │ │
│ │ │ Processing Modules │ │ │
│ │ │ │ │ │
│ │ │ • OSCAL Parser (extractControls) │ │ │
│ │ │ • SSP Generator │ │ │
│ │ │ • Excel Generator (ExcelJS) │ │ │
│ │ │ • PDF Generator (PDFKit) │ │ │
│ │ │ • CCM Export (ccmExport.js) │ │ │
│ │ │ • CCM Import (ccmImport.js) │ │ │
│ │ │ • SSP Comparison (sspComparisonV3.js) │ │ │
│ │ │ • Control Suggestions (controlSuggestionEngine)│ │ │
│ │ │ • Mistral AI Service (mistralService.js) │ │ │
│ │ └─────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────┘ │
│ │ │
└────────────────────────────┼────────────────────────────────┘
│ HTTP
│ (Axios)
┌────────────────────────────▼─────────────────────────────────┐
│ External OSCAL Catalogues │
│ │
│ 📚 Supported OSCAL Catalogs: │
│ │
│ 🇺🇸 NIST SP 800-53 Rev 5: │
│ • Full Catalog │
│ • Low Baseline Profile │
│ • Moderate Baseline Profile │
│ • High Baseline Profile │
│ │
│ 🇦🇺 Australian ISM (ACSC): │
│ • Non-Classified Baseline │
│ • Official Sensitive Baseline │
│ • Protected Baseline │
│ • Secret Baseline │
│ • Top Secret Baseline │
│ │
│ 🇸🇬 Singapore IM8: │
│ • IM8 Reform (Low Risk Cloud) │
│ │
│ 🇩🇪 German BSI (Grundschutz++): │
│ • Grundschutz++ Kompendium │
│ │
│ 🇨🇦 Canadian CCCS Profiles: │
│ • Cloud Medium Profile │
│ • ITSP.10.033-01 (User Authentication) │
│ • ITSP.10.171 (Protected B) │
│ • Medium + PBHVA Profile │
│ • PBHVA Overlay Profile │
│ • SaaS FedRAMP Profile │
│ │
│ 🔧 Custom OSCAL Catalogues: │
│ • User-provided catalog URLs │
│ • Any OSCAL-compliant catalog │
└──────────────────────────────────────────────────────────────┘
User → CatalogueInput → Select Catalog (Built-in or Custom URL)
↓
POST /api/fetch-catalogue → External OSCAL Catalog URL
↓
Fetch & Parse OSCAL JSON
↓
Validate against OSCAL Schema v1.1.2
↓
Extract Controls Recursively
↓
Return to Frontend (catalogue, controls, metadata)
↓
Store in React State
↓
Auto-save to Browser LocalStorage
Supported Catalog Sources:
- Pre-configured catalogs (NIST, Australian ISM, Singapore IM8, Canadian CCCS, German BSI)
- Custom OSCAL catalog URLs
- Resolved profile catalogs
- Full OSCAL catalogs
User Upload → ExistingSSPUpload → POST /api/extract-catalog-from-ssp
↓
Extract Catalog URL
↓
POST /api/extract-controls-from-ssp
↓
Map SSP Data to Controls
↓
Return to Frontend
New Catalog → POST /api/compare-ssp
↓
Compare Old vs New Catalog
↓
Mark Controls (New/Changed/Unchanged)
↓
Return to Frontend
User Input → ControlsList → ControlItem → Update State
↓
React State Management
↓
Live Updates
↓
Auto-save to LocalStorage
Export Button → POST /api/generate-ssp
↓
Build OSCAL SSP Structure
↓
Add Metadata & Controls
↓
Return JSON to Frontend
↓
Download File
Export Button → POST /api/generate-excel
↓
Create Workbook
↓
Add System Info Sheet
↓
Add Controls Sheet
↓
Format & Style
↓
Return Buffer to Frontend
↓
Download File
Export Button → POST /api/generate-pdf
↓
Create PDF Document
↓
Add Cover & System Info
↓
Add Control Details
↓
Return Buffer to Frontend
↓
Download File
Export: Controls → POST /api/generate-ccm → CCM Excel
Import: CCM Excel → POST /api/import-ccm → Controls Data
App (Main Container)
├── InitialChoice
│ ├── Start New Report
│ └── Load Existing Report
├── ExistingSSPUpload
│ └── File upload component
├── CatalogChoice
│ ├── Keep Current Catalog
│ └── Update to Latest
├── CatalogueInput
│ └── Sample catalogue cards
├── CCMUpload
│ └── CCM file upload
├── SystemInfoForm
│ └── Form inputs
├── ControlsList
│ ├── Search & Filters
│ ├── Stats Display
│ └── ControlItem (Multiple)
│ └── Expandable forms
├── ExportButtons
│ └── Export options
└── SaveLoadPanel
├── Save/Load/Clear buttons
└── Status indicators
App State:
- step: Current wizard step (1-4)
- initialChoice: 'new' or 'existing'
- existingSSP: Loaded SSP data
- catalogChoice: 'keep' or 'update'
- catalogueUrl: URL of loaded catalogue
- catalogue: Full OSCAL catalogue object
- controls: Array of controls with user input
- systemInfo: System details
- loading: Loading state
- error: Error messages
- isCCMMode: Boolean for CCM import mode- Step-based Wizard: Guides users through 4 clear steps
- Dual Workflow: Support for new and existing reports
- Catalog Comparison: Intelligent comparison of catalog versions
- Real-time Filtering: Search and filter controls dynamically
- Bulk Actions: Update multiple controls at once
- Auto-save: Automatic saving to browser localStorage
- Responsive Design: Works on desktop and mobile
- Error Handling: Clear error messages with user guidance
- CCM Import: Import existing CCM Excel files
- Purpose: Fetch and parse OSCAL catalogue from URL
- Input:
{ url: string } - Output:
{ catalogue, controls, metadata } - Processing:
- Fetch JSON from URL using Axios
- Parse OSCAL structure
- Extract controls recursively
- Return structured data
- Purpose: Extract catalog URL from existing SSP
- Input:
{ sspData: object } - Output:
{ catalogUrl: string } - Processing:
- Parse SSP structure
- Extract import-profile href
- Return catalog URL
- Purpose: Extract controls and data from SSP (keeping same catalog)
- Input:
{ catalogControls: array, existingSSP: object } - Output:
{ controls: array, systemInfo: object } - Processing:
- Map catalog controls to SSP data
- Extract implementation details
- Extract system information
- Return merged data
- Purpose: Compare new catalog with existing SSP
- Input:
{ catalogControls: array, existingSSP: object, catalogData: object } - Output:
{ controls: array, changeStats: object, systemInfo: object } - Processing:
- Compare control IDs
- Compare control content
- Mark as new/changed/unchanged
- Preserve existing data
- Return comparison results
- Purpose: Generate OSCAL-compliant SSP
- Input:
{ metadata, controls, systemInfo } - Output: OSCAL SSP JSON
- Processing:
- Build SSP structure
- Add metadata and system characteristics
- Add control implementations
- Generate UUIDs
- Return complete SSP
- Purpose: Generate Excel export
- Input:
{ controls, systemInfo } - Output: Excel file (binary)
- Processing:
- Create workbook with ExcelJS
- Add System Information sheet
- Add Controls Implementation sheet
- Apply styling
- Return buffer
- Purpose: Generate PDF report
- Input:
{ controls, systemInfo, metadata } - Output: PDF file (binary)
- Processing:
- Create PDF document with PDFKit
- Add cover page
- Add system information
- Add control implementations
- Format and style
- Return buffer
- Purpose: Generate Cloud Control Matrix export
- Input:
{ controls, systemInfo } - Output: Excel file (binary)
- Processing:
- Create workbook with ExcelJS
- Add Summary sheet
- Add detailed control sheets
- Apply ISM-specific formatting
- Return buffer
- Purpose: Import CCM Excel file and parse control data
- Input:
{ fileData: string (base64) } - Output:
{ systemInfo, controls, statistics } - Processing:
- Decode base64 to buffer
- Parse Excel with ExcelJS
- Extract system information
- Extract control data
- Map to application format
- Return parsed data
- Purpose: Get AI-powered suggestions for control implementation
- Input:
{ control: object, existingControls: array } - Output:
{ suggestions: object, confidence: number, reasoning: array } - Processing:
- Analyze control using pattern matching
- Generate implementation text with the configured AI engine (Bedrock, Mistral API, or compatible HTTP backend)
- Combine pattern-matched fields with AI-generated text
- Return suggestions with confidence score
- Purpose: Check AI engine availability (Bedrock, Mistral API, Ollama URL, etc.)
- Output:
{ available: boolean, provider: string, model: string } - Processing:
- Check Mistral configuration
- Test connection to AWS Bedrock or Mistral API
- Return availability status
- Purpose: Authenticate user and create session
- Input:
{ username: string, password: string } - Output:
{ success: boolean, user: object, sessionToken: string } - Processing:
- Verify password using PBKDF2 (FIPS 140-2 compliant)
- Migrate legacy SHA-256 passwords if detected
- Check user active status
- Generate session token
- Return user data and token
- Purpose: Get default user passwords (for login UI display)
- Output:
{ success: boolean, passwords: object, format: string } - Processing:
- Generate timestamp-based passwords for default users (deployment-unique, format intentionally undocumented)
- Return generated passwords for login UI display
- Purpose: Validate session token
- Headers:
Authorization: Bearer <token> - Output:
{ valid: boolean, user: object }
- Purpose: Invalidate session token
- Headers:
Authorization: Bearer <token> - Output:
{ success: boolean }
The extractControls() function:
- Recursively processes groups and controls
- Handles nested control structures
- Extracts relevant properties
- Maintains parent-child relationships
- Supports both catalogues and profiles
The sspComparisonV3.js module:
- Compares catalog versions
- Identifies new controls
- Detects changed controls
- Preserves existing data
- Provides detailed change statistics
The application integrates Mistral 7B for AI-powered control implementation text generation. This provides intelligent, context-aware suggestions that are unique for each control.
Note: For TrueNAS / standalone Docker deployment, see DOCKER_HUB_GUIDE.md; for Mistral AI setup see AI_INTEGRATION.md.
Control Suggestion Request
↓
controlSuggestionEngine.js
├── Pattern Matching (Status, Responsible Party, etc.)
├── Template Matching (Control Family Templates)
└── Mistral 7B Service (Implementation Text Generation)
↓
mistralService.js
├── Load Configuration (config/app/config.json)
├── Check Provider (AWS Bedrock or Mistral API)
└── Generate Implementation Text
↓
AWS Bedrock or Mistral API (Cloud)
↓
Return Unique Implementation Text
↓
Combine with Pattern-Matched Fields
↓
Return Complete Suggestions
Benefits:
- ✅ Managed AI service (Mistral, Claude, Gemma, etc.)
- ✅ No self-hosted infrastructure
- ✅ IAM-based access control
- ✅ Pay per use
Setup: Configure in Settings → AI Integration: choose AWS Bedrock, set region and credentials (or use IAM role on EC2). See DEPLOYMENT_AND_OPERATIONS.md – Bedrock.
Benefits:
- ✅ Fast response times
- ✅ No local resource requirements
- ✅ Automatic model updates
Setup:
- Get API Key from console.mistral.ai
- Configure in
config/app/config.json:
{
"mistralConfig": {
"enabled": true,
"provider": "mistral-api",
"mistralApiKey": "your-api-key-here",
"mistralApiUrl": "https://api.mistral.ai/v1/chat/completions",
"timeout": 30000,
"maxRetries": 2,
"fallbackToPatternMatching": true
}
}| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | false |
Enable/disable Mistral integration |
provider |
string | "aws-bedrock" |
Provider: "aws-bedrock" or "mistral-api" |
model |
string | "mistral:7b" |
Model name (for Mistral API) |
mistralApiKey |
string | "" |
Mistral AI API key (for cloud) |
mistralApiUrl |
string | "https://api.mistral.ai/v1/chat/completions" |
Mistral API endpoint |
timeout |
number | 30000 |
Request timeout in milliseconds |
maxRetries |
number | 2 |
Maximum retry attempts on failure |
fallbackToPatternMatching |
boolean | true |
Fallback to pattern matching if Mistral fails |
- User clicks "Get Suggestions" for a control
- System analyzes control using pattern matching and templates (for status, responsible party, etc.)
- Mistral 7B generates unique implementation text based on:
- Control ID and title
- Control description from OSCAL parts
- Control family (AC, AU, IA, SC, SI, etc.)
- Fallback mechanism: If Mistral is unavailable, uses pattern matching
- Combined result: Pattern-matched fields + AI-generated implementation text
-
Control Family Templates (Confidence: 0.8)
- Matches controls to predefined templates by family (AC, AU, IA, SC, SI, etc.)
- Provides comprehensive implementation suggestions
-
Pattern Matching (Confidence: 0.7)
- Analyzes control title and description for keywords
- Matches against known patterns (access, audit, encryption, etc.)
-
Learning from Existing Controls (Confidence: 0.6)
- Finds similar controls from existing implementations
- Averages implementation details from similar controls
-
AI-Generated Implementation (Confidence: 0.7+)
- Mistral 7B generates unique, context-aware implementation text
- Based on actual control content and description
- Professional cybersecurity terminology
-
Default Suggestions (Confidence: 0.4)
- Provides generic but useful suggestions based on control characteristics
- ✅ Unique implementations for each control (no duplicates)
- ✅ Context-aware text based on actual control content
- ✅ Professional cybersecurity terminology
- ✅ Fallback support ensures suggestions always work
- ✅ AWS Bedrock (recommended) or Mistral API for cloud AI
Error: Access denied or model not available
Solutions:
- Enable model access in AWS Console → Bedrock → Model access
- Verify IAM permissions include
bedrock:InvokeModel - Check region supports the selected model
Error: Invalid Mistral API key
Solutions:
- Verify API key is correct in
config/app/config.json - Check API key hasn't expired
- Verify account has credits/quota available
Error: Request timeout
Solutions:
- Increase
timeoutvalue in config (default: 30000ms) - Check network connectivity
- For AI: Use AWS Bedrock or Mistral API (see DEPLOYMENT_AND_OPERATIONS.md and AI_INTEGRATION.md)
-
AWS Bedrock / Mistral API (cloud):
- Requires ~4GB RAM for Mistral 7B
- First request may be slower (model loading)
- Subsequent requests are fast
- No API costs
-
Mistral API (Cloud):
- Fast response times
- API rate limits apply
- Costs per request (check pricing)
- Requires internet connection
-
Cloud AI (Bedrock / Mistral API):
- Data never leaves your infrastructure
- No API keys required
- Best for sensitive/confidential data
-
Cloud API (Mistral):
- Use environment variables for API keys
- Rotate keys regularly
- Monitor API usage
- Review Mistral's data retention policies
After setup, test the integration:
-
Check Status:
# Check AI service status curl -H "Authorization: Bearer YOUR_SESSION_TOKEN" \ http://localhost:3020/api/mistral/status # Check backend health curl http://localhost:3020/health # Optional: if using Ollama locally (aiConfig.url → :11434), list models # curl http://localhost:11434/api/tags
-
Generate Suggestions:
- Open the application
- Load a catalog
- Expand any control
- Click "🤖 Get Suggestions"
- Verify implementation text is unique and relevant
- React 19: UI framework
- Vite 8: Build tool and dev server
- Axios: HTTP client
- CSS3: Styling with custom properties
- Lucide React: Icon library
- Node.js 20+ (LTS): Runtime environment
- Express 5: Web framework
- Axios: HTTP client for fetching catalogues (server paths use
safeAxioswhere required) - ExcelJS: Excel file generation and parsing
- PDFKit: PDF generation
- UUID: Unique identifier generation
- PBKDF2: FIPS 140-2 compliant password hashing
- Crypto: Node.js built-in cryptographic functions
- Suggested controls / narrative: Pattern matching plus LLM-backed text when AI is enabled
- AWS Bedrock (Mistral, Amazon Titan, Gemma on Bedrock, etc. via SDK and configured model IDs)
- Mistral API and optional HTTP backends (e.g. Ollama on a validated private URL) when set in Settings → AI Integration (
aiConfig) - PostgreSQL / RDS (optional): Custom and organisational fields; IAM DB auth supported on EC2 (see
docs/DATABASE_INTEGRATION.md)
-
FIPS 140-2 Compliant Hashing
- Algorithm: PBKDF2 (FIPS-approved Key Derivation Function)
- Hash Function: SHA-256 (FIPS 180-4 approved)
- Iterations: 100,000 (meets FIPS recommendations)
- Salt: Random 16 bytes (128 bits) per password
- Key Length: 32 bytes (256 bits)
- Storage Format:
pbkdf2$sha256$iterations$salt$hash - Migration: Automatic migration from legacy SHA-256 passwords
-
Password Generation
- Default passwords are generated from the build/startup timestamp (exact derivation intentionally undocumented)
- Unique per deployment instance
- Retrieve via login UI,
/api/auth/default-credentials, or the generated credentials file — change immediately after first login
-
User Management
- Role-based access control (Platform Admin, Assessor, User)
- Session-based authentication
- Password change functionality
- User activation/deactivation
-
Session Management
- In-memory session storage
- 24-hour session expiration
- Session token validation
-
Centralized Config Directory
- Runtime configs:
config/app/(sensitive data) - Build: root
Dockerfile+docker-compose.yml(legacyconfig/build/layouts removed; build from repo root only) - Ready for encryption and access control
- Runtime configs:
-
File Security
- Sensitive config files excluded from version control
- Automatic migration from legacy locations
- Script integration for secure deployment
-
Pass-backed sensitive config
- Passwords, tokens, and keys (Slack webhook URL, AI API token, AWS Bedrock credentials, SSO client secrets) are stored in the pass password manager or AWS Secrets Manager on EC2.
config.jsonholds only pointers, e.g.{ "_sm": "OSCAL/slack-webhook-url" }. The backend resolves these at runtime viagetResolvedConfig().GET /api/settingsis Platform Admin only and returns masked values; non-admin clients useGET /api/settings/runtimefor allowlisted fields only.
- Input Validation: URLs are validated before fetching
- Error Handling: Comprehensive error handling throughout
- CORS: Configured for local development and production
- No Data Storage: No sensitive data is stored on the server
- Client-side Storage: All user data stored in browser localStorage
- File Size Limits: 50MB limit on request body size
- Lazy Loading: Controls are rendered on-demand
- Optimized State: Efficient React state updates
- Streaming: Large files handled with streams where possible
- Caching: Browser caching for static assets
- Auto-save Throttling: Saves limited to every 2 seconds
- AI Caching: Mistral responses can be cached for similar controls
# Install dependencies
./setup.sh
# Run in development mode (hot reload)
npm run dev# Build frontend
cd frontend && npm run build
# Copy to backend
cp -r dist ../backend/public
# Start server
cd ../backend && NODE_ENV=production node server.jsNODE_ENV: Set toproductionfor production deploymentsPORT: Backend server port (default: 3020)- AI: Configure via Settings → AI Integration or
config/app/config.json(AWS Bedrock or Mistral API). See DEPLOYMENT_AND_OPERATIONS.md – Bedrock and AI_INTEGRATION.md. AWS_REGION: AWS region for Bedrock (e.g., us-east-1)BUILD_TIMESTAMP: Build timestamp for password generation- Frontend dev server port: 3021 (configured in
vite.config.js)
OSCAL_Reports/
├── backend/ # Node.js + Express backend
│ ├── auth/ # Authentication & authorization
│ │ ├── middleware.js # Auth middleware (JWT, session)
│ │ ├── passwordGenerator.js # Password generation utilities
│ │ ├── roles.js # Role definitions (Admin, Assessor, User)
│ │ └── userManager.js # User management & PBKDF2 hashing
│ ├── server.js # Main server file (Port 3020)
│ ├── configManager.js # Configuration management
│ ├── ccmExport.js # CCM Excel generation
│ ├── ccmImport.js # CCM Excel import/parsing
│ ├── pdfExport.js # PDF generation (PDFKit)
│ ├── sspComparisonV3.js # Catalog comparison logic
│ ├── controlSuggestionEngine.js # AI suggestion engine
│ ├── mistralService.js # Mistral AI (AWS Bedrock or Mistral API)
│ ├── gemmaService.js # Gemma (Bedrock / Google AI)
│ ├── integrityService.js # SSP integrity verification
│ ├── messagingService.js # Email/notification service
│ ├── oscalValidator.js # OSCAL validation (Schema-based)
│ ├── oscalValidatorAJV.js # AJV JSON Schema validator
│ ├── oscal-schema.json # OSCAL JSON Schema v1.1.2 (243KB)
│ ├── package.json # Backend dependencies
│ └── public/ # Built frontend files (generated by Vite)
│
├── frontend/ # React frontend
│ ├── src/
│ │ ├── components/ # React components (36 components)
│ │ │ ├── AIIntegration.jsx # AI provider configuration
│ │ │ ├── CatalogChoice.jsx # Catalog selection workflow
│ │ │ ├── CatalogueInput.jsx # Catalog URL input
│ │ │ ├── CCMUpload.jsx # CCM file upload
│ │ │ ├── ControlEditModal.jsx # Control editor modal
│ │ │ ├── ControlItem.jsx # Individual control component
│ │ │ ├── ControlItemCCM.jsx # CCM control item
│ │ │ ├── ControlsList.jsx # Controls list view
│ │ │ ├── ControlSuggestions.jsx # AI suggestions UI
│ │ │ ├── ErrorBoundary.jsx # Error handling boundary
│ │ │ ├── ExistingSSPUpload.jsx # SSP file upload
│ │ │ ├── ExportButtons.jsx # Export options (JSON/Excel/PDF/CCM)
│ │ │ ├── InitialChoice.jsx # Workflow choice (New/Existing)
│ │ │ ├── IntegrityWarning.jsx # Integrity alerts
│ │ │ ├── Login.jsx # Authentication UI
│ │ │ ├── MessagingConfiguration.jsx # Email config
│ │ │ ├── MultiReportComparison.jsx # Multi-report comparison
│ │ │ ├── SaveLoadBar.jsx # Quick save/load bar
│ │ │ ├── SaveLoadPanel.jsx # Full save/load panel
│ │ │ ├── Settings.jsx # Settings (legacy)
│ │ │ ├── SettingsWithTabs.jsx # Tabbed settings UI
│ │ │ ├── SSOIntegration.jsx # SSO configuration
│ │ │ ├── SystemInfoForm.jsx # System information form
│ │ │ ├── UseCases.jsx # Use case selector
│ │ │ ├── UserManagement.jsx # User admin UI
│ │ │ └── ValidationStatus.jsx # OSCAL validation status
│ │ ├── contexts/ # React contexts
│ │ │ └── AuthContext.jsx # Authentication context provider
│ │ ├── services/ # Frontend services
│ │ │ └── oscalValidator.js # Client-side OSCAL validation
│ │ ├── utils/ # Utility functions
│ │ │ ├── buildInfo.js # Build metadata & timestamps
│ │ │ ├── passwordGenerator.js # Client password utilities
│ │ │ └── storage.js # LocalStorage management
│ │ ├── App.jsx # Main application component
│ │ ├── App.css # Global styles
│ │ ├── index.css # Base CSS
│ │ └── main.jsx # React entry point
│ ├── index.html # HTML template
│ ├── package.json # Frontend dependencies
│ └── vite.config.js # Vite configuration (Port 3021)
│
├── config/ # Centralized configuration directory
│ ├── app/ # Application runtime configs (SENSITIVE)
│ │ ├── config.json.example # Config template (SSO, AI, messaging)
│ │ └── users.json.example # Users template (PBKDF2 hashes)
│ └── build/ # README only (optional notes; canonical build is root Dockerfile)
│
├── docs/ # Documentation
│ ├── ARCHITECTURE.md # This file
│ ├── DEPLOYMENT_AND_OPERATIONS.md # Deployment guide
│ ├── DEPLOYMENT_AND_OPERATIONS.md # Terraform, Bedrock, EC2, costs (consolidated)
│ ├── GIT_AND_RELEASE.md # Git branching, dual remotes, PRs (consolidated)
│ └── ... # See docs/README.md for full index
│
├── scripts/ # Deployment and utilities
│ ├── deploy-to-ec2.sh # Deploy to AWS Green/Blue
│ ├── ec2_automation.sh # Backup config/users to S3; optional S3 installer/ sync (every N cron runs); Pass ↔ Secrets Manager sync
│ └── debug/ # SSH, EC2 helpers
│
├── terraform/ # AWS infrastructure (Bedrock-only; no Ollama)
│ ├── envs/ # Per-account (e.g. aws4403)
│ │ └── aws4403/ # Symlinks + env-specific tfvars
│ ├── main.tf, vpc.tf, alb.tf # ALB, Green/Blue, S3
│ └── README.md # Tagging, stack lifecycle
│
├── test_cases/ # Backend tests (Jest)
├── sample_output/ # Sample output files
├── package.json # Root (dev, install:all, lint)
├── setup.sh # Setup script
├── docker-compose.yml # Single service (AI via Bedrock/Mistral API)
├── Dockerfile # Production image
└── README.md # Project overview and quick start
Date: December 2025
Status: ✅ Completed
Description:
Integrated Mistral 7B for generating intelligent, context-aware implementation descriptions. The system now provides unique implementation text for each control using AI, while maintaining pattern matching for other fields.
Features:
- ✅ Mistral/Gemma via AWS Bedrock or Mistral API (cloud)
- ✅ Unique AI-generated implementation text
- ✅ Pattern matching for status, responsible party, etc.
- ✅ Fallback to pattern matching if AI unavailable
- ✅ Configuration via
config/app/config.json - ✅ Status endpoint for checking AI availability
Technical Details:
- Backend Service:
backend/mistralService.js - Integration:
backend/controlSuggestionEngine.js - API Endpoint:
GET /api/mistral/status - Configuration:
config/app/config.json→mistralConfig
Files Created:
backend/mistralService.js- Mistral integration serviceMISTRAL_SETUP.md- Setup guide (now merged into this document)
Files Modified:
backend/controlSuggestionEngine.js- Integrated Mistral for implementation textbackend/server.js- Added/api/mistral/statusendpointconfig/app/config.json- Added Mistral configurationsetup.sh- Environment and dependency setupscripts/install_from_dockerhub.sh- Docker Hub pull-based deploy for TrueNAS / Blue-Green
Date: November 27, 2025
Status: ✅ Completed
Description:
Implemented an intelligent control suggestion engine that provides automated recommendations for control implementations based on pattern matching, templates, and learning from existing controls.
Features:
- ✅ Pattern matching based on control families (AC, AU, IA, SC, SI, etc.)
- ✅ Template-based suggestions for common control types
- ✅ Learning from similar existing controls
- ✅ Confidence scoring for each suggestion
- ✅ Field-level application (apply individual fields or all at once)
- ✅ Reasoning display (explains why suggestions were made)
Technical Details:
- Backend Engine:
backend/controlSuggestionEngine.js - API Endpoints:
POST /api/suggest-control- Get suggestions for a single control
- Frontend Component:
frontend/src/components/ControlSuggestions.jsx
Files Created:
backend/controlSuggestionEngine.js- Core suggestion enginefrontend/src/components/ControlSuggestions.jsx- UI componentfrontend/src/components/ControlSuggestions.css- Styling
Files Modified:
backend/server.js- Added API endpointsfrontend/src/components/ControlItem.jsx- Integrated suggestionsfrontend/src/components/ControlItemCCM.jsx- Integrated suggestions
Date: November 27, 2025
Status: ✅ Completed
Description:
Implemented FIPS 140-2 compliant password hashing using PBKDF2 with SHA-256, replacing the previous SHA-256-only implementation.
Technical Details:
- Algorithm: PBKDF2 (FIPS-approved Key Derivation Function)
- Hash Function: SHA-256 (FIPS 180-4 approved)
- Iterations: 100,000 (meets FIPS recommendations)
- Salt: Random 16 bytes (128 bits) per password
- Key Length: 32 bytes (256 bits)
- Storage Format:
pbkdf2$sha256$iterations$salt$hash
Features:
- ✅ FIPS 140-2 compliant password storage
- ✅ Automatic migration from legacy SHA-256 passwords
- ✅ Backward compatible with existing passwords
- ✅ Unique salt per password (resistant to rainbow table attacks)
Files Modified:
backend/auth/userManager.js- PBKDF2 implementationbackend/auth/passwordGenerator.js- Password generation utilities
Date: November 27, 2025
Status: ✅ Completed
Description:
Default user passwords now use a timestamp-based format that includes build/startup time, replacing static passwords.
Password Format:
Default passwords are derived deterministically from the build/startup timestamp, giving each deployment a unique default. The exact derivation is intentionally not published here to avoid making default credentials guessable — retrieve the generated value via the login UI banner, the /api/auth/default-credentials endpoint (first run only), or the generated credentials file (see DOCKER_HUB_GUIDE.md), then change it immediately after first login.
Features:
- ✅ Unique passwords based on build/startup timestamp
- ✅ Automatic password generation during setup/build
- ✅ Displayed in login UI for easy access
- ✅ Credentials file generated with all default passwords
Files Modified:
backend/auth/passwordGenerator.js- New password generation utilitybackend/auth/userManager.js- Updated default user initializationbackend/server.js- Added/api/auth/default-credentialsendpointfrontend/src/components/Login.jsx- Display timestamp-based passwordssetup.sh- Generate credentials file with timestamp passwordsDockerfile- Generate credentials during Docker build
Date: November 27, 2025
Status: ✅ Completed
Description:
Created a centralized config/ directory structure to organize all configuration files for better security, encryption, and access control management.
Directory Structure:
config/
├── app/ # Application runtime configs (sensitive data)
│ ├── config.json # Application settings (SSO, messaging, API gateways, Mistral)
│ └── users.json # User accounts and authentication data
│
└── build/ # README only (optional; canonical build is root Dockerfile)
Features:
- ✅ Centralized configuration management
- ✅ Separation of runtime and build configs
- ✅ Automatic migration from legacy locations
- ✅ Script integration for deployment
- ✅ Security-ready for encryption and access control
Files Modified:
backend/configManager.js- Updated to useconfig/app/config.jsonbackend/auth/userManager.js- Updated to useconfig/app/users.jsonsetup.sh- Copies config files fromconfig/to needed locationsDockerfile- Copies config files into Docker image
Date: November 14, 2025
Status: ✅ Completed
Description:
Implemented enterprise-grade API Gateway integration to remove all credential storage from the application.
Features:
- ✅ AWS API Gateway configuration in Settings
- ✅ Azure API Gateway configuration in Settings
- ✅ All API calls route through configured gateway
- ✅ No credentials stored in browser or application
- ✅ Authentication handled by cloud providers (IAM, Cognito, Azure AD)
Files Modified:
frontend/src/components/Settings.jsx- New API Gateway UIfrontend/src/components/ControlItem.jsx- Gateway routing logicfrontend/src/components/ControlItemCCM.jsx- Gateway routing logic
Date: November 13, 2025
Status: ✅ Completed
Description:
Added ability to fetch real-time compliance data from APIs and maintain historical records.
Features:
- "Fetch Data" button for automated controls
- Stores up to 12 daily data entries
- Keeps most recent entry per day
- Displays timestamp and success/failure status
- Shows JSON response data
- Exports history in OSCAL, CCM, and PDF formats
Files Modified:
frontend/src/components/ControlItem.jsx- Fetch functionalityfrontend/src/components/ControlItemCCM.jsx- CCM fetch functionalitybackend/server.js- Proxy endpoint for CORS handlingbackend/ccmExport.js- Export API history to Excelbackend/pdfExport.js- Include history in PDF reports
- Support for multiple security frameworks simultaneously
- NIST 800-53, ISO 27001, CIS Controls, PCI-DSS, etc.
- Cross-framework mapping
- Control compliance dashboard
- Status visualization (charts, graphs)
- Risk heatmaps
- Compliance percentage by framework
- Multi-user collaboration
- Approval workflows for control implementations
- Comment threads on controls
- Assignment and notifications
- Custom report templates
- Executive summaries
- Technical deep-dives
- Trend analysis over time
- JIRA integration for control tracking
- ServiceNow integration
- Slack/Teams notifications
- GitHub/GitLab for evidence artifacts
- Automatic evidence analysis
- Risk assessment recommendations
- Compliance gap identification
- Multi-model support (beyond Mistral 7B)
- Track changes to control implementations
- Rollback capability
- Audit trail for all modifications
- Compare versions side-by-side
- Responsive design for tablets
- Mobile app for iOS/Android
- Offline capability
- Push notifications
- OSCAL Output Integrity Check
- Digital signatures for SSP documents
- Cryptographic verification
- Shipped in 1.7.21: Unified export via
generate-ssp, work-session autosave, validation modal fixes,_ComplianceReportfilenames. - Future: Establish links between controls in edit mode; track changes across multiple reports; visual diff highlighting.
- Implement lazy loading for large control lists
- Add caching for API responses
- Optimize PDF generation speed
- Database backend instead of localStorage
- Cache Mistral responses for similar controls
- Add comprehensive unit tests
- Implement E2E testing with Playwright/Cypress
- Add TypeScript for type safety
- Improve error handling and validation
- Add rate limiting for API calls
- Implement CSP headers
- Add input sanitization
- Security audit and penetration testing
- Encrypt config files at rest
- Add API documentation (Swagger/OpenAPI)
- Create video tutorials
- Add inline code documentation
- Create troubleshooting guide
- Guardian Agent assessment retrieval in the Load Existing Report workflow (provider-owned read and preview API; OSCAL owns confirmation and the new revision). See GUARDIAN_ASSESSMENTS.md.
- Privileged Generic SSO (Authentik) access path with server-side group handling, audit logging and per-issuer Guardian endpoints
- Dependency remediation (backend audit 41 findings to 5 low); Node.js 24 in the Docker image and Terraform user data;
nodemonremoved - Docker image
keekar/oscal_reports:v1.9.0(multi-arch) when published
- VULN-37000: async job auth, IDOR prevention, rate limits (
jobAccess.js) - Deploy: passive-first Blue/Green; 502 prevention during AMI refresh
- Proactive API auth inventory tests
- Docker image
keekar/oscal_reports:v1.7.27(multi-arch) when published
- Terraform GHCR path
ghcr.io/adobe/oscal-report-generatorfor EC2 Docker mode - Docker publish workflow: GHCR + Docker Hub
- Docker image
keekar/oscal_reports:v1.7.25(multi-arch) when published
- Dependabot dependency updates merged into Quality (#45–#61)
- CI-stable OIDC/Docker unit tests; Quality Gates action bumps
- Docker image
keekar/oscal_reports:v1.7.23(multi-arch) when published
- Laptop pass bundle
PROD/OSCAL/AWS_SM(passBundle.js); EC2 deploy config hardening and goldenconfig/default/on S3 - Generic OIDC orphan
_smfix; safer SM migration on deploy - Docker image
keekar/oscal_reports:v1.7.22(multi-arch)
- Multi-Report Comparison export reliability and shared SSP export path
- Per-control AI suggestion prompts (
controlPromptContext.js) - Generic OIDC
tlsRelaxedfor Docker/NAS TLS chain issues - Docker image
keekar/oscal_reports:v1.7.21(multi-arch)
- Mistral 7B AI integration for implementation text generation
- Enhanced control suggestions with AI
- AI via Bedrock/Mistral API (no self-hosted LLM in deployment)
- Comprehensive TrueNAS deployment guide
- Consolidated documentation
- Initial release with complete OSCAL SSP generation
- Support for multiple catalogs (ISM, Essential 8, etc.)
- Excel (CCM) import/export
- PDF report generation
- Real-time API data fetching
- API Gateway integration
- Three use case workflows
- FIPS 140-2 compliant password hashing
- Timestamp-based default passwords
-
Email: mukesh.kesharwani@adobe.com
-
Document Format:
Enhancement Title: [Brief description] Problem: [What problem does this solve?] Proposed Solution: [How would it work?] Benefits: [Why is this valuable?] Priority: [High/Medium/Low] -
Technical Requirements:
- Maintain OSCAL compliance
- Follow existing code patterns
- Include tests
- Update documentation
- Reason: Security concerns with storing credentials in browser
- Replacement: API Gateway integration
- Migration: Configure API Gateway in Settings
- Reason: CORS issues and lack of centralized authentication
- Replacement: Backend proxy + API Gateway
- Migration: Automatic - no user action required
All AI interactions are logged following OpenTelemetry (OTel) Generative AI Semantic Conventions for full observability, compliance, and debugging.
- OTel Compliant: Follows OpenTelemetry GenAI Semantic Conventions
- JSONL Format: One JSON object per line for easy parsing
- Automatic Rotation: New log file created when size reaches 5MB
- Detailed Metrics: Tracks tokens, latency, prompts, responses, and errors
- Security: Admin-only access with RBAC permissions
- Location:
logs/directory in project root - Format:
ai-telemetry-YYYY-MM-DD[-N].jsonl - Rotation: Automatic at 5MB file size
- Retention: Indefinite (manual cleanup via API)
Each log entry contains:
- Prompts: All prompts sent to AI engines (AWS Bedrock, Mistral API)
- Responses: AI-generated implementation text
- Performance: Latency (ms), token usage (input/output/total)
- Context: Control ID, family, user/session metadata
- Errors: Detailed error information for debugging
{
"timestamp": "2025-12-20T10:30:45.123Z",
"trace_id": "trace-1234567890-abc123",
"span_id": "span-xyz789",
"resource": {
"service.name": "oscal-report-generator",
"service.version": "1.2.7",
"deployment.environment": "production"
},
"attributes": {
"gen_ai.system": "aws-bedrock",
"gen_ai.request.model": "mistral:7b",
"gen_ai.operation.name": "generate",
"gen_ai.usage.input_tokens": 245,
"gen_ai.usage.output_tokens": 156,
"gen_ai.usage.total_tokens": 401,
"gen_ai.response.latency_ms": 3245,
"gen_ai.status": "success"
},
"events": [
{
"name": "gen_ai.content.prompt",
"attributes": {
"gen_ai.prompt": "Generate implementation...",
"gen_ai.prompt.length": 980
}
},
{
"name": "gen_ai.content.completion",
"attributes": {
"gen_ai.completion": "The organization maintains...",
"gen_ai.completion.length": 624
}
}
],
"metadata": {
"control_id": "AC-1",
"control_family": "AC",
"user_id": "admin",
"session_id": "session-abc123"
}
}Returns log file statistics.
Authentication: Required + VIEW_AI_LOGS permission (Platform Admin)
Response:
{
"success": true,
"totalFiles": 5,
"totalSize": 15728640,
"totalSizeFormatted": "15.00 MB",
"files": [
{
"filename": "ai-telemetry-2025-12-20.jsonl",
"size": 5242880,
"sizeFormatted": "5.00 MB",
"created": "2025-12-20T08:00:00.000Z",
"modified": "2025-12-20T12:30:45.123Z"
}
]
}Deletes log files older than specified days.
Authentication: Required + MANAGE_AI_LOGS permission (Platform Admin)
Request Body:
{
"daysToKeep": 30
}Response:
{
"success": true,
"deletedCount": 3,
"message": "Deleted 3 log files older than 30 days"
}# Count total interactions
wc -l logs/ai-telemetry-*.jsonl
# Get average latency
cat logs/ai-telemetry-*.jsonl | \
jq -r '.attributes["gen_ai.response.latency_ms"]' | \
awk '{sum+=$1; count++} END {print sum/count " ms"}'
# Count by provider
cat logs/ai-telemetry-*.jsonl | \
jq -r '.attributes["gen_ai.system"]' | \
sort | uniq -c
# Find errors
cat logs/ai-telemetry-*.jsonl | \
jq 'select(.attributes["gen_ai.status"] == "error")'- AI prompts (may include sensitive control information)
- AI responses (implementation details)
- User/session metadata
Recommendations:
- Restrict file system access to
logs/directory - Implement log encryption if required by compliance
- Regularly audit log access
- Configure automated cleanup for old logs
- Exclude logs from backups if they contain sensitive data
-
Browser Storage Limits
- Large SSPs (>5MB) may hit localStorage limits
- Workaround: Export to JSON and re-import as needed
- Future Fix: Backend database planned
-
PDF Generation Speed
- Large reports (500+ controls) may take 10-15 seconds
- Workaround: Use CCM Excel export for faster processing
- Future Fix: Background job processing
-
API Gateway URL Format
- Gateway must accept
?targetUrl=query parameter - Workaround: Configure gateway to forward query params
- Future Fix: Support multiple gateway formats
- Gateway must accept
-
Mistral Model Loading
- First request to Bedrock may have cold-start latency
- Future Fix: Model pre-loading on startup
- Mukesh Kesharwani - Lead Developer & Architect
- Adobe - Organizational Support
- Frontend: React, Vite
- Backend: Node.js, Express
- PDF Generation: PDFKit
- Excel: ExcelJS
- OSCAL: NIST SP 800-53
- AI: AWS Bedrock, Mistral API
For questions or enhancement requests:
📧 mukesh.kesharwani@adobe.com
🏢 Adobe
Last Updated: December 2025