Back to Home
Vendor security assessment document

Security & Compliance Posture

The document we share with enterprise InfoSec teams and vendor security reviewers. It is incorporated by reference into our Master Services Agreement and Data Processing Addendum, so it is published here in full and without a login.

Document last updated 2026-05-20. Published by Nexos USA Corp., which owns and operates NEXOS.

NEXOS — Security & Compliance Posture

Document owner: Nexos USA Corp. Last updated: 2026-05-20 Audience: Enterprise InfoSec, vendor security assessment, prospective customers under NDA Status of this document: Living source of truth. Updated whenever a control changes.


Executive summary

NEXOS is a multi-tenant SaaS platform for multi-location back-office operations: invoice extraction, expense management, scheduling, inventory, P&L reporting, and Fair Work Week compliance. The platform runs on AWS in us-east-1, with tenant data physically isolated at the database schema layer.

This document describes the security controls, infrastructure posture, and operational guardrails in place. It is updated as controls evolve. Customer InfoSec teams receive this in lieu of a long-form questionnaire on first contact, and we respond to any custom questionnaire after that.


1. Data isolation

Schema-per-tenant PostgreSQL. Every tenant corporation has its own dedicated PostgreSQL schema inside the shared Aurora cluster. Schemas are named after the tenant and are never accessed across tenant boundaries. Cross-tenant queries are not possible at the application layer because the request middleware sets the active schema per request based on the authenticated user's tenant binding.

  • Tenant schemas are provisioned on registration via an idempotent provisioning service
  • Schema migration runs on startup and adds any missing columns to every tenant schema atomically
  • A separate platform schema (public) holds cross-tenant data: corporations, users, audit logs, billing
  • Application code is statically enforced to never join across tenant boundaries (codebase rule, reviewed on every PR)

Why this matters: A logical bug at the application layer cannot leak one tenant's data into another tenant's query result, because the schema is set before the query is built. Compromise of one tenant's credentials cannot reach another tenant's schema.

2. Authentication and access control

2.1 Password authentication

  • Hashing: Argon2id, the OWASP-recommended modern password hash. Memory cost, time cost, and parallelism are set to the OWASP 2024 reference parameters.
  • Salt: Per-password, generated by the Argon2 implementation, never reused.
  • Password reset tokens: Generated via crypto.randomBytes(24) (192 bits of entropy), single use, time-bound.

2.2 Multi-factor authentication (MFA)

  • TOTP-based, RFC 6238 compliant
  • Required for all account_owner and CFO roles
  • Optional for all other roles, configurable per tenant
  • Backup recovery codes available, single-use

2.3 Single sign-on (SSO)

  • SAML 2.0 supported for enterprise tenants
  • Pre-tested compatibility with Azure AD, Okta, Google Workspace
  • Per-tenant SSO configuration with separate identity provider trust per corporation
  • SSO enforcement option: when enabled, password login is disabled for that tenant

2.4 Role-based access control (RBAC)

Strict hierarchy enforced at the middleware layer:

account_owner > cfo > executive > regional_director > area_director
              > location_manager > store_manager > employee
  • Higher roles inherit access to lower-role data within their tenant
  • Location-scoped roles (regional_director and below) can only see data for stores assigned to them
  • Role arrays are centralized in a shared types module, never inlined per-route, to prevent drift
  • A platform-admin role exists for Nexos USA Corp. support engineering; platform-admin actions are audited separately

2.5 Session management

  • Sessions stored in ElastiCache Redis, not in JWT cookies
  • sameSite=lax cookie attribute, CSRF protection enforced
  • Session timeout: 30 minutes of inactivity, 12 hours absolute
  • Suspended tenants: sessions are forcibly invalidated within one minute of suspension
  • IP-based session pinning available, opt-in per tenant
  • Refresh tokens stored separately, rotated on every use, single-use

3. Encryption

