Hercules

AdvancedSecurity

Advanced

App Security

The Security tab audits your app for vulnerabilities, misconfigurations, and other security issues. You get a security score, a list of every check with what fails, and a button that has Hercules fix the issues in a chat. Audits can also run on a schedule and fix what they find.

For audits of other areas, such as design, performance, and code quality, see Audits.

Where is the Security tab?

Click Security in the Build section of the App Builder sidebar. It has four tabs:

  • Latest audit: Your security score and every security check.
  • Audit history: Every past audit.
  • Autopilot: Which audits run on their own, and whether Hercules fixes what they find.
  • Advanced: Security headers for your published app.

How do I run a security audit?

  1. Open Security and click Run security audit. After your first audit, the button is Run audit at the top right.
  2. In Choose an audit, pick Quick, Standard, or Comprehensive, then run it.

While an audit runs, Latest audit shows only the running audit. The results appear when it finishes.

Before your first audit, the tab lists every check under What gets checked. Click a check to read what it looks at.

You can audit an app before you publish it. The checks that read your code run, and the ones that need the published app wait under Not run until you publish.

Which audit should I choose?

AuditWhat it runsCost
QuickCode checks. No AI.Free
StandardCode checks and AI checks. Recommended.A few credits, on paid plans
ComprehensiveCode checks, AI checks, and an AI deep scan with our most capable model.About 50 to 100 credits, paid plans

The dialog shows what each paid audit usually costs before you run it. A long audit can cost more than the range shown. On a plan without Standard and Comprehensive audits, they read Paid plans and the dialog offers Upgrade.

A Comprehensive audit takes much longer than the others. It reads your code and never touches your live app, and you can leave the page while it runs. When it finishes, click View report to read its report.

What gets checked?

The checks cover six topics:

  • Secrets and API keys: No secret keys in your source code or in the code visitors download.
  • Data access: Backend functions (the server code your app runs) validate their input, users only read and change their own records, and shared data leaves out private fields.
  • Sign-in and accounts: Who is acting comes from the signed-in session, admin actions check the caller's role, and users cannot raise their own role.
  • Web protections: Private files cannot be reached from the web, plain HTTP redirects to HTTPS, cookies are set safely, and other sites cannot frame your app.
  • Payments, email, and AI: Prices and totals are set on the server, email and AI features require sign-in, and webhooks (messages another service sends your app) verify who sent them.
  • Dependencies: The packages your app is built on have no known vulnerabilities.

A Quick audit runs the checks decided by code. Standard and Comprehensive audits add the checks where AI reads your code.

What does the security score mean?

The security score is the share of security checks your app passes, from 0 to 100. Click the (?) beside Security score to see how it works:

  • Each check counts by its severity: critical most, info not at all.
  • A failing check counts as failed however little of your app fails it.
  • Issues an AI audit finds lower the score too.
  • Checks that did not run are left out.
  • Any open critical issue holds the score at 49 or below.

Under the score you see when the app was audited, the app version, the audit type, and how many checks ran. An audit that ran before your first publish is scored on the checks that ran, so the score can change after you publish.

How do I read the list of checks?

Each row is one check, or one issue an AI audit found. A row with an issue starts with its severity, then the check, then its status (Open, or Fixing while a fix is under way). Rows with no issue start with a mark: a check mark for a check that passed, a dash for one that did not run.

The list is grouped by status:

  • Issues: The check found issues that are still open. When nothing fails, this reads No issues found.
  • Fixing: A fix is under way, or waiting for you to publish.
  • Not run: The check has not run, for example because it only runs in Standard and Comprehensive audits.
  • Passing: The check found nothing wrong.
  • Dismissed: What the check found was dismissed.

Click Group to group by Category, Severity, or Source instead. A check's source is Code checks, AI checks, or Deep scan. Use the search box and Filter to narrow the list.

What do the severity levels mean?

  • Critical: Fix immediately. A serious vulnerability that could compromise your app or your users' data.
  • High: Fix soon. A significant issue.
  • Medium: Fix when convenient. It improves security but is not urgent.
  • Low: Consider fixing. A minor improvement.
  • Info: Worth knowing. It never lowers the score.

How do I see the details of a check?

Click a row to open it in a side panel. A check shows:

  • What it checks and Why it matters
  • Result: What fails, that it passed, or why it did not run. A failing check lists its findings (each page, file, function, or package that fails) and about how many points fixing it returns to the score.
  • History: The check's result in recent audits. Click one to open that audit.

Click a finding to open it. A finding shows What we found, the evidence, a proposed fix, and its activity. A finding from a Comprehensive audit adds Why it matters, with tabs for the fix, how to reproduce it, and the details behind its severity.

How do I fix issues?

  1. Click Fix all issues under the score. To fix fewer, click the fix button on a group, or open one check or finding and click Fix issue.
  2. Hercules starts a chat and fixes them there. If some need you, such as a setting to change, a dialog lists them.
  3. The findings move to Fixing. When the fix is made, the finding's panel reads Fixed in preview, publish to finish, or Fix made. Publish to confirm it when the preview cannot confirm it.
  4. Publish your app. The next audit that runs the check confirms the fix, and the finding closes. A finding from an AI audit is rechecked by the first Quick audit after you publish, at no cost.

Fix all issues leaves out Info issues. To fix one, open it and click Fix issue.

To confirm one fix without a whole audit, open the finding and click ⋯ → Recheck. Rechecking a finding from an AI audit needs a paid plan and uses credits.

How do I dismiss a finding?

  1. Open the finding and click ⋯ → Dismiss…
  2. Enter a Reason, such as Accepted risk
  3. Click Dismiss finding

The finding moves to Dismissed, and the reason is kept in its activity. To bring it back, open it and click Reopen.

What does Autopilot do?

The Autopilot tab sets which audits run without you starting them:

  • Quick audit: Free. Runs after each publish and every night. Switch it off to stop both.
  • Standard audit and Comprehensive audit: Off until you pick how often, from every hour to every 4 weeks. Each run uses credits, and the line shows what a run costs. When two audits are due at the same time, only the more thorough one runs.

Can Hercules fix issues on its own?

Yes. On the Autopilot tab, under Fix issues automatically, pick which issues Hercules fixes after a Quick audit:

  • Off: Hercules fixes nothing on its own. This is the default.
  • Critical and high issues: Recommended.
  • All issues: Critical, high, medium, and low.

Hercules fixes them in a chat, up to two chats a day, and each chat uses credits like any other. It leaves Info issues and fixes that could break your app to you.

The fixes stay in your preview until you publish. To have Hercules publish them too, switch on Publish a fix once the preview confirms it.

What is in Audit history?

Every audit, newest first, with the audit type, the app version, its score, what changed since the audit before (such as 2 new, 3 fixed), and when it ran. Click an audit to open it as it was then. A past audit is read only. Click View latest audit to go back.

Additional FAQ

Why does a check say Not run?

Some checks only run in Standard and Comprehensive audits, so a Quick audit leaves them out. Others need your published app, so they wait until you publish. Open the row and read Result for the reason.

Does an audit change my app?

No. An audit only reads your app. Nothing changes until you click a fix button, and a fix reaches your live app when you publish.

What happens if a fix does not work?

If the issue is still there after you publish the fix, the finding moves back to Issues.

Can I change a finding's severity?

Yes. Open the finding, click its severity, and pick another under Set severity. The finding is shown and scored at the severity you pick. Check's default marks the original. Pick it to reset the finding.

What else keeps my app secure?

Alongside audits: