Skip to content

Pentest

Setting up applications

Decide what to set up, then create an application, link its code, and tell Trace where it runs and how to sign in.

An application is what Trace tests. Every pentest covers one or more applications. Setting one up tells Trace what your product is, where its code lives, where it runs, and how to sign in. Organization admins set up applications from Applications in the dashboard or with the CLI.

1. Decide what to create

Create one application for each product your customers use. Count products, not repositories or services: a web app and the API behind it are one application, and so is a product built from twenty microservices. Staging and production are two environments of the same application.

You need a second application when you have a second product with its own users and login. A customer portal and an internal admin tool are two applications. So are a web app and a mobile app, even if they share an API. Link the API's repository to both. Your Android and iOS apps are two applications too, each with its own builds.

Then pick a type for each one.

TypeChoose it for
WebAnything people use in a browser, including the API behind it
API serviceAn API with no frontend, such as a public or partner API
MobileAn Android or iOS app
DesktopAn app people install on macOS, Windows, or Linux
CLIA command-line tool your customers run

How many applications an engagement includes depends on your plan. See Pricing.

2. Create the application

Create an application

Name it, pick its type, and finish setup on the next page.

Opens in your dashboard

Open dashboard

Give the application a name and a type. Web and API service applications also need the URL people use to reach them.

The Applications page in the Trace dashboard, listing Acme Mobile and Acme Platform with its URL, a Create application button, and a callout for setting up applications from the terminal with tracecli.
The Applications page in the Trace dashboard, listing Acme Mobile and Acme Platform with its URL, a Create application button, and a callout for setting up applications from the terminal with tracecli.

The other fields are optional, but help Trace test accurately:

  • Help center URL and Documentation URL: show Trace how your product is meant to work. With them, it can tell a bug from intended behavior.
  • Notes: install steps, test-mode flags, and anything else Trace should know. Secrets go in credentials instead.
The Create application dialog in the Trace dashboard, with Type, Name, and Application URL filled in, followed by the optional Help center URL and Documentation URL fields and, under Advanced, an optional Notes field.
The Create application dialog in the Trace dashboard, with Type, Name, and Application URL filled in, followed by the optional Help center URL and Documentation URL fields and, under Advanced, an optional Notes field.

You don't need to add an API schema. If a linked repository has an OpenAPI, Swagger, or GraphQL schema, Trace finds it.

Skip this step for a greybox or blackbox engagement. Trace doesn't read your source in either.

Link every repository that handles a request for this application: the frontend, the backend, any auth service, and background jobs that touch user data. Trace only finds bugs in code it can read, so when in doubt, link it. You can skip marketing sites and internal tools the application never calls.

To link one:

  1. Open the application from Applications, then choose Link repository in its Repositories section.
  2. Pick the repository under Repository. Only connected repositories are listed (see below).
  3. Optionally pick a Role, like Frontend or Backend API. For a monorepo, set Path / context hint to the folder the application lives in, like apps/web.
  4. Leave Include in pentest scans on. Turn it off only to keep the repository linked without Trace reading it.
  5. Choose Link repository, then repeat for the next one. The same repository can be linked to more than one application.
The Link repository dialog for Acme Mobile in the Trace dashboard, with acme/platform-api selected under Repository, Role and Path / context hint fields, Include in pentest scans switched on, and a Link repository button.
The Link repository dialog for Acme Mobile in the Trace dashboard, with acme/platform-api selected under Repository, Role and Path / context hint fields, Include in pentest scans switched on, and a Link repository button.

Repositories come from GitHub or Bitbucket. If your code lives somewhere else, use Upload code to add a ZIP or a folder, then link it like any other repository once it passes safety checks.

4. Add an environment

An environment is a running copy of the application. Trace signs in, creates data, and tries real exploits against it, so use staging or a test environment if you have one.

