Security practices
How AX secures client systems, websites and its own infrastructure — architecture, access control, backups, monitoring, development practices, incident response and vulnerability reporting.
Draft — not in force. Under review by our CEO and legal counsel.
Answer-first summary
AX runs client systems on AX-managed virtual private servers (Hostinger, Kuala Lumpur and Phoenix) with one isolated PostgreSQL database per client, row-level security enforced everywhere, HTTPS on every address, SSH-key-only server access, backups every minute of client databases to an offsite Cloudflare R2 bucket (point-in-time restore), least-privilege developer access, client-approved and logged support access to client ERPs, 24/7 watchdog monitoring with auto-restart, and a written incident-response and breach-notification procedure. Demos are static and hosted separately from client data.
Architecture
#| Layer | What we do |
|---|---|
| Hosting | AX-owned VPS instances (Hostinger KVM): Kuala Lumpur (production for client ERPs and AXO) and Phoenix (staging and legacy). Demo sites on separate shared hosting with no database access. |
| Isolation | One database per client ERP (PostgreSQL 17 in Docker on a shared database server bound to localhost); separate application folders, ports and nginx entries per client; no client can reach another's data. AXO is multi-tenant with row-level security (RLS) scoping every query to the tenant. |
| Transport | HTTPS (TLS) on all domains; HTTP redirected; HSTS where supported. |
| Authentication | Email + password with administrator-set passwords for staff; PIN logins for till/ |
| Secrets | Environment variables on the server; never in code repositories; rotated when staff leave. |
| Servers | Ubuntu LTS; SSH keys only (password login disabled); firewall limits open ports; updates applied monthly and on critical advisories. |
Backups
#| System | Frequency | Where | Restore |
|---|---|---|---|
| Client ERP databases | Continuous WAL streaming (every minute) + daily base backup | Cloudflare R2 bucket (offsite, AX company account) | Point-in-time to any minute |
| AXO | Daily per the published product docs (Where your data is kept); AX internal target: continuous/ | Offsite bucket | Tested quarterly |
| Websites and demos | Monthly copy; source files in the company drive | Company drive + host backups | Re-upload |
| Servers (VPS) | Host snapshots (daily on KL, weekly on Phoenix) | Hostinger | Full machine restore |
Restores are rehearsed; the last successful restore test date is recorded in the AX internal ERP.
Access control
#- Developers get only the access their task needs (limited accounts; no shared root; no access to company systems beyond their project).
- Support access to a client ERP requires per-instance approval by the client's administrator where the system supports it, and every action under support access is logged and visible to the client.
- Staff accounts are deactivated, never deleted, when someone leaves; audit history is kept.
- Client credentials (domain registrar, hosting, Meta/WhatsApp, payment gateways) belong to the client; AX holds them only as long as needed and records the hand-over.
Development practices
#- Business logic kept in one place (single source of truth); additive-only database migrations; RLS on every table.
- External APIs use a real-send / mock-fallback pattern so a failed provider cannot corrupt data.
- Every build runs type checks, unit tests, a database security (RLS) check and an end-to-end browser test suite before deployment; "hollow" checks that cannot fail are a known anti-pattern and are hunted for in review.
- Code is kept in private repositories under the company's accounts (migration from personal accounts is in progress — Compliance roadmap).
- AI-assisted development (Claude Code) runs under a human developer who reviews, tests and deploys; prompts never contain client secrets.
Monitoring and incident response
#- Watchdog (part of the AX internal ERP) checks every AX and client address 24/7, opens incidents, auto-restarts failed services with capped retries, and sends daily reports.
- Logs: server access and traffic logs are kept for at least 12 months (Pakistan's PECA 2016 s.32 requires service providers to retain traffic data for a year) and application audit logs for the life of the system; a procedure exists for lawful data-preservation requests from the NCCIA.
- Incident response: detect → contain (isolate the affected service/database) → assess data impact → fix → notify affected clients → write a post-incident note within 5 working days. Breach-notification timelines by jurisdiction are in Rules by country and the DPA.
Controls and evidence (what we can show)
#| Control | Evidence we keep | Reviewed |
|---|---|---|
| One database per client; row-level security | Database inventory; RLS policy export | Quarterly |
| HTTPS everywhere; SSH keys only; no password logins | Server configuration; certificate list | Monthly |
| MFA on every cloud console (hosting, DNS, email, AI providers, code hosting) | Account list with MFA status | Quarterly |
| Least-privilege developer access; access removed on leaving | Access list; offboarding checklist (SOP-15) | Quarterly and on change |
| Client-approved, logged support access | Access log per client system | On request |
| Continuous backups + monthly restore test | Restore-test record (date, system, result) (SOP-14) | Monthly |
| Dependency and OS updates | Update log | Monthly |
| Watchdog monitoring and alerting | Incident log; daily report | Daily |
| Incident response procedure | Post-incident notes | Per incident |
| Secrets outside code | Repository scan result | Per release |
Release gates (no deployment without all four)
#- Tested — automated tests pass or the manual check list for the change is recorded.
- Reviewed — a second person has read the change (including AI-written code).
- Recoverable — a fresh backup exists and the rollback step is written down.
- Communicated — affected clients know the window if the change touches their system.
Incident steps (expanded)
#| Step | Owner | Target |
|---|---|---|
| 1. Detect and log (watchdog, report, client notice) | Shayaan | Immediately |
| 2. Contain — isolate the affected service or database; rotate credentials if exposure suspected | Shayaan | Within 1 hour of confirmation |
| 3. Assess — what data, whose, how much, for how long | Shayaan + Azfer | Within 24 hours |
| 4. Notify — affected clients (template below) and, where the law requires, regulators and individuals within the statutory periods | Azfer | Without undue delay; within 72 hours at the latest for any confidential-information incident |
| 5. Fix and verify | Shayaan | As soon as safe |
| 6. Post-incident note — cause, impact, fix, prevention; shared with affected clients | Shayaan | Within 5 working days |
Client notification template
Subject: Security incident affecting [system] — notice from AX AAGILE XAAS LLP On [date/time PKT] we detected [what]. It affected [systems/data categories] belonging to [client]. We have [containment steps]. Our current assessment is [impact, confidence]. We recommend you [actions, e.g. reset passwords, check for unusual activity]. We will update you by [time] and provide a written post-incident note within five working days. Contact: [name], [phone], support@axaagilexaas.com. Reference: INC-[number].
Vulnerability reporting
#If you find a security issue in any AX system, email security@axaagilexaas.com (mailbox to be created) with steps to reproduce. We acknowledge within 2 working days, do not pursue good-faith researchers, and publish a /.well-known/security.txt file on every AX domain (RFC 9116) — see Compliance roadmap.
What clients must do
#- Keep their own administrator password private and enable two-factor authentication where offered.
- Not share logins between staff; create a user per person.
- Tell us within 24 hours if a device with the app is lost or an employee with access leaves.
- Keep their domain and hosting accounts in their own name.
Roadmap
#Penetration test by a third party, formal access reviews each quarter, a public status page, security.txt on all domains, SOC 2 readiness assessment — dates in Compliance roadmap.
