Skip to content
Open dashboard (opens in a new tab)

Applications

Applications

An application is something NightVision tests: a web app, an API, or a repository. Every scan, schedule and finding belongs to one application, and every application belongs to one project.

In the dashboard: Applications

Open Applications (opens in a new tab)

There are three types:

Type What it is How scans cover it
Web A site with pages, reached at a URL NightVision crawls it in a browser and tests what it finds
API A base URL plus an API spec NightVision tests every endpoint in the spec
Repository A source repository It is not scanned. Its source analysis counts toward the applications built from it

If you are not sure what you have, App discovery starts from a domain name, finds the applications behind it, and creates them for you.

Select Applications in the rail. The list has one row per application and opens with the most severe open findings first.

The Applications list with seven filters above a table of applications. Each row shows the application’s name, URL and tags, then its project, team, last scan, login status, schedule and open findings by severity.
The Applications list, worst open findings first.
Column What it shows
Application The name, the URL, and the application’s tags. An icon marks it as a web application, an API or a repository
Project The project the application is in
Team The owner: a team or a person
Last scan When the latest scan finished, linked to that scan. A date in the caution color means no scan has completed in 14 days or more. Never means no scan has completed
Login status How the latest scan logged in, and the authentication assigned. See Login status
Schedule How often scans repeat and when the next one runs, or Not scheduled
Open findings Open findings by severity. These are the same findings the application’s scans list. Select the counts to open its scans

Select a column heading to sort by Application, Team, Last scan or Open findings. Select a row to open the application.

  • Search name or URL narrows the list as you type. Press / to jump to it.
  • Login status shows only applications whose latest scan logged in a certain way, for example Login failed.
  • Schedule shows applications that are Scheduled or Not scheduled.
  • Exclusions has one choice, Conflict with the address. It finds applications whose own exclusions block their scans. See Scope.
  • Group set to By team puts each team’s applications under one heading.
  • Tags and Team filter by tags and owners.

Filters, sorting and grouping are part of the page address, so you can copy the link and send someone the same view. The project scope in the top bar also applies: with one project chosen there, you see only that project’s applications.

Open Columns to show or hide Project, Team, Last scan, Login status and Schedule. The application name and open findings always show.

The Columns menu open, with checked boxes for Project, Team, Last scan, Login status and Schedule, and a Reset to default item.
Show or hide the optional columns.

Your choice is kept in this browser, one per organization. A column with nothing in it for any application, such as Schedule before you schedule anything, starts hidden and is marked Empty in the menu. A column that does not fit a narrow window is marked Hidden to fit.

Tick the box on two or more rows. A bar appears above the table with:

  • Schedule selected, to put up to 50 applications on a schedule in one step. See Schedule scans.
  • Add tag and Remove tag. See Tag in bulk.

Repositories cannot be scheduled, and you can only select applications you are allowed to scan or change.

Each row also has a menu at the right end with Edit tags, Move to project and Delete.

You need permission to add applications in at least one project. If New application is missing or disabled, see Members, roles and groups.

  1. On Applications, select New application.
  2. Choose the Project. Only projects where you can create applications are listed.
  3. Leave the type on Web application.
  4. In Enter URL(s), type or paste one URL per line. You can add several applications at once.
  5. Check the Application names table. NightVision proposes a name from each URL. Change any name you like. A name must be unique within its project.
  6. Read the Reachability column:
    • Reachable means NightVision’s cloud scanner can reach the URL.
    • May be private means it could not. If the URL is on a private network, leave it as it is and scan it from your own network. If you know the URL is public, tick Confirm the URL is publicly available.
  7. Optionally set an Owner and Tags.
  8. Optionally open Exclusions to change which URLs scans skip. With several URLs in the form, the default exclusions apply to all of them and you adjust each application afterward. See Scope.
  9. Optionally open Advanced to turn on Use experimental HTML parser or Enable network analysis. See Crawler settings.
  10. Select Create application. With several URLs the button reads Create 3 applications, with your count.

A confirmation appears with a Start scan action. To walk through a first scan with the defaults, see Your first scan.

  1. On Applications, select New application and choose the Project.
  2. Select API application.
  3. Enter an Application name and the Base URL. The base URL plus each path in the spec must reach a real endpoint, for example https://api.example.com/v1 with no trailing slash.
  4. Under API spec or Postman collection, choose URL and enter the address of the spec, or choose File and pick a .yml, .yaml or .json file.
  5. Optionally set an Owner, Tags and Exclusions.
  6. Select Create application.

