Vulnerability Management Policy
| Category | Security |
|---|---|
| Version | 1.0 |
| Status | Approved |
| Approved | 2026-03-25 by Mishkin Berteig |
| Next Review | 2027-03-25 |
| ID | POL-8 |
| Document version | policies/vulnerability-management.md at commit 9c72db400a23 (SHA-256 8cd9a80d2a9a) |
Linked Controls
- INFRA-9 Vulnerability scanning
- INFRA-2 Pen testing
- INFRA-4 Patch Management
Vulnerability Management Policy
Purpose
This policy establishes requirements for identifying, assessing, and remediating vulnerabilities across the MaxGood.work platform.
Scope
All MaxGood.work production and staging infrastructure, applications, containers, and dependencies.
Vulnerability Scanning
Automated Scanning
- Container images: Scanned for known vulnerabilities in development as part of the continuous security assessment system (MGSecurityAssessment)
- Dependencies: Python (pip) and JavaScript (npm) dependencies audited for known CVEs
- AWS infrastructure: AWS Inspector and Security Hub are not currently enabled; enabling with automated notifications is a planned enhancement
- Application code: Static code analysis integrated into the development workflow via the pre-commit AI red-team review (Red-Team Review Protocol) and MGSecurityAssessment's JIT static analysis
Scanning Frequency
| Scan Type | Frequency |
|---|---|
| Dependency audit (pip/npm) | Prior to every push to remote (MGSecurityAssessment L1) |
| Container image scan | Prior to every push to remote (MGSecurityAssessment L1) |
| Static code analysis | Prior to every push to remote (MGSecurityAssessment L2) |
| Infrastructure assessment | Quarterly |
Patch Management
Severity-Based Response
| Severity | Response | Examples |
|---|---|---|
| Critical (CVSS 9.0+) | Must be patched before push; blocks deployment | Remote code execution, auth bypass |
| High (CVSS 7.0-8.9) | Must be patched before push, or a managed exception recorded in the repo's ./MGSecurityAssessment.conf |
Privilege escalation, data exposure |
| Medium (CVSS 4.0-6.9) | Within 30 days | Limited impact vulnerabilities |
| Low (CVSS 0.1-3.9) | Next scheduled maintenance | Informational findings |
Patch Process
- Vulnerability identified through scanning or advisory notification
- Security Officer assesses severity and impact
- For Critical/High: push blocked until resolved (or managed exception for High). For Medium/Low: Kanban Zone card created for remediation
- Patch developed, tested in Docker development environment, deployed to staging
- Verified in staging before production deployment
- Kanban Zone card moved to completion
Operating System and Runtime Patching
- Docker base images are updated to include latest OS patches during regular builds
- Python and Node.js runtime versions are kept current with supported LTS releases
- AWS-managed services (RDS, ElastiCache, ELB) apply patches through AWS maintenance windows
- Self-hosted third-party images on the Easypanel host (n8n, Apache Tika and AFFiNE on the Lightsail instance
MaxGood.work-n8n) are checked weekly and updated byscripts/easypanel-update-check.py --apply, one release at a time. On the Easypanel host, the service's backup, its probes before and after each update and the automatic rollback take the place of the staging verification in the Patch Process. Each step is recorded underMGDataAndEvidence/evidence/artifacts/easypanel-updates/as evidence for Patch Management (INFRA-4). The conditions are set inpolicies/change-management.md→ "Standard Change: Easypanel Host Updates". - The operating system and installed software of every server MaxGood.work administers itself are patched weekly by
scripts/server-patching.py weekly --applyunderpolicies/compliance/server-patching.md: backed up, checked for signs of compromise, updated, rebooted when needed, and verified from the server and from outside. The same procedure covers emergency changes and components outside the package manager, which a person runs. The snapshot, the probes and the verification take the place of the staging verification in the Patch Process. Each run is recorded underMGDataAndEvidence/evidence/artifacts/server-patching/as evidence for Patch Management (INFRA-4).
Penetration Testing
MaxGood.work employs a continuous, AI-driven security assessment system (MGSecurityAssessment) that replaces traditional annual external penetration testing.
Assessment Layers
| Layer | Scope | Frequency |
|---|---|---|
| L1 — Dependency & CVE Intelligence | All repos' dependencies scanned against NVD, OSV.dev, GitHub Advisory Database | Prior to every push to remote |
| L2 — Static Analysis & Configuration | bandit, semgrep, hadolint, prowler across all codebases | Prior to every push to remote |
| L3 — Active Endpoint Testing | OWASP Top 10 against all services in Docker Compose dev environment | Prior to every push to remote |
| L4 — AI Agent Security Assessment | Business logic adversary, attack chain synthesis, social engineering, independent attestation | Monthly (attestation refresh), quarterly (full assessment) |
Layer 4 Model
Layer 4 runs the same reviewers as the pre-commit red-team review (policies/change-management.md → "Automated Red-Team Review Engine"): two primaries, GPT-6 Luna and Claude Haiku 5.5 on AWS Bedrock with the developer's own AWS identity, and the model alias amazing on the self-hosted private-ai gateway (PRIVATE_AI_BASE_URL and PRIVATE_AI_API_KEY from the workspace-root .env) as the decider of their disputes. Every Layer 4 agent and the attestation run on both primaries; the attestation filter treats a finding as covered by a SCAN_EXCEPTION: attestation only when both primaries agree it is covered with the same attestation, and keeps it otherwise.
Each Layer 4 run has a 480-second budget and spends at most US$0.10 of Bedrock, within the developer's US$1.00 daily limit. It analyses its context in parts of at most 32,000 characters, highest priority first: the pushed repository's code, then the most severe Layer 1-3 findings, then the other repositories' code. The parts the budget or the spending limit does not reach are recorded as Layer 4 PARTIAL. When Bedrock is unreachable or the daily limit is reached, Layer 4 is recorded as Layer 4 NOT RUN. Both notices never block a push. A push is blocked by a Critical Layer 4 finding in the repository being pushed, or in no identifiable repository; a Critical Layer 4 finding in another repository is reported in the scan output and its evidence and does not block the push, and it is tracked on a Kanban Zone card for remediation.
Independence
MGSecurityAssessment is a separate repository with its own CI/CD. The development team consumes its output but does not control its rules or scoring.
Attestation
The attestation agent (Layer 4d) produces a formal security assessment of the full security posture: an executive summary, a risk assessment, CVSS 3.1 base scores for the most critical findings of Layers 1-4, a SOC 2 control mapping, remediation priorities and an attestation statement. Each scored finding is reported with its source, advisory identifier, code location, score and vector, and its severity is set from the score (9.0 and above Critical, 7.0 High, 4.0 Medium, otherwise Low). The narrative sections are reported as one summary finding, taken from the first primary that gives a valid answer.
Run Modes
| Mode | Trigger | Layers |
|---|---|---|
| Full assessment | Manual / quarterly | All |
| Change assessment | Pre-deploy CI/CD | L1–L3 (changed files) |
| Continuous monitoring | Daily | L1 only |
| Attestation refresh | Monthly | L4d only |
| Targeted probe | Manual | Any single layer |
Evidence and Findings
- All assessment output is stored in
MGDataAndEvidence/pentest-reports/andpentest-evidence/ - Findings are tracked in Kanban Zone cards with remediation deadlines based on severity
- The Security Officer reviews assessment reports and ensures all findings are addressed
- All reports are retained as SOC 2 compliance evidence
Host Hardening
Container Hardening
- Production containers use minimal base images (no unnecessary packages)
- Containers run as non-root users where possible
- Docker Compose configurations define resource limits
- No SSH access to production containers; administration via ECS exec when required
AWS Infrastructure Hardening
- Security groups follow least-privilege (only required ports open)
- Production runs in AWS VPC; development is local (Docker containers on developer machines), providing inherent isolation
- S3 buckets are configured to block public access where verified; not all buckets have been audited for public access settings
- IAM policies enforce least-privilege access
Virtual Machine Hardening (Lightsail Servers)
MaxGood.work administers two Lightsail instances in ca-central-1: mg-wordpress (Debian 12, the blog) and MaxGood.work-n8n (Ubuntu 24.04 with Docker, the Easypanel host). The baseline for both:
- Network. The Lightsail firewall opens TCP 22, 80 and 443 and no other port. The instance metadata service requires session tokens (IMDSv2).
- Administration. A server is reached for patching and supervised changes only through a temporary Lightsail SSH key whose host keys are pinned and which is deleted after use (
infrastructure/server-patching/README.md). Every command ofhost-patch.shchanges nothing without--apply. - Patching. Unattended upgrades install operating-system security updates; the weekly job
scripts/server-patching.py weekly --applyinstalls the remaining package updates and reboots when a kernel or reboot notice waits, after a clean site check, a recent Lightsail snapshot and a clean compromise review (policies/compliance/server-patching.md). - Backups. Lightsail automatic snapshots are enabled on both instances.
- Services. The blog's MariaDB listens on 127.0.0.1 only and phpMyAdmin answers requests from the server itself only; Apache runs the event MPM with PHP-FPM, Apache's own PHP module is disabled, and
http2_moduleis off. Certificates renew automatically (certbot-renew.timeron the blog). On the Easypanel host the applications run as Docker containers behind the host's HTTPS reverse proxy and are updated one release at a time byscripts/easypanel-update-check.py. - Compromise review. Each weekly run reviews web-log failures, changes to accounts, keys and scheduled jobs, executable files in upload folders, per-directory settings that prepend code, processes of the web account, file checksums against the publisher and the administrator accounts, and stops all changes on a sign of compromise.
- Verification. After every change the server verification and the full site check run, and the result is recorded under
MGDataAndEvidence/evidence/artifacts/server-patching/.