Concepts
The words Pratique uses, what each one means, and where to read more.
Decisions
For each version of a package, Pratique makes one of three decisions. Cleared means a client can download it. Held means it is in quarantine and clears at a known time. Refused means it does not clear by waiting: it is known malware, it changed upstream, it breaks a blocking rule, or a person blocked it. See how it works.
Quarantine
Quarantine is the time a new release waits before clients can install it. The default is 7 days (168 hours). Most malicious releases are reported within that time, so your clients never receive them. You can set the window per registry and per package, and a value of 0 turns it off for that scope. Known malware is refused either way. See quarantine.
Malware reports and threat feeds
A malware report says that a version of a package is malicious. Pratique reads reports from OSV by default. A threat feed is another source of reports, such as your security team's blocklist or a vendor's OSV feed. Everything that a custom feed lists is refused. When a version is reported after a client already pulled it, an incident opens. See threat feeds.
Risk rule
A risk rule looks for a sign of risk in a release, such as an install script, a new publisher, a possible typosquat or a license on your deny list. Each rule has one of three modes:
- Off: the rule does nothing.
- Warn: the package page shows a flag, and each download logs a
flaggedevent. Nothing is stopped. The Flagged tab of Activity lists these events. - Block: matching versions are refused.
Watch what a rule catches on warn before you set it to block. See risk rules.
Exception
An exception is a person's decision about one version or a whole package. It overrides the automatic checks.
- Allow lets a version through. An allow on one version overrides every rule, and even a malware report. An allow on a whole package overrides rules, but not the malware check.
- Block refuses a version or a whole package. A block wins over everything else.
- Owner: each exception has an owner, who answers for it. By default this is whoever set it.
- Expiry: an allow can end on a date. When it ends, the version stops being offered.
- Request: anyone signed in can request an exception from a package's page. An admin approves or denies it. An approved request belongs to the person who asked.
See blocked and allowed.
Incident
An incident is a record of something that needs a person's attention. Examples are a package reported as malware after a client pulled it, a published file that changed upstream, a new release that claims to be older than it is, and a provenance check that fails. If you set a webhook, each new incident alerts it. Incidents stay open until an admin selects Mark as resolved. See incidents.
Reserved name and private package
A reserved name is a pattern for your internal package names, such as @acme/* or
acme-*. Pratique never looks up a reserved name in a public registry, which stops dependency
confusion. A private package is a package that your team publishes to Pratique under a reserved name. Only
reserved names can be published, so a private package cannot shadow a public one. See
private packages.
Access token
An access token lets a package manager or a CI job use Pratique, and tells the audit log who pulled each file. There are four kinds:
| Kind | For | Recorded as |
|---|---|---|
| Personal | One person's machine. Anyone signed in can create one. | The owner and the token name, such as alice@example.com (laptop) |
| Bot | A CI system or service. Admins only. | The bot, such as bot:ci |
| AI triage | An AI agent that reviews what needs attention. It works only at /mcp. Admins only. | Like a bot, with bot: and the token name |
| Publish access | A personal or bot token that can also publish private packages. Admins only. | As its kind |
See access tokens.
Team
A team gives a group of tokens its own quarantine and rules, for example a longer quarantine for production CI. Anything the team does not set follows the default policy. Known malware and a person's decision apply to everyone. Members can come from your identity provider's groups. See teams.
Project and build record
A project record lists what a project's lockfiles say it uses. CI sends it with
pratique inventory. A build record links a CI run to what it used and what it made. CI sends it
with pratique build record. When a package is reported as malware, Pratique uses these records to
name every project and build that used it. See CI.
Provenance
Provenance is a signed record of where a release was built. npm and PyPI can publish it. A stolen publish token can upload anything, but it cannot sign as your project's CI. Pratique verifies the record with Sigstore, and you can hold a package to one source repository. See provenance.
Artifactory mode and firewall mode
Artifactory mode is the default. Pratique stores every file it delivers, so stored files still install when a registry is down, and you can host private packages. Firewall mode makes the same decisions but keeps no package files: each cleared file is deleted within about 20 minutes. See firewall mode.
Roles
People who sign in to the web UI have one of two roles.
- Viewer: can see packages, activity, incidents and settings, create and revoke their own read tokens, and request exceptions.
- Admin: can also approve requests, set exceptions, change quarantine settings, resolve incidents, create bot, AI triage and publish tokens, and revoke anyone's tokens.
See roles.