Skip to content

Security model

This page explains how BastionXP Enterprise protects what it issues, and what it leaves to you. It gives the short version, with links to the pages that have the details.

A private CA is a machine for creating trust. Whoever can make it sign a certificate can make a system trust a name. So the questions to ask are: who can get a certificate, where do the CA's keys live, who can change the settings, what is recorded, and what do you do when something goes wrong.

Who can get a certificate

An authority issues a certificate only after one of its verifiers has accepted the request. An authority with no verifier issues nothing.

Verifier A certificate is issued only if
ACME The client controls the name it asks for. With device attestation, the client is a genuine device, and the device is in your inventory. With External Account Binding, the client was given credentials by an administrator.
Single sign-on A person signed in with your identity provider, including its second factor.
One-time token An administrator made a token, and the client presents it.
SCEP The client knows the challenge password.

Three more rules limit what a certificate can be:

  • The profile decides the contents, not the requester. The certificate profile sets the lifetime, the permitted uses, the allowed names and the allowed key types. A profile can force the organization and department into every certificate. BastionXP always refuses DSA keys and RSA keys under 2048 bits.
  • A name policy limits the names. A verifier can be limited to the names that a client may get, for example only names under one domain. See ACME verifier.
  • Authorities keep groups apart. Each authority has its own intermediate CA and its own verifiers. A certificate from the contractors authority is not a certificate from the employees authority. See Certificate authorities.

SCEP does not prove that a device is genuine

A SCEP verifier does not look at the device inventory, and it cannot tell whether the device is real hardware. Anyone who has the challenge password can get a certificate. With the dynamic challenge mode, each device has its own one-time password, which is safer than one static password for all. Where your devices support it, prefer ACME Device Attestation. See How it works.

Where the keys live

The CA's private keys are the most valuable secrets in the system. You choose where BastionXP keeps them:

Setting Where the CA keys are Can BastionXP's server steal them?
Default In BastionXP's database, encrypted with a key-encryption key (KEK) that is kept outside the database. A copy of the database alone reveals no key. The server needs the KEK to use them.
HSM (PKCS#11) Inside your hardware security module. The keys never leave the HSM. BastionXP asks it to sign.
AWS KMS, Google Cloud KMS, Azure Key Vault Inside the cloud service. The keys never leave it. BastionXP asks it to sign.
Offline root CA In your own key ceremony. BastionXP holds only the certificate. BastionXP never has the key.

Choose before you create the CA: a key stays where it was created. BastionXP does not start without its KEK, and it does not start with a different KEK than the one its database was encrypted with. See Key protection.

For a root CA, the safest setup is to keep the key offline and import only its certificate. See Import a root CA from a key ceremony.

Who can change things

Only administrators use the web portal. Every administrator signs in with two things: a password and a second factor, or your identity provider, which has its own second factor.

  • BastionXP has no default password. The first administrator sets up their account with a one-time setup link.
  • After 10 failed sign-ins in a row, an account is locked.
  • You can require single sign-on for administrators. The owners and the break-glass admins can still sign in with a password, which is recorded as a warning that you can alert on.
  • People who only need a certificate for their own machine do not use the portal. They use bxp-cli.

See Sign in and set up your account, Single sign-on for the portal and Admins and API tokens.

What is recorded

BastionXP records every operation that changes something, twice: once before it runs, and once after, with the outcome. If BastionXP cannot write the first record, it does not do the operation. So no certificate is issued without an audit record.

Category What it covers
cert_lifecycle Certificates issued, renewed and revoked, and CRLs and OCSP answers.
key_management CA keys created, imported and destroyed, and warnings that a CA ends soon.
authentication Sign-ins, failed sign-ins, locked accounts, and changes to second factors.
admin_action Changes that administrators make.
system Start-up, and the loading of the KEK.

Send the audit log to your SIEM through syslog, and keep it where an attacker with access to the BastionXP server cannot erase it. These events deserve alerts:

  • ca_expiring, which tells you to rotate or replace a CA.
  • A sign-in with a password when single sign-on is required (break_glass).
  • Many failed sign-ins, and account_locked.
  • key_generated, key_imported and key_destroyed, which should be rare.

See Audit logging.

When something goes wrong

Problem What to do
A device is lost or stolen Revoke its certificate.
A server's key may have leaked Revoke its certificate, and get a new one with a new key. See Revocation.
An authority's intermediate CA key may have leaked Revoke the intermediate CA and replace it. Its certificates stop being trusted, and the revocation goes in the ARL. See Revoke a CA after a compromise.
A CA is about to end Rotate or replace it before it ends. See Certificate lifecycle.
The server is lost Restore it from a backup. See Backup and restore, and High availability to avoid a single server.

What stays your responsibility

BastionXP cannot do these for you:

  • Systems must check revocation. A revoked certificate is still accepted by a system that does not check the CRL or OCSP. Turn revocation on before you issue certificates, so that the addresses are in them. See Revocation.
  • Systems must trust the right root. Give the root certificate to your systems through a channel you control, and give users its fingerprint separately from the server. See Trust the CA.
  • Protect the places where keys are kept. The HSM's PIN, the KEK, the cloud credentials and the database backups are all part of the security of the CA.
  • Keep time. Certificates, tokens and revocation answers all depend on correct clocks.
  • Pick lifetimes that match your risk. A shorter lifetime means less exposure, and needs reliable renewal. See Certificate lifecycle.