3.1 At rest

  • Database (Aurora PostgreSQL): Encrypted via AWS KMS. Customer-managed key option available on Enterprise plans.
  • Object storage (S3): All buckets enforce SSE-KMS encryption. Public access blocked at the account level.
  • Secrets: All credentials (API keys, OAuth tokens, encryption keys, signing keys) stored in AWS Secrets Manager. Never in environment files, never checked into source control.
  • Field-level encryption (defense-in-depth): Sensitive per-row fields — OAuth access tokens, OAuth refresh tokens, and TOTP/MFA seeds — are encrypted with AES-256-GCM before being written to the database, in addition to the Aurora at-rest layer. The master key lives in AWS Secrets Manager; the database never sees it. A DB snapshot or replica leak does not expose plaintext tokens. Implemented end-to-end 2026-05-26.
  • Encryption keys: Rotated annually for application-level keys, AWS-managed rotation for KMS CMKs.

3.2 In transit

  • TLS 1.2 minimum, TLS 1.3 preferred
  • HSTS header set with one-year max-age and includeSubDomains; preload
  • Certificate management via AWS Certificate Manager, auto-renewed
  • Internal service-to-service traffic uses AWS PrivateLink where applicable, otherwise stays within the VPC

4. Network security

4.1 Perimeter

  • Web Application Firewall (WAF): AWS WAF live in front of the API CloudFront distribution. Common Rule Set, Known Bad Inputs, SQL Injection Match, and IP reputation rules enabled.
  • DDoS protection: AWS Shield Standard (included with CloudFront and ALB)
  • Bot management: Rate-based rules in WAF, supplemented by application-layer rate limits per IP and per authenticated identity

4.2 VPC and network isolation

  • Database (Aurora) lives in private subnets, no public route table
  • Database access from application tier via AWS RDS Data API; direct PostgreSQL port is not exposed publicly
  • Application tier (ECS Fargate) runs in private subnets, egresses through NAT for outbound only
  • Load balancer (ALB) is the only public-internet-facing component
  • Security groups follow least-privilege: each tier only allows ingress from the tier directly above it

4.3 Application-layer headers

  • Content Security Policy (CSP): strict, no unsafe-inline, no unsafe-eval
  • X-Frame-Options: DENY (no embedding without explicit partner allowlist)
  • X-Content-Type-Options: nosniff
  • Referrer-Policy: strict-origin-when-cross-origin
  • Permissions-Policy: minimal feature allowance

5. Application security

5.1 SQL injection prevention

  • All database access via parameterized queries (Drizzle ORM) or explicit parameter binding
  • No string concatenation into SQL is permitted anywhere in the codebase
  • Repo rule enforced on every PR

5.2 File upload validation

  • Magic byte validation: Every uploaded file is validated by reading its leading bytes, not by trusting the client-supplied MIME type or extension
  • EXIF stripping: Every image upload is piped through sharp().withMetadata(false) before reaching S3. GPS coordinates, device model, and camera timestamp never persist in stored files.
  • Size limits: Per-file and per-tenant enforced before any processing begins
  • Antivirus scanning: Every object uploaded to the invoices bucket and the inbound-email bucket is scanned by AWS GuardDuty Malware Protection for S3. GuardDuty tags each object with a scan-status tag (NO_THREATS_FOUND, THREATS_FOUND, UNSUPPORTED, ACCESS_DENIED, FAILED). Our extraction pipeline polls for the tag before processing — THREATS_FOUND triggers an automatic move to a quarantine/ prefix, marks the related invoice/receipt record as rejected_malware, and writes an audit log entry. Other statuses soft-fail open so scanner gaps (oversize files, unusual encodings) don't block legitimate uploads, with the gap logged for telemetry review.

5.3 API surface

  • API keys (partner program): Generated via crypto.randomBytes(24) for 192 bits of entropy. Prefixed pnr_live_ for production keys. Stored hashed at rest. Rotation supported, revocation immediate.
  • Scopes: 21 scopes across 8 capability groups. Keys are scoped per integration; least-privilege issuance.
  • Rate limits: Per-key, per-endpoint, per-tenant. Excess returns 429 with Retry-After.
  • Webhook signatures: All outbound webhooks signed with HMAC-SHA256, signature in header, replay window enforced. All inbound webhooks (Stripe, partner) signature-verified before processing.

5.4 Error handling

  • API responses never expose stack traces, internal error messages, SQL errors, or infrastructure details
  • All internal errors logged to CloudWatch with full context; client receives a sanitized message
  • 4xx responses include enough information for client correction; 5xx responses include only an opaque correlation ID

5.5 Dependency hygiene

  • All dependencies version-locked via pnpm-lock.yaml
  • New dependencies require a runtime smoke test before merge
  • CI lint gate blocks any PR with React hook violations or unused critical imports
  • Renovate (or equivalent dependency scanner) tracks CVEs against the lock file
  • Critical CVEs trigger same-day patch deploy

6. Audit logging and retention

6.1 What we log

Every one of these actions writes a tamper-evident row to the platform audit_logs table:

  • Authentication: login success, login failure, logout, password reset request, password reset complete, MFA enrollment, MFA challenge
  • Authorization: role change, scope change, tenant suspension, tenant unsuspension
  • Data: every API call writing data, recorded with actor, tenant, target resource, before and after diff where applicable
  • Billing: every Stripe webhook event, signature-verified
  • Agent activity: every specialist agent invocation, including the tenant scope, the user that triggered it (if any), the model tier used, and the audit row of any data the agent surfaced
  • Platform-admin actions: separate audit trail with a stricter retention guarantee

6.2 Retention

  • Live retention: Seven years for tenant audit logs, in line with GDPR Article 5 and US tax recordkeeping requirements
  • Archival: After three years live, logs are exported to S3 Glacier with object-lock for the remaining retention period
  • Deletion: A GDPR retention sweeper runs weekly and removes any data past the seven-year window, with the platform-admin audit trail itself preserved
  • Tenant right to export: Any tenant can request a full data export of their audit trail in JSON or CSV via the export endpoint

6.3 Tamper evidence

  • Audit log rows are append-only; updates and deletes at the SQL layer are blocked by row-level security
  • A rolling SHA-256 hash chain anchors each day's audit batch. Every UTC day, every audit_logs row written that day is serialized in a canonical, sorted, whitespace-normalized form; the SHA-256 of the batch is mixed with the previous day's hash and stored in a separate daily-chain table. Any change to a historical audit_logs row breaks the chain at that day and every day after, and surfaces as a verification failure on the next audit.
  • External anchoring. Each day's chain row is additionally uploaded to a separate S3 bucket configured with Object Lock in COMPLIANCE mode for a 7-year retention period. Once written, these anchor objects are immutable against every actor including the AWS root user. This defends the chain itself against privileged database tampering: an attacker with full Aurora write access who attempts to rewrite both audit_logs and audit_log_daily_chain still cannot undo the S3 anchors.
  • Customer InfoSec teams can request a chain verification report at any time; the verification endpoint recomputes every day's hash and returns the list of any mismatches.

7. AI agent guardrails

NEXOS includes a fleet of specialist AI agents (seventeen as of this writing) that run automated analysis on tenant data: vendor price watching, compliance review, cash discrepancy detection, scheduling, and others. Every agent is constrained by the same controls.

7.1 Tenant scope (physical)

Every agent invocation runs inside the same schema-per-tenant boundary as a regular API request. An agent literally cannot query another tenant's data because the schema is set before the query is built.

7.2 Hard system prompts with named rules

Each agent has a fixed system prompt with explicit do-not behaviors. The compliance specialist, for example:

  • Never invents penalty amounts; only restates calculated values
  • Cites the specific statute (e.g., NYC Admin Code § 20-1222(c)) for any compliance claim
  • Refuses to predict audit outcomes
  • Routes every premium calculation to a deterministic helper, never to model judgment

7.3 Quiet by default

Every autonomous agent is required to return SKIP when nothing actionable is present. A runner-level defense-in-depth filter additionally drops any response that resolves to a no-op, so a "burning issues only" surface never devolves into noise.

7.4 Audit and observability

Every agent run logs to the per-tenant audit trail with the model tier, the tools called, the data surfaced, and any deliveries (push, bell, email) made. Tenants can review the full history of agent activity.

7.5 AI inference provider

All large-model inference is delegated to a US-based AI inference provider under their commercial API terms. By default, the provider's API terms include a short retention window (typically up to 30 days) for abuse-monitoring purposes; tenant data never leaves the inference call boundary, is never used for model training, and is bound by the provider's enterprise security and privacy controls. A Zero Data Retention enrollment with the provider is in progress as of 2026 Q2 to eliminate the retention window entirely for production inference traffic.