For Web and API service applications, set the Target URL for Trace to test. List any other hosts that belong to the application, like your API or an admin app, under Additional URLs (up to 100 per environment). An additional URL can also be a WebSocket endpoint (ws:// or wss://); the Target URL is always http:// or https://. During an open pentest, you can add URLs, but you can't change the Target URL or the URLs already listed until the engagement finishes.

Your first environment is named production and marked Production by default. If it's actually staging, rename it and turn Production off so your report describes it correctly.

Mobile, desktop, and CLI applications don't need a URL. Add one anyway if Trace needs to sign in, since credentials belong to an environment.

An application's page in the Trace dashboard: Repositories lists three linked GitHub repositories with their roles (Backend API, Frontend, Auth service), Environments lists Staging and Production with their URLs, and Credentials has an Add credential button.
An application's page in the Trace dashboard: Repositories lists three linked GitHub repositories with their roles (Backend API, Frontend, Auth service), Environments lists Staging and Production with their URLs, and Credentials has an Add credential button.

5. Add credentials

Skip this step for a blackbox engagement, where Trace tests like an outside attacker. Greybox engagements still need credentials.

Without credentials, Trace can only test what a stranger can reach. Give it accounts in at least two tenants, with at least two roles in each, like an admin and a regular member. That lets Trace check whether one customer can see another's data, or whether a regular user can do what only an admin should.

For a new test account, choose Generate password in the password field. It fills the field with a random password, and its options set the length and whether to include numbers and symbols. The passwords meet Auth0's strictest password policy.

If another application already has the account, choose Link from another application instead of adding a copy. A linked credential is edited only in the application that owns it, so a change there, like a rotated password, applies everywhere it's linked.

In a credential's Notes, tell Trace about the account: its tenant, its role, what it can reach, and anything it shouldn't touch. Trace reads the note during the pentest. Keep secrets out of it.

Credentials are encrypted when you save them. Only organization admins can reveal a saved secret, and nobody can reveal session state or SSH keys. A Sign in with Google login holds no secret, only the Trace address it uses. See How Trace handles your data.

Choose a sign-in type

Sign-in typeUse it for
Username and passwordMost apps
Passwordless email loginApps that sign people in with magic links or one-time codes
API key, bearer token, or JWTAPIs
Sign in with Google (SSO)Apps that sign people in with Google
Cookie or session stateAny other SSO provider
SSH private keyHosts Trace should connect to
PassphraseSecrets that aren't sent with a web request

For Sign in with Google, you don't share a password. Pick one of Trace's Google accounts (pentestagent@securewithtrace.com or pentestagent2@securewithtrace.com) and invite that address into your app with the role you want tested. You can add each address once per environment, so use both to test two roles or two organizations against each other.

If an account uses an authenticator app, add its setup key (the text version of the QR code) under Two-factor authentication on the credential. If your app asks for a passkey, Trace creates one and lists it under Passkeys.

Give an account a Trace email

A Trace email gives an account an inbox Trace can read, for sign-up and confirmation emails, magic links, and one-time codes. We recommend one for any new account.

  1. On a username and password or passwordless login, choose Generate an email inside the empty username field.
  2. Keep the suggested name or change it. You can only edit the highlighted part. The rest of the address, including @pentest.securewithtrace.com, stays fixed.
  3. Choose Confirm email to create the inbox. Saving the credential creates it too.
  4. Invite that address to your app, or sign up with it as the username. Trace reads the inbox during the pentest.

If the account already exists, type its username instead. To use the account's own login instead, remove the Trace email with the × in the field. To get a Trace email back, clear the field and choose Generate an email again.

A credential that signs in with a Trace email shows an envelope on its row, with the number of emails in the inbox and a dot when one has arrived since you last opened it. Choose the envelope to read what your app sent to that address: the text of each email, any one-time code, and its links. You can copy a link but not open it from there, because a sign-in or confirmation link usually works once and Trace needs it. Anyone who can edit the application's credentials can read these inboxes, and tracecli inbox emails lists the same email.

6. Upload a build

For a mobile app, upload an .apk or .ipa under Builds on the application's page, or with tracecli upload build. Trace tests both the running app and the files inside the build.

For iOS, upload a development or ad hoc build. App Store and TestFlight builds are encrypted, so Trace can't run them.

Desktop apps don't have a build upload yet. Say in Notes where Trace can download the installer, and add a credential if the download needs a login.