client-enrichment-plugin
This plugin allows to resolve the client identification extracted by Spider.
Currently, spider extracts identification from:
- JWT Bearer token -
subfield - Basic auth
- X509 certificates -
CNfield
The enrichment is applied to:
- Grid, and export
- Filters
- Details
- Stats
- And map!
Signature
function myOwnPlugin({
inputs: {identification, mode},
parameters: {},
callbacks: {setDecodedClient, onShowInfo, onShowError, onShowWarning, onOpenResource},
libs: {React}
}){}
The plugin is called:
- For each row, and each displayed
Identificationin the Grid or Excel export - For each group for stats grouped by
Identificationand Excel export - To display
Identificationin the HTTP details panel - For each
Identificationand all values for the Filter component in the grid header - To display the
Identificationvalue in the filter badge when it is selected
Depending on the call, the output is requested in REACT components mode (grids and details) or in TEXT mode (Excel, filters)
Input
| Name | Description |
|---|---|
| identification | Value of the identification to resolve |
| mode | Output type: REACT or TEXT |
Callbacks
onShowInfo(message)
Displays an Information toast with the message.
onShowWarning(message)
Displays a Warning toast with the message.
onShowError(message)
Displays an Error toast with the message.
onOpenResource({id, title, contentType, payload})
Callback to open a downloaded payload in details panel. XML and JSON are supported.
When provided, the resolved Identification will be clickable (where it may), and the payload will be displayed in Spider details panel.
| Parameter | Description |
|---|---|
| id | Id of the resource, to manage breadcrumb |
| title | Displayed at the top of details panel |
| contentType | application/json or application/xml are supported |
| payload | The resource content (string) |
setDecodedClient(value)
Sets the decoded value of the identification.
- May be a React component when in
REACTmode. - Must be a string in
TEXTmode.
Output
Output must be sent both:
- Using
setDecodedClientcallback - With a
return value(of the promise)
Plugin example
Spider client resolver
This sample plugin decodes Spiders own identifiers of JWT tokens to display name of Whisperers and Users.
Parameters

Output
In grid & filters:

In map:

Code
It is freely available here: https://gitlab.com/spider-analyzer/plugins/client-resolver