8. Infrastructure

ComponentDetail
CloudAWS, region us-east-1
ComputeECS Fargate (no SSH, no persistent disk, ephemeral)
DatabaseAurora PostgreSQL 17.4 Serverless v2
AvailabilityMulti-AZ across two availability zones, writer + reader
CacheElastiCache Redis (session store, rate-limit counters)
Object storageS3, SSE-KMS, public access blocked
SecretsAWS Secrets Manager, KMS-encrypted
Container registryECR, immutable tags, image scanning enabled
CDNCloudFront, separate distributions for API and marketing, each with its own WAF web ACL
Load balancingApplication Load Balancer (ALB), TLS termination
DNSRoute 53
EmailAmazon SES, SPF + DKIM + DMARC configured
SMSAWS End User Messaging, 10DLC brand registration
Logs and metricsCloudWatch Logs and Metrics, with retention policies per stream

8.1 Multi-AZ failover

Aurora storage is replicated synchronously across three availability zones. A reader instance is provisioned in a different AZ from the writer. On writer failure, Aurora auto-promotes the reader within approximately 30 seconds. The application reconnects automatically through the cluster endpoint.

8.2 Backup and recovery

  • Continuous backup via Aurora's point-in-time recovery, 35-day retention window
  • Snapshot encryption at rest enforced via AWS KMS
  • Cross-region snapshot replication to us-west-2 is in progress as part of the 2026 Q2 trust surface initiative
  • RPO (single-AZ event): under 1 minute via continuous backup
  • RTO (single-AZ event): under 30 seconds via Aurora Multi-AZ auto-failover (writer fails over to the standby reader in the alternate availability zone)
  • RTO (full-region event): target under 4 hours once cross-region snapshot replication is live

8.3 Logging retention

  • Application logs: 90 days hot in CloudWatch, then archived to S3 for 3 years
  • Audit logs: 7 years (see Section 6.2)
  • Access logs (ALB, CloudFront): 1 year
  • All log groups are KMS-encrypted

9. Operational security

9.1 Deployment

  • All production deploys go through CI on a protected main branch
  • TypeScript strict mode enforced (strictNullChecks: true)
  • CI runs unit tests, integration tests, lint, and type check before any image build
  • Deploy pipeline pushes to ECR, registers a new ECS task definition, and rolls a blue/green deployment
  • No manual SSH or shell access into production containers; all changes via the deploy pipeline

9.2 Secrets management

  • Zero secrets in source control
  • Zero secrets in environment files committed to git
  • All secrets fetched at container start from AWS Secrets Manager, scoped via IAM task role
  • Secret rotation runs without code changes (env vars resolve at task start)
  • Per-tenant secrets (partner API keys, integration tokens) stored hashed in the database, never logged

9.3 Access to production

  • Production AWS account access is limited to the engineering team (founder plus lead engineer)
  • Engineering team uses IAM credentials for daily operations; credentials are scoped to a small named set of accounts, rotated, and revoked immediately on offboarding
  • Migration of engineering access to AWS Identity Center with short-lived SSO sessions, plus migration of CI/CD deploy access to GitHub OIDC federation (eliminating long-lived deploy keys entirely), is scheduled for Q3 2026
  • All AWS API actions logged to CloudTrail, retained 1 year minimum, with AWS GuardDuty actively analyzing for anomalies
  • Production database access for engineering support is via the AWS RDS Data API with full audit trail; direct PostgreSQL connections are not exposed to the public internet

10. Compliance posture

10.1 GDPR

  • Tenants can export their data at any time via the export endpoint
  • Tenants can request hard deletion at any time; deletion completes within 30 days and is verified by the retention sweeper
  • Sub-processor list (Section 12) is published and updated when changed
  • EU data residency: today, all data lives in us-east-1 under the US-EU Data Privacy Framework; EU region available on Enterprise plans by request

10.2 CCPA / CPRA

  • Tenant data deletion and export rights honored
  • Consumer privacy requests routed through the tenant of record

