Where Vigil runs
Vigil runs entirely in your own AWS account, in Asia Pacific (Mumbai), ap-south-1. You install it from AWS Marketplace with Quick Launch, or with the HabileLabs Marketplace portal's launch link, as one CloudFormation stack (vigil, or vigil-nonprod for a non-production install). It reads the audit logs your databases already export to Amazon CloudWatch Logs (DynamoDB: CloudTrail data events). It needs no agent and no proxy, and it never changes your databases.
The only HabileLabs-hosted part is the licensing portal, the HabileLabs Marketplace at marketplace.habilelabs.io, which runs in HabileLabs' AWS account. Your install activates its licence there and checks in once a day. See What leaves your account.
What the stack creates
| Service | Resources | Used for |
|---|---|---|
| AWS CloudFormation | The root stack, a nested core stack, and one small stack per database you connect | Install, upgrade and removal. Every change is a reviewable stack update. |
| AWS Lambda | 11 functions (ingest, cloud-events, monitor, jobs, review, export, api, registrar, post-auth, publisher, license) and a pre-flight check | Parsing and masking audit logs, rules and alerts, posture checks, the weekly review, exports, the web API, licence check-in |
| Amazon Data Firehose | 2 delivery streams | Masked events to S3 as Parquet; original lines to the raw archive |
| Amazon S3 | 7 buckets: events, raw archive (Object Lock), exports, Athena results, web app, web-write trail, and (optional) DynamoDB data events | Storage. No bucket is public; every bucket refuses non-TLS requests. |
| AWS Glue and Amazon Athena | One database and table (partition projection, no crawlers); one workgroup with a 10 GB scan limit per query | Searching masked activity |
| Amazon DynamoDB | 3 tables: main, state (with TTL), audit (append-only) | Sources, accounts, alerts, reviews, the app's own audit trail |
| AWS KMS | 2 customer-managed keys with yearly rotation: a data key and a separate raw-archive key | Encryption at rest |
| Amazon Cognito | A user pool (MFA required, admin-only sign-up) and 4 role groups | Sign-in: password and authenticator code, or a passkey |
| Amazon API Gateway and Amazon CloudFront | An HTTP API with a Cognito JWT authoriser; a distribution with security headers | The web app and its API |
| Amazon EventBridge and EventBridge Scheduler | A Vigil event bus, rules for tamper, GuardDuty and data-copy events, and schedules (every 5 minutes, hourly, every 6 hours, weekly, daily) | Detection and periodic jobs |
| AWS CloudTrail | 1 trail recording writes to Vigil's web bucket; 1 more if DynamoDB monitoring is on | Tamper evidence; DynamoDB activity |
| Amazon SNS, Amazon SQS | Alert and operations topics (email); a dead-letter queue | Notifications; failed batches kept for retry |
| Amazon CloudWatch | Log groups (encrypted), 5 alarms and a dashboard | Operating Vigil |
| AWS Systems Manager Parameter Store | Parameters under /<stack name>/license/ (secrets as SecureStrings) | The licence key and the install's check-in credentials |
IAM roles and what each may do
Each function has its own role (least privilege). Two managed policies are shared: vigil-<env>-lambda-base (its own log groups; the data key; Vigil's main, state and audit tables; its alert topic; its event bus) and vigil-<env>-athena (Vigil's workgroup, Glue database and buckets only). vigil-<env>-audit-append-only explicitly denies updating or deleting the audit trail to every Vigil role.
| Role | Assumed by | Beyond the shared policies |
|---|---|---|
vigil-<env>-ingest | Lambda | Write to its two Firehose streams; write unparseable lines to the raw bucket; send to its dead-letter queue; the raw-archive key |
vigil-<env>-cloud-events | Lambda | Read RDS snapshots; list Organizations accounts; add a note and outcome to GuardDuty findings in Security Hub |
vigil-<env>-monitor | Lambda | Read-only RDS, EC2 security group and instance, CloudWatch Logs, GuardDuty and DynamoDB descriptions for posture checks; manage the event selectors of Vigil's own DynamoDB trail |
vigil-<env>-jobs | Lambda | Apply Object Lock retention to new raw objects; read CloudWatch usage metrics (cost estimate) |
vigil-<env>-review, -export | Lambda | Read and write review summaries and export files in Vigil's buckets |
vigil-<env>-api | Lambda | Invite, list and remove users and their groups in Vigil's user pool; start reviews and exports; presign export downloads; close GuardDuty findings it explains |
vigil-<env>-registrar | Lambda | Describe log groups and DynamoDB tables you connect; create a self-managed server's log group and set its retention; manage Vigil's DynamoDB trail's selectors |
vigil-<env>-post-auth | Lambda | Record sign-ins in the audit trail |
vigil-<env>-publisher | Lambda | Read this release's files from the public HabileLabs release bucket; write Vigil's web bucket; invalidate Vigil's CloudFront distribution. Nothing else. |
vigil-<env>-license | Lambda | Its own SSM parameters; count users in Vigil's user pool; read the root stack's status (to free the licence slot only when the stack is deleted) |
vigil-<env>-firehose | Firehose | Write to the events and raw buckets with their keys; read the Glue table schema |
vigil-<env>-scheduler | EventBridge Scheduler | Invoke Vigil's monitor, jobs, review and license functions |
| Pre-flight role | Lambda | Check for leftover Vigil buckets and tables, Vigil's stack exports, the CloudTrail trail count and the Lambda concurrency quota (read-only) |
Vigil creates no IAM users and no access keys. Its only writes outside its own resources are a note, fields and the workflow status on GuardDuty findings in Security Hub, and, when DynamoDB monitoring is on, its own trail's event selectors.
How your data is handled
Collection
Vigil reads the audit log lines your databases export to CloudWatch Logs, through a subscription filter on each log group you connect, and CloudTrail management events about RDS, GuardDuty and Vigil's own resources. It collects nothing else.
Storage and encryption
Every literal value in a statement (numbers, strings, PAN, Aadhaar or mobile numbers in a WHERE clause) is replaced with ? before anything is stored. If masking fails, the line is not stored as an event. Masked events go to S3 (Parquet) and DynamoDB, encrypted with Vigil's data key. The original lines go only to the raw archive bucket, encrypted with a separate key, under S3 Object Lock. Vigil's own logs carry IDs and counts only.
Use
Your data is used only to show you alerts, activity, accounts, reviews and exports in your install. HabileLabs has no access to your account or your install.
Sharing
Nothing is shared. Audit data never leaves your account (see the next section for the licence check-in).
Retention
Masked events stay searchable for EventRetentionDays (default 365). Raw archive files are locked for ArchiveRetentionDays (default 180) in the mode you choose: GOVERNANCE can be bypassed by a principal with s3:BypassGovernanceRetention; COMPLIANCE can't be shortened by anyone, including the root user. Alerts, reviews and the audit trail are kept in DynamoDB until you delete them.
Backup
The S3 buckets are versioned. The main and audit tables have deletion protection while ProtectData is true. Back them up with AWS Backup if your policy needs more.
Deletion
You control deletion; see Uninstall. HabileLabs holds none of your audit data, so there is nothing for HabileLabs to delete. To close your HabileLabs Marketplace account and its licence records, email support@habilelabs.io.
What leaves your account
Once at install and once a day, the licence function calls the HabileLabs Marketplace over HTTPS (/api/install/activate and /api/install/checkin). It sends exactly:
- the licence key (at activation) and the install's id and secret (at check-in);
- your AWS account ID, the Region, the stack's id and name, and the install slot;
- the Vigil version and whether the install is healthy;
- the number of databases connected, broken down by engine (for example
postgres: 3), and the number of enabled users.
It never sends database names or identifiers, account names, statements, IP addresses or anything read from an audit log. The portal answers with a signed licence token, your plan's database allowance and the latest version. If the portal can't be reached, Vigil keeps working and retries the next day.
Two AWS Partner attribution markers stay inside AWS: every resource the stack creates carries the tag aws-apn-id-941275879372, and Vigil's AWS API calls carry an AWS Partner user agent. AWS uses them to attribute the AWS usage of your install to HabileLabs as an AWS Partner. They send nothing to HabileLabs and play no part in how Vigil works.
Licence, plans and what happens if a subscription lapses
Plans cover a number of databases: an RDS instance, an Aurora or DocumentDB cluster with its readers, a DynamoDB table, or a self-managed server. Databases above the plan are billed as overage per database-day on AWS Marketplace; nothing is paused. If the subscription ends, Vigil shows a renewal notice for the grace period. After it, Vigil becomes read-only, which means one thing: new databases can't be connected. Monitoring, alerts, the archive, reviews and exports of the databases already connected carry on. Settings > Subscription in the app shows the plan, usage and state.
Costs in your AWS account
The AWS resources Vigil uses are billed to you by AWS, separately from the subscription: typically US$10 to US$30 a month for Vigil itself at about 1 GB of audit log a day, plus the CloudWatch Logs ingestion of your audit logs (which you pay whether or not Vigil runs). Cost in the app shows both, from your own usage metrics.
Upgrades
New releases appear in Settings > Subscription and in the HabileLabs Marketplace, with release notes. An Admin applies one by updating the stack with the new template URL, keeping every parameter (the app shows the exact command). Each release is a new, never-overwritten template, so you can review it first.
Uninstall
- Delete each database's source stack (
vigil-src-*, or the names you gave them). This removes the subscription filters; your databases and their audit settings are untouched. - Update the Vigil stack with
ProtectDataset tofalse(keeping the other parameters), then delete it. Deleting it frees your licence slot. - Buckets and the main and audit tables are kept on purpose, so evidence survives a mistaken delete. Export what you need, then empty and delete them. Raw archive files stay until their Object Lock date.
Support and security incidents
Email support@habilelabs.io with your AWS account ID and Vigil version (Monday to Friday, 10:00 to 19:00 IST; first response within one business day). To report a suspected security issue in Vigil, email the same address with "Security" in the subject; HabileLabs acknowledges it within one business day and notifies affected customers of any incident that concerns them.