Summary. This policy describes the security controls Mozes applies today to protect the data of creators, of third parties and of the partners it integrates with (such as TikTok and TikTok Shop). It complements the Privacy Policy (in Portuguese), which covers purposes, legal bases, data subject rights and retention. Versão em português: /security.
1. Security program and owner
- Owner: Juliano Garcia, founder of Mozes, is responsible for information security and incident response, and is the Data Protection Officer (DPO, "Encarregado") under Brazil's data protection law (LGPD). Contact: juliano@mozes.ai.
- Scope: the web application (mozes.ai, app.mozes.ai and the internal console at admin.mozes.ai), the Google Cloud infrastructure, the source code, and the team's accounts and devices.
- Review: this policy is reviewed on every relevant change to infrastructure, vendors or data processing. The version and update date are shown at the top of this page.
2. Data classification
All data handled by Mozes falls into one of these four levels. The handling rules of each level also apply to the levels above it.
Public
- Examples: the landing page, these legal texts, public TikTok profiles and videos shown as references.
- Handling: may be displayed without authentication. No confidentiality control beyond content integrity.
Internal
- Examples: source code, technical documentation, infrastructure configuration, aggregate cost and usage metrics.
- Handling: team-only access, in a private GitHub repository and a restricted Google Cloud project; never published.
Confidential
- Examples: the creator's account data (name, email, TikTok handle, niche), her videos, analyses, scripts and plans; data received from TikTok and TikTok Shop through integrations the creator authorized; per-user usage and cost records.
- Handling: accessible only to the authenticated data subject herself, and to the team when needed to operate or provide support; encrypted in transit and at rest; data subject emails are masked in logs; included in account export and account deletion (LGPD).
Restricted
- Examples: passwords, OAuth access and refresh tokens (TikTok and TikTok Shop), API keys, session secrets and encryption keys, database credentials.
- Handling: never stored in plain text or in source code. Passwords are stored only as bcrypt hashes; OAuth tokens are encrypted at the application layer with AES-256-GCM; secrets are kept in Google Secret Manager and delivered only to the service that needs them; invite and password reset tokens are stored only as hashes; never written to logs; excluded from data exports; outside the reach of the read-only database role.
3. Access control and least privilege
Team and infrastructure
- Team accounts are @mozes.ai Google Workspace accounts with mandatory 2-step verification.
- The GitHub organization that hosts the code requires two-factor authentication for all members, and the repository is private.
- In the production Google Cloud project, the owner role is held exclusively by the security owner (section 1).
- Each component runs under its own service account: one for the application, one for scheduled jobs, one for the build/deploy pipeline, and one dedicated to command-line administrative actions. None of them has an exported private key: credentials are issued by Google itself, and the administrative service account is only used through authorized impersonation.
- The Compute Engine default service account, which Google Cloud creates automatically, has no role in the project.
- Read queries against the production database use a read-only role (no write privileges, read-only transactions by default, per-query timeout) that cannot see secret columns (such as the password hash).
Internal administration console
- It lives on a separate domain (admin.mozes.ai) with its own session, independent from the users' session — an app account cannot open the console.
- Sign-in uses Google (OAuth with PKCE) and is accepted only when the email is verified, belongs to the @mozes.ai domain and is on an explicit administrator allowlist, which can be revoked per person. Administrator sessions expire after 12 hours.
- Every administrative action is recorded in an audit log (who, what, when). Irreversible actions (immediate account deletion, administrator management) can only be performed through the interface, never from the command line.
Platform users
- Sign-in with email and password. Passwords are hashed with bcrypt (cost factor 12); login and password reset attempts are rate-limited per email and per IP.
- The session is a signed token in an
httpOnlycookie, valid for 7 days. Changing the password ends all open sessions. - Every API route goes through the same authentication wrapper, which identifies the user from the session and blocks deleted or suspended accounts. Queries for account data are filtered by the authenticated user: one creator cannot access another creator's data.
Access review
Access is granted on a least-necessary basis and reviewed whenever someone joins or leaves the team or changes role, and whenever a vendor or integration is added or removed. Access that is no longer needed is revoked.
4. Encryption
In transit
- All public traffic is HTTPS. HTTP requests are redirected to HTTPS, and browsers are instructed to use HTTPS only (HSTS for 2 years, including subdomains).
- The Cloudflare edge only accepts TLS 1.2 or higher; TLS 1.0 and 1.1 connections are refused.
- Between the Cloudflare edge and the Google Cloud load balancer, traffic is also HTTPS, and Cloudflare validates the origin certificate (Full (strict) mode), which is managed by Google Certificate Manager.
- The application, the deployment pipeline and the team's tools connect to the database only through the Cloud SQL connector (or proxy), which encrypts the connection with TLS and authenticates through Google Cloud IAM. The database has no authorized external networks, so it does not accept direct connections from the internet.
- The database itself is configured to accept encrypted connections only: unencrypted connections are refused.
- Calls to vendors (section 12) are made over HTTPS.
At rest
- The database (Cloud SQL), file storage (Cloud Storage) and backups are encrypted at rest by Google Cloud by default.
- In addition, TikTok and TikTok Shop OAuth tokens are encrypted by the application itself with AES-256-GCM, using a key kept in Secret Manager — even someone reading the database does not obtain the tokens.
- Passwords are not encrypted but transformed into an irreversible hash (bcrypt).
5. Network security
- Edge: all traffic goes through Cloudflare, with its managed web application firewall rules, DDoS protection and rate limiting on sensitive routes (login, search, analysis).
- Closed origin: the load balancer only accepts connections from Cloudflare's IP ranges (Google Cloud Armor, deny by default); only port 443 is exposed. The connection from Cloudflare to the origin is HTTPS with a validated certificate (section 4).
- No direct ingress to the application: the Cloud Run service only accepts traffic from the load balancer or from inside Google Cloud — the service's direct address does not answer the internet.
- Application rate limiting: in addition to the edge, the application itself limits attempts per user and per IP on authentication and AI routes.
- Security headers:
X-Frame-Options: DENY,X-Content-Type-Options: nosniff, a strictReferrer-Policy, and aPermissions-Policythat disables camera, microphone, geolocation and payment. - Files: storage buckets use uniform IAM access and are not public; export downloads use short-lived signed links.
6. Devices (endpoints)
The team's computers used to develop and administer Mozes (currently macOS) keep:
- full-disk encryption (FileVault);
- built-in system protections enabled (Gatekeeper, XProtect and System Integrity Protection);
- the macOS firewall enabled;
- automatic system and security updates;
- automatic screen lock after inactivity.
7. Secure development and change management
- Every code change goes through a pull request, which automatically runs type checking, linting, automated tests and the dependency vulnerability audit (below).
- Production deployment is automated and only happens from the main branch: the pipeline repeats the checks, runs end-to-end tests against a disposable database, builds the image, applies migrations, releases the new version and runs a smoke test; if the smoke test fails, traffic automatically rolls back to the previous version.
- Database changes are additive by default. Destructive changes follow a dedicated procedure: two releases, a backup beforehand and explicit approval from the security owner.
- New features ship behind feature flags, and costly external dependencies have kill-switches that turn the integration off without a new deployment.
- Secrets never enter the repository: they are read from Secret Manager at deploy time.
Vulnerability management
- Alerts: Dependabot alerts are enabled on the repository and report published vulnerabilities in our dependencies and in the GitHub Actions we use.
- Automatic fixes: Dependabot security updates are also enabled and open fix pull requests, which go through the same checks as any other change.
- Pull request gate: every pull request runs
npm auditon the production dependencies; a high or critical vulnerability fails the check. An exception is only accepted temporarily, recorded in the repository with a justification and a review date, and fails again once it expires. - Target remediation times (production dependencies): critical within 48 hours, high within 7 days, moderate within 30 days and low with the package's next update.
8. Backup and continuity
- The production database has automatic daily backups, with the 7 most recent backups retained, and point-in-time recovery (PITR) with 7 days of transaction logs.
- Database, files and backups are located in the Google Cloud São Paulo region (Brazil).
- Files deleted from storage remain recoverable for 7 days (soft delete).
- A faulty release is rolled back by the pipeline itself (section 7) or manually, by routing traffic back to the previous revision.
9. Logging, monitoring and alerting
- The application emits structured logs, ingested by Google Cloud Logging. Data subject emails are masked; passwords and tokens are not logged.
- An uptime check tests the service every minute.
- Automatic alerts, sent by email to the security owner, fire when the service goes down, when the 5xx error rate rises, when error logs appear, and when the data collection vendor runs out of credit.
- Administrative actions are recorded in the console's audit log (section 3).
10. Incident response
Roles
- Incident response owner and DPO: Juliano Garcia — coordinates detection, containment, recovery and communication, and decides on notifications.
Steps
- Detection: automatic monitoring alerts (section 9), smoke test failure during deployment (with automatic rollback), the audit log, and external reports through the security contact.
- Containment: turning off the affected integration or feature via kill-switch or feature flag, without a new deployment; suspending accounts; revoking access of the administrators and accounts involved; rotating secrets and keys in Secret Manager; adjusting edge rules (Cloudflare and Cloud Armor).
- Eradication and recovery: fixing the root cause through the normal change process (section 7), rolling back to a previous version and, if needed, restoring data from backup or PITR (section 8).
- Post-incident: recording what happened, the cause, the impact and the measures taken, and adjusting controls and this policy where applicable.
Communication and channels
- How to report: anyone can report a vulnerability or a suspected incident to juliano@mozes.ai.
- Data subjects and the ANPD: when an incident may cause relevant risk or harm, we notify the ANPD (Brazil's data protection authority) and the affected data subjects in accordance with article 48 of the LGPD, as described in section 14 of the Privacy Policy.
- Partners and sellers: in the event of a suspected or confirmed incident involving data received from partners (such as TikTok and TikTok Shop) or from sellers, we notify the affected partner without undue delay and within 72 hours of becoming aware of it, by email to the partner's official contact, describing the nature of the incident, the data involved, the measures taken and the DPO's contact, and we cooperate with the investigation.
11. Retention and deletion
Retention periods are set out in section 10 of the Privacy Policy. In short: deleting an account disables access immediately and, after 15 days (during which the data subject may cancel), erases the account data, including stored files (public videos that other users follow as references are only unlinked); database backups and copies of deleted files expire within 7 days. Data subjects can export their data at any time from the app.
12. Vendors (processors)
We use the vendors listed in section 5 of the Privacy Policy, each only for the purpose described there:
- Google Cloud Platform — hosting, database and files (São Paulo, Brazil);
- Google (Gemini API) — AI video analysis;
- Anthropic (Claude) — AI text generation, from already-derived data;
- ScrapeCreators — collection of public TikTok data;
- Resend — transactional email delivery;
- PostHog — usage analytics by internal identifier, when enabled;
- Cloudflare — proxy, CDN and abuse protection;
- Pagar.me — billing.
Access keys for these vendors are kept in Secret Manager, and costly or external integrations can be turned off by kill-switch.
13. Security contact
Vulnerabilities, incidents or questions about this policy: juliano@mozes.ai.