10.3 PCI DSS

  • NEXOS does not store, process, or transmit cardholder data
  • All payment collection is via Stripe Checkout / Stripe Elements; PCI scope is delegated to Stripe (Level 1 PCI DSS service provider)
  • Stripe webhook signatures verified on every event before processing

10.4 Fair Work Week compliance built into the platform

NEXOS includes city-pack rule sets for jurisdictions with predictive scheduling laws: New York City, San Francisco, Chicago, Philadelphia, and Oregon. The platform calculates predictability pay automatically when a covered schedule change occurs, enforces the 72-hour advance notice rule, generates the audit pack required by NYC DCWP, and blocks publication of non-compliant schedules.

10.5 SOC 2 status

We do not currently hold a SOC 2 attestation, and a formal SOC 2 program is not currently funded. For prospects who require one before contract, we engage in a Vendor Security Assessment Questionnaire (VSAQ) process and provide this document plus any custom answers. We will revisit a formal SOC 2 program when revenue supports the sustained cost.

10.6 Security testing

Continuous internal security testing runs as part of normal development: static analysis on every PR, dependency scanning against published CVE feeds, manual security review of every change touching auth, billing, or tenant isolation, and the GuardDuty + audit-chain monitoring described above. A formal third-party penetration test engagement is not currently in scope; we will pursue one when an enterprise contract justifies the program cost.

11. Incident response

11.1 Detection

  • CloudWatch alarms on error rates, p99 latency, failed login spikes, and unusual data egress
  • Audit log anomaly detection (failed login bursts, role escalations, agent rate spikes)
  • AWS GuardDuty enabled for the production account

11.2 Response

  • 24/7 founder on-call paging via email and SMS
  • Tier 1 response (acknowledge): under 1 hour during business hours, under 4 hours overnight
  • Critical incident playbook documented and rehearsed quarterly
  • Customer notification: within 72 hours of a confirmed data incident affecting their tenant, in line with GDPR Article 33

11.3 Post-incident

  • Root-cause analysis written within 7 business days
  • Customer postmortem provided to any affected tenant
  • Control changes to prevent recurrence tracked through the engineering board

12. Sub-processors

Sub-processorServiceRegion
Amazon Web ServicesCompute, storage, database, networking, secrets, email, SMSus-east-1
StripePayment processingUS
US-based AI inference providerLarge model inference under commercial API terms; Zero Data Retention enrollment in progressUS
Voyage AIEmbedding generation (RAG retrieval)US
DatadogWeb browser real-user monitoring (no PII, opt-out per tenant)US
SentryMobile app crash reporting (no PII, opt-out per tenant)US

We update this list when a sub-processor changes. Tenants on enterprise plans can request advance notice of any change.

13. Data classification and handling

ClassificationExamplesHandling
PublicMarketing copy, public docsNo restriction
InternalCode, infrastructure configRestricted to Nexos USA Corp. engineering
ConfidentialTenant business data (invoices, schedules, employee records, vendor pricing)Schema-per-tenant, encrypted at rest, RBAC enforced
RestrictedAuthentication credentials, encryption keys, API keysAWS Secrets Manager, KMS-encrypted, hashed at rest in database, never logged

14. Data subject rights

RightMechanism
AccessTenant account_owner has full read access via the dashboard and export endpoint
RectificationTenants edit their own data directly; deletion of an audit row is denied (immutable) but additional notes can be appended
ErasureTenants can request full deletion; the retention sweeper executes within 30 days
Data portabilityTenants can export all data in JSON or CSV at any time
RestrictionTenant suspension halts new data ingestion and access while preserving existing data
ObjectionTenants can opt out of telemetry collection (Datadog RUM, Sentry mobile)

15. Contact

For security disclosures, vulnerability reports, or vendor security questionnaires:

  • Email: security@nexosscan.com
  • PGP key: available on request
  • Disclosure policy: 90-day coordinated disclosure window, no legal action against good-faith researchers

For ongoing customer InfoSec questions, the account team is the first point of contact and will route to engineering as needed.


This document is reviewed quarterly. Significant control changes trigger an out-of-cycle update and customer notification on Enterprise plans.