If you have no spec, open No spec yet? Generate one from source in the same form. It gives you a CLI command that reads your code and writes the spec. API specs covers formats, readiness and warnings.

The form’s Copy CLI command buttons copy a command that creates the same application, quoted for macOS and Linux or for PowerShell. You can also write it yourself:

Terminal window
# nightvision target create [name] [url] [flags]
# A web application
nightvision target create customer-portal https://portal.example.com --type WEB -p "Customer"
# An API application with a spec at a URL
nightvision target create payments-api https://api.example.com/v1 \
--type API -p "Payments" \
--spec-url https://api.example.com/v1/openapi.json

-p takes the project’s name and -P its ID. Leave both out to use the project you chose with nightvision project set. --type is WEB or API. An application you create with a spec is always an API application.

Other commands you will use:

Terminal window
nightvision target list # applications in the current project
nightvision target list --all # applications in every project
nightvision target update customer-portal --name portal-prod
nightvision target delete portal-prod

See CLI commands for the full reference.

An application that NightVision’s cloud scanner cannot reach is created as private. The page header reads, for example, “Web application, private”.

  • Scans of a private application run from the CLI on a machine inside your network. In the form, Scan from your network shows the exact command. On an existing application, open More actions and choose Copy CLI scan command.
  • Private applications cannot be scheduled from the dashboard.

Scan private networks explains how the CLI connects the scan to your network.

Select an application to open it. The header shows its type, whether it is public or private, its project, its URL with a copy button, the latest scan, and View all scans. An API application also links to its API inventory page.

The page for a web application named customer-portal. The Setup tab shows an Application card, an Authentication card, a Schedule card, an API schema card and a Project card.
The Setup tab of a web application.

The page has up to three tabs:

The Setup tab is a set of cards.

Application holds the base URL, type, owner, tags, application ID, source repository and the latest scan with its finding counts. Select Edit to change the application.

Authentication shows the authentication assigned to the application, its kind, how the latest scan logged in, and the latest login check. See Authentication on an application.

Schedule shows each schedule’s cadence, timezone and next run, linked to the schedule. With none it reads “No schedule. Scans run when someone starts one.”

API schema appears on a web application that has no API schema yet, with an Add an API schema button. See API schemas.

Project shows the project and when the application was created.

An API application has the same cards, without the API schema prompt:

The Setup tab of an API application named payments-api, with Application, Authentication, Schedule and Project cards. The More settings list begins with General.
The Setup tab of an API application.

Under the cards, More settings lists the rest. Select a row to open it in a side panel. The page address changes to match, so you can link straight to a setting.

Setting Applies to What it holds Read more
General API The API spec, whether it is ready to scan, and any warnings API specs
Exclusions Web, API URL patterns, and on a web application clicks, that scans never request Scope
Advanced crawler settings Web HTML parser and network analysis Crawler settings
Endpoints API The endpoints in the API spec API specs
User-defined domains Web Other domains scans may visit Scope
HTTP traffic All Recorded traffic (HAR files) scans start from HTTP traffic
Extra headers Web, API Headers sent with every request Extra headers
API schemas Web, API API specs scans of this application use API specs
Nuclei templates All Custom templates this application runs Nuclei templates
Dispositions All Findings marked false positive or won’t fix Triage

The menu beside New scan holds the actions for the whole application.

The More actions menu open on an application page, listing New scan with other settings, Edit application, Copy application ID, Copy CLI scan command for macOS and Linux, Copy CLI scan command for PowerShell, Move to project and Delete application.
The More actions menu.
  • New scan with other settings opens New scan for this application.
  • Edit application opens the same form you created it with.
  • Copy application ID copies the ID that the CLI and the API accept.
  • Copy CLI scan command copies a nightvision scan command with the application, its project and its authentication filled in.
  • Move to project and Delete application are described below.

Open the application and select Edit on the Application card, or More actions then Edit application.

  • On a web application you can change the name, tags, exclusions, the HTML parser and network analysis. The URL of an existing web application does not change. To scan a different URL, add a new application.
  • On an API application you can change the base URL, the spec, tags and exclusions.
  • The project is fixed in this form. Use Move to project instead.

Select Update. The next scan uses the new settings.

An application uses one authentication at a time, or none. With none, scans run signed out and never see pages behind the login.

  1. On the Authentication card, select Assign authentication. If one is already assigned, select Assign a different authentication.
  2. Choose an authentication. Only authentications in the application’s project are listed. Choose None, scans run signed out to remove it.
  3. Select Save. The next scan logs in with it.
