Guides
Vulnerability policy
An optional policy you set: who is told, how long an owner has to fix a known vulnerability, exceptions, a time-to-fix report, and (if you switch them on) holding an app offline after a missed deadline or refusing a new version that brings a vulnerability the live version does not have. The lookup itself is generally available and only warns; it never stops a deploy and never takes an app offline by itself.
What the policy decides
In the portal: Admin, Security, Vulnerabilities
cyantula looks up known vulnerabilities in the packages and images of the apps you publish (what is switched on, and how, is on Published apps). The vulnerability policy is what happens next, and it is yours to set: who is told, how long an owner has to fix it, when cyantula fixes it for them, and when an app that stays vulnerable goes offline.
The settings sit at the top of the Vulnerabilities page, under the group Vulnerability policy. While you change them, a box shows what they would do to today's open findings before you save: how many have a deadline, how many are past it, which apps a missed deadline would take offline and for how many findings an automatic fix would be tried.
Where findings are shown
- Owners see their own app's findings on its Security tab, in the sections Packages and Base image, with the version to upgrade to. A finding with a deadline shows fix before the date, and overdue since once it has passed.
- Admins see every app under Admin, Security, Vulnerabilities: one row per flaw with the apps it touches, and per row Have it fixed, Rebuild, Take offline… and Dismiss…. The page can be filtered by severity, package, CVE, app or owner. Apps that are held offline are listed on top under Held offline, with Rebuild with fresh images and Lift, keep stopped.
- Look up again (admin page) and Look again (the app's Security tab) run the lookup on demand.
Who is told
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
- Tell owners about vulnerabilities from picks the severity from which an owner is told, once per flaw. Lower ones stay listed on the Security tab. Choose off for never.
- Tell admins about vulnerabilities from does the same for the admins.
- Weekly digest of the smaller vulnerabilities sends every owner one message a week with the open findings below the level they are told about.
- Vulnerability messages for admins go to takes the name of a cyantula group, for example your security team. Its members get the messages meant for "the admins" instead of every admin. Empty, or nobody active in the group, means every active admin, so a message never goes to nobody.
- Also post them in this Slack channel takes a channel name such as
#security. Invite the cyantula bot to the channel first (see Slack). Each message is posted once; the people it was meant for then get the bell only, not a direct message or mail as well. If posting fails, everybody is reached the usual way. Post findings in the channel from sets the lowest severity that goes in; an app going offline and an exception that was asked always go in. - Also tell this group when an owner does not act names a group that hears it too when half the time to fix has passed, the day before the deadline and when the app goes offline. An app can name its own contact instead (see Settings per app).
When an owner's account is switched off, their messages go to the app's contact, else the escalation group, else the admins, and the message says whose place they take. The Vulnerabilities page lists these apps under Apps without an active owner: give each a new owner on its page.
Deadlines to fix
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
Days to fix a critical vulnerability, and the same for high, medium and low, give the owner that many days, counted from when it was found in production. Enter -1 for no deadline and 0 for immediately. The owner is reminded halfway and the day before.
Days to fix a vulnerability that has no fix yet covers findings without a released fix, which the owner cannot fix yet: -2 uses the days of the severity, -1 gives no deadline until a fix is released, and a number gives that many days (never fewer than the severity's). Once a fix is released the clock starts over.
When a deadline passes: the hold
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
Take an app offline after a missed deadline from picks the severity from which a finding that is still open at its deadline holds the app offline. Off means a deadline only reminds. The owner and the admins are warned the day before. Only take an app offline when a fix exists keeps an app online for a finding that has no released fix.
An app held by the policy refuses its visitors, but the owner can still deploy a fixed version. The hold lifts itself once nothing overdue is left. An admin can also lift a hold under Held offline.
What a visitor sees. A page that says the app is temporarily offline for a security update, that they do not need to do anything, and who looks after the app, with the owner's name and e-mail address. It gives no technical detail. Extra line for visitors of an app held offline (under Advanced) adds one plain-text sentence below it, for instance where to go meanwhile. The owner who opens the app sees the same page plus the reason and what to do: deploy a version without the problem.
An admin can also take an app offline by hand with Take offline…, with a reason owners see. That hold stays until an admin lifts it.
Refusing a deploy that brings a new vulnerability
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
Refuse to deploy a version that brings a new vulnerability from picks a severity from which a new version is not deployed when it brings a known vulnerability the live version does not have. The live version keeps serving and the owner reads which package to upgrade. What is already live never blocks a deploy.
It applies to production. Refuse such deploys to preview and test environments too holds the other environments to the same level, so a problem is caught before it reaches production.
Exceptions
In the portal: Admin, Security, Vulnerabilities, Exceptions asked
An owner can dismiss a finding that does not apply to their app, with a reason. When that finding can take the app offline, the owner cannot decide alone: the reason goes to the admins as a request, and the deadline keeps running until they answer. An exception asked label shows on the finding.
Admins answer under Exceptions asked with Grant or Deny, and a number of days. A granted exception runs out after those days (empty uses An exception lasts (days)), and the finding is then open again with a new deadline.
You limit exceptions with three settings:
- Most exceptions one vulnerability can get: after that many the next is refused, for owners and admins alike. The way out is a fix or an acceptance for the whole platform. -1 means no limit.
- An exception for a critical vulnerability lasts at most (days): a ceiling for critical findings. -1 means the same as any other.
- A critical exception needs a second admin: the first admin's yes is noted and the exception is granted when another admin agrees too. Either can say no.
Accepting a flaw for the whole platform
In the portal: Admin, Security, Vulnerabilities, Accepted for the whole platform
For a vulnerability that does not apply anywhere, such as a false positive, accept it once instead of per app. Enter the CVE or advisory id, optionally one package (empty means any), the reason owners will read, and optionally a number of days. Choose Accept: every finding of it is set aside in every app, now and when later lookups find it. With days it opens again at the end, with a new deadline.
Revoke (with a confirmation) opens the findings again with a deadline from today and tells the owners. A deploy is not refused for an accepted flaw.
When the policy may act
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
Take apps offline and deploy fixes only between takes a time range such as 22:00-06:00 in the platform's time zone (past midnight is fine), and On these days limits it to all days, weekdays or weekends. Outside the window an app past its deadline waits for the next moment inside it, and so does an automatic fix that would be deployed. Reminders, pull requests and merges go on as always, and a hold is lifted at once. Empty means any time.
Automatic fixes
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
- Fix vulnerabilities automatically from starts cyantula's security fix by itself for a new finding of that severity or worse that has a fixed release. It is the same fix as the Have it fixed button, and each finding gets one attempt. An image or runtime finding is rebuilt with fresh base images instead.
- How far an automatic fix goes chooses between a change that waits on the Changes tab for the owner, a change that cyantula merges, or a change that is merged and deployed. Even then a deploy waits when other work is waiting to go live, a deploy is running or the app is not up.
- Let automatic fixes do major version upgrades (under Advanced): when off, a fix that needs a new major version always waits on the Changes tab.
Settings per app
In the portal: The app, Overview, Advanced
An app can set apart the owner level, the automatic fix level and how far it goes, the level for going offline and the level for refusing a deploy. Tell me about vulnerabilities, Fix vulnerabilities automatically, Take this app offline after a missed deadline and Refuse to deploy a version that brings a new vulnerability each offer the default (labelled Platform default, or Team default) and the levels.
- Owners can only make their app stricter than its default. The options that would loosen it are greyed out.
- Admins can set anything and write the note Why this app has its own policy, which the owner reads.
- Also tell when a deadline nears takes a colleague's e-mail address, who is told halfway, the day before and when the app goes offline. The owner or an admin can set it. Empty uses the platform's escalation group.
Team policies
In the portal: Admin, Security, Vulnerabilities, Team policies
A cyantula group can have its own defaults for the apps its members own: stricter for Finance, looser for a sandbox. Choose Give a team its own policy…, then set Tell the owner from, Fix automatically from, An automatic fix goes as far as, Offline after a missed deadline from and Refuse a deploy that brings, and optionally a note owners read. A setting left on platform follows the platform; Follow the platform resets the team.
An owner who is in several teams gets the strictest value of each setting. An app's own setting still overrides the team, and owners can only make their app stricter than their team's default. The app's settings call these defaults Team default and name the team.
Choosing what is scanned
In the portal: Admin, Security, Vulnerabilities, Vulnerability policy
Scan apps for known vulnerabilities is the main switch. When it is off nothing new is found and the policy rests: no reminders, no automatic fixes, and an app the policy took offline comes back. What was found stays listed. Below it each kind of scan has its own switch:
- Look up the packages in lockfiles (CVEs)
- Scan app images for vulnerable system packages
- Check base images against their release calendar
- Check the Node.js runtime against its security releases
An admin can also leave a single app out. On the app's Overview tab, under Advanced, the list Scan this app for has a tick per kind; untick one and say why in the note. A scan that is left out removes the findings it had, so no deadline or hold rests on them. Owners see what was left out but cannot change it.
The time-to-fix report and the audit export
In the portal: Admin, Security, Vulnerabilities, Time to fix
The Time to fix card shows production findings fixed in the last 30 days, 90 days or 1 year, and what is open now. Per severity, per team and per app it lists Fixed, Median, p90 (nine in ten were fixed within it), On time (the share fixed by the deadline), Open, Overdue and the oldest open one. Dismissed findings are left out.
- Export CSV downloads this report as a spreadsheet.
- Risk decisions CSV lists every exception granted or asked, every finding an owner dismissed and every flaw accepted for the whole platform, with the reason, who asked, who decided and until when.