Interface IBowireSecurityChecks
- Namespace
- Kuestenlogik.Bowire.Security
- Assembly
- Kuestenlogik.Bowire.dll
Optional companion interface to IBowireProtocol: a protocol plugin that knows its protocol's own exposures contributes checks for them to the OWASP scan (#1119).
public interface IBowireSecurityChecks
Remarks
bowire scan and the workbench's OWASP scan call
RunSecurityChecksAsync(BowireSecurityCheckContext, CancellationToken) on every loaded plugin that implements
it, next to the built-in protocol probes, bounded by the same timeout. Each
result becomes a finding under the OWASP API Top 10 entry it names, in the
same coverage table, report and SARIF as the built-in ones. A plugin that
throws or runs out of time gives one error finding; the scan goes on.
In the workbench the checks run on the host's own plugin instance, so an embedded plugin can look at its host (its configuration, what it allows); from the CLI they run on a fresh instance against the target URL.
A check reports what it observed. It sends nothing into the system that changes it: the scan's passive tier makes that promise for every check in it.
Methods
RunSecurityChecksAsync(BowireSecurityCheckContext, CancellationToken)
Run this plugin's checks against Target. Answer nothing when the target is not this plugin's protocol; answer a Safe result for a check that ran and found nothing, so the coverage table shows the entry as assessed.
Task<IReadOnlyList<BowireSecurityCheckResult>> RunSecurityChecksAsync(BowireSecurityCheckContext context, CancellationToken ct)
Parameters
contextBowireSecurityCheckContextctCancellationToken