Package Information
Documentation
NKSC NIVS n8n Node
n8n community node for creating, updating, and searching NKSC security incident reports in NIVS (National Incident Management System).
Overview
The node exposes the NKSC report forms directly in the n8n editor and builds the NIVS request body from the selected form and entered values.
Automated (API-based) incident registration in NIVS is not just a convenience — it is a legal requirement. Resolution No. 818 of the Government of the Republic of Lithuania, dated August 13, 2018, "On the Approval of the National Cybersecurity Incident Management Plan," requires cybersecurity subjects to register incidents in NIVS automatically via an API interface within 12 months of their registration in the Cybersecurity Subjects Registry (this deadline may be extended by up to another 12 months for objective reasons). This node exists to satisfy that automated-reporting obligation from within n8n.
It handles:
- report selection
- field visibility and conditional requirements
- payload shaping for the selected NIVS business object
- search by external ticket ID
Supported Operations
| Operation | What it does | Input |
|---|---|---|
Insert NKSC Report |
Creates a new report in NIVS | Select a report form and fill in the fields |
Update NKSC Report |
Updates an existing NIVS record | Record ID, update mode, fields to update |
Search NKSC Report |
Searches reports by external ticket ID | External Ticket ID, optional Search Limit |
Report Forms
| Form | NIVS object | Notes |
|---|---|---|
| Initial warning | XSC_SecurityReport__InitialReports |
Initial warning records |
| Major cyber incident | XSC_SecurityReport__DetailReports |
TypeOfCyberIncident is fixed to Didelis |
| Minor cyber incident | XSC_SecurityReport__DetailReports |
TypeOfCyberIncident is fixed to Nedidelis; includes threat and final report fields |
| Near miss | XSC_SecurityReport__DetailReports |
TypeOfCyberIncident is fixed to Vos neįvykęs |
How It Works
- The user selects an operation.
- The user selects a report form.
- The node loads the matching form definition.
- The editor shows the fields and controls for that form.
- The payload builder applies defaults, visibility rules, and conditional validation.
- The node sends the request to the correct NIVS endpoint.
- The response is returned as n8n output items.
Request methods:
InsertusesPOSTUpdateusesPATCHSearchusesGET
Field Behavior
Required fields
Fields marked required in the form definition are required in the editor and validated before the request is sent.
Reporter identity fields are required on every form:
OrganizationReporterReporterEmailReporterPhoneReporterTitle
The required-by-default fields in the node match the audited NKSC HTML forms. The reporter identity fields are additional required inputs enforced by NIVS.
Value types
Taip/Nefields stay as validated string values- scope and loss options are boolean flags
- expandable scope and loss groups can be shown either as one compact selector or as separate boolean switches
Expression inputs
Most fields can be driven by expressions using the same value shape shown in the editor: strings for text fields, Taip / Ne for yes-no fields, booleans for switches, and date-time values for date fields.
Some selector fields accept extra expression formats to make generated workflows easier to maintain:
Fields To UpdateinSelected Fieldsupdate mode accepts field names, full numbered labels, one-based numbers, comma-separated numbers, or a numeric array. For example,Summary,7,1,2,3, and[1,2,3]are valid expression results.ThreatandThreat Categoryaccept the NIVS value, the numbered English label, the unnumbered English label, or the option number. For example,2,2. Malware, andMalwareall resolve to the same threat option.- Compact
Scope OptionsandLoss Optionsselectors expect arrays of option field names, such as["ScopeOption2"]. For expression-heavy workflows, turn on the matchingExpand ... Optionstoggle and drive the separate boolean fields instead.
Conditional fields
Some fields remain visible in the editor even when their values are only required under certain conditions. That keeps them available for expression-driven workflows while preserving backend validation rules.
Update behavior
Update NKSC Report defaults to Selected Fields mode. In this mode, the node only sends the fields selected in Fields To Update; the selector labels are numbered so expressions can pass values like 1,2,3 or [1,2,3].
Full Form mode sends the selected form payload and can optionally validate required fields before patching the NIVS record.
Search behavior
Search uses the selected report form to choose the NIVS business object, then filters by external ticket ID and returns up to the configured limit, defaulting to 10 records.
Credential Setup
Use the NKSC NIVS API credential.
| Field | Purpose |
|---|---|
API Endpoint |
Full NIVS API base URL for your instance |
API Key |
REST API key used for authentication |
Behavior:
- bare hostnames are normalized to HTTPS
- explicit
http://...URLs are preserved - trailing slashes are trimmed before the request URL is built
- n8n tests the credential with a read-only request against the configured endpoint
Development
npm install
npm run dev
npm run lint
npm test
npm run build