Skip to main content
Manage JavaScript (.js) and YAML (.vgm.yaml) extensions that add custom scanning logic. Extensions must be enabled and configured in vigolium-configs.yaml under audit.extensions.

GET /api/extensions, List Extensions

Returns metadata for all loaded extensions. Raw file content is excluded, use GET /api/extensions/:name to fetch the content of a specific extension. Query parameters:
Response (200):
When extensions are not configured, returns extensions_enabled: false and an empty list.

Declaring Tags in Extensions

JavaScript extensions: add a tags array to module.exports:
YAML extensions: add a tags list:

GET /api/extensions/:name, Get Extension

Returns full metadata plus raw file content for a single extension, looked up by filename. Path parameters:
Response (200):
Error responses:

PUT /api/extensions/:name, Edit Extension

Overwrites the content of an extension file identified by its filename (e.g. reflected_param_scanner.js or my_check.vgm.yaml). The file must already exist as a loaded extension. Path parameters: Request body:
Response (200):
Error responses:

GET /api/extensions/docs, List JS API Functions

Returns the full JS extension API catalog, all built-in vigolium.* functions available to extension scripts. Query parameters:
Response (200):