The Assign authentication dialog for payments-api. A menu lists None, scans run signed out, then a recorded login, a header authentication and a cookie authentication from the Payments project.
Choose the authentication scans log in with.

To create one first, see Authentication.

The Login status column and the Authentication card report how the latest completed scan logged in.

Status Meaning
Logged in The latest scan logged in with the recorded login
Login failed The login did not work. Scans run signed out until you fix it
Last scan ran signed out An authentication is assigned, but the latest scan did not use it
Login not verified The scan could not confirm whether it was logged in
No login flow The authentication is a header or a cookie. Its values are sent as set, so there is no login to check
Not used yet An authentication is assigned and no scan has completed since
No authentication Nothing is assigned. Scans run signed out

When a login is failing, the application’s page says so at the top, names the last step that worked, and offers Re-record login. The same link appears in the list.

A warning at the top of an application page: partner-portal login is failing, so its scans run signed out and pages behind the login are not tested. It stopped after "Open the SSO page". A Re-record login button sits beside it.
A failing login is flagged on the application.

Authentication explains each failure and how to fix it, and Recorded logins covers recording again.

Moving changes who can see the application. Its scans and findings move with it: people who can open only the old project stop seeing them, and people in the new project start.

  1. Open More actions on the application, or the row menu in the list, and choose Move to project.
  2. Choose the destination. Only projects where you can add applications are listed.
  3. Select Move application.
The Move to project dialog for payments-api, with a Move to menu open over a list of projects to choose from.
Choose the project to move the application to.

An application cannot move while any of these is attached to it:

  • an authentication
  • a schedule, including one that is turned off
  • a custom Nuclei template

The dialog lists what is in the way, with a link to each. Remove them from the application, move it, then assign them again in the new project.

  1. Open More actions and choose Delete application, or choose Delete in the row menu.
  2. Type the application’s name to confirm, then select Delete application.

Deleting removes the application, its scans and their findings, and stops its scheduled scans. It cannot be undone.

A repository is an application of type Repository. It stands for the source code, not a running system, so it behaves differently:

  • It is listed with the other applications, and its Schedule column reads Not applicable.
  • It cannot be scanned, scheduled or edited from the dashboard.
  • Its page has no Authentication or Schedule card and no Quantum readiness or LLM endpoints tab.

Repositories are added through the API. The New application form and nightvision target create create web and API applications only.

Send POST /api/v1/targets/github/ with a list of repositories. Each one takes a name, a location (the repository’s https://github.com/ URL) and the project id. You need permission to add applications in that project.

Terminal window
curl -X POST https://api.nightviz.ai/api/v1/targets/github/ \
-H "Authorization: Token $NIGHTVISION_TOKEN" \
-H "Content-Type: application/json" \
-d '[{"name": "payments-service", "location": "https://github.com/example-corp/payments-service", "project": "<project-id>"}]'

Link a web or API application to the repository it is built from, and the repository’s source analysis counts toward that application’s open findings on the Overview and in the Applications list. One repository can back several applications.

  1. Open the web or API application.
  2. On the Application card, open Source repository.
  3. Type to search, then choose the repository. The link is saved at once.
The Application card of payments-api with the Source repository field set to example-corp/payments-service in the Payments project. A note under it says its source analysis counts toward this application’s open findings.
An application linked to the repository it is built from.

The repository must be in the same organization as the application, and it can be in another project. You need a role that can change the application, and you can only choose repositories you are able to see. A repository cannot be linked to another repository.

Choose None to unlink. See Source intelligence for what source analysis finds.

Applications are targets in the API. Base URL: https://api.nightviz.ai/api/v1/. See the API overview for authentication.

Method and path What it does
GET /targets/ List applications of every type. Filters include tag, owner, owner_group and order
GET /targets/{id}/ Read one application
POST /targets/url/ Create web applications. The body is a list, so one call can create several
PUT /targets/url/{id}/ Update a web application
POST /targets/openapi/ Create an API application
PUT /targets/openapi/{id}/ Update an API application
GET /targets/github/ List repositories
POST /targets/github/ Add repositories. The body is a list
POST /targets/check-public-url/ Check whether the cloud scanner can reach a URL
POST /targets/{id}/move/ Move an application to another project
DELETE /targets/{id}/ Delete an application

Applications: tags, owners and bindings has request and response examples for tags, owners and moving, and the API reference lists every field.