Skip to content

Tutorial ​

Step-by-step walkthrough applying ISVF to a fictional water booster pumping station, with worked calculations.

Fictional example

The utility, the station, the devices, the checklist items, the weights and the answers are all invented for illustration. The items and weights are not the reference questionnaire.

Terms and formulas are defined on the Definitions page.

The scenario ​

Northvale Water, a small municipal utility, runs the Hillcrest booster station, which keeps water pressure up for a hillside district. The station is unmanned. Its control system was installed by an integrator ten years ago and has been extended piece by piece since. The utility has budget for one penetration test next year and wants to know where it should focus.

The station consists of three variable-speed pump drives and a chlorine analyzer in the pump hall, a PLC in a locked control cabinet, an operator panel mounted on the cabinet door, and a cellular telemetry gateway that connects the station to the utility's central SCADA system. The integrator connects a maintenance laptop on site when changes are needed.

Phase 1: Deployment ​

Step 1: Inventory the devices ​

List every device that implements a function of the system, with type and version, and note which function it implements.

DeviceType / versionFunction
3 pump drivesVendor A VFD, FW 3.1Pump speed control
Chlorine analyzerVendor B, analog 4-20 mA outputWater quality measurement
Station PLCVendor C, FW 2.4Station control logic
Operator panelVendor C panel PC, Windows IoTLocal operation and local trend storage
Telemetry gatewayVendor D cellular router, OS 5.2Connection to central SCADA

Step 2: Define the components ​

ISVF does not prescribe a decomposition method, but the decomposition determines which items are relevant and how many values enter the aggregated scores. The reasoning behind it is part of the result. The procedure below is iterative: start coarse, split only where there is a reason, and write the reason down.

2a. Draw the assessment boundary ​

First decide what belongs to the system at all, by asking what the utility can verify and change at this site.

InsideOutsideWhy
Everything in the station building and on its wallsThe central SCADA system at the utility's control centreIt serves all stations and deserves its own assessment.
The telemetry gatewayThe mobile operator's networkThe utility neither controls nor can inspect it.
The station's maintenance port and switchThe integrator's maintenance laptopThe utility does not manage the laptop.

TIP

Excluded parts do not vanish from the assessment. They are where attacks come from, and the items facing them stay relevant: the integrator's laptop is assessed through the items on documented connections and remote access (NET-2, REM-1 to REM-3), and the SCADA link through the telemetry gateway's items.

2b. Start with one component ​

Treat the whole station as a single component. This is a valid starting point: a one-component assessment shows what is weak on average, but not where. Every split that follows should make a weakness easier to locate.

2c. Split along physical barriers ​

Walk the site and note every barrier an attacker would have to pass physically.

BarrierBehind itWho can pass
Station fence and building doorPump hall, cabinet front with the operator panelUtility staff, integrator, cleaning contractor
Locked control cabinetPLC, switch, maintenance portInstrumentation technician only
Locked enclosure on the outside wallTelemetry gatewayMobile network contractor only

This gives three areas: the building interior, the inside of the cabinet, and the gateway enclosure.

2d. Split along logical access ​

Within each area, check how the devices are reached digitally and who manages them.

  • Operator panel and PLC. The panel sits on the cabinet door, so anyone inside the building can touch it, and it has its own Windows login. The PLC is behind the lock and can be programmed only through the maintenance port inside the cabinet or from central SCADA. Physical and digital access differ, so they become two components.
  • Pump drives and analyzer. All are in the open pump hall. The drives talk to the PLC over a serial fieldbus; the analyzer has no digital interface at all, only an analog signal to the PLC. Splitting them would create a component with almost every item not relevant. They are kept together as the field devices of the hall. Because one component gets one answer per item, an item counts as satisfied only if it holds for every device in the component.
  • Telemetry gateway. It is behind its own lock and managed remotely by the mobile network contractor. Separate component.

2e. Check functions against devices ​

Compare the function list with the device list:

  • One device, two functions. The operator panel also stores local trend data. Both functions share the same hardware, operating system and login, so they are assessed once.
  • One function, several devices. Pump speed control runs on three identical drives with the same firmware and configuration, so they are treated as one.
  • A function with no device. The station has no central log server. Its absence does not make the logging items irrelevant; it makes them a "no".

2f. Test each boundary ​

For every boundary, ask: do the physical or digital access controls differ on the two sides? If not, merge. Two practical checks help:

  • Same answers? If two candidate components would get identical answers to nearly every item, the boundary adds nothing.
  • Actionable? Would a low value on this component point the engineers to something specific?

Splitting has a cost: more checklists to fill in, and more values in the system score.

The result ​

IDComponentDevicesBoundary rationale
C1Pump hall field devices3 drives, chlorine analyzerOpen hall inside the building; no device reachable except through the PLC; one answer per item, satisfied only if true for all devices.
C2Station PLCPLCInside the locked cabinet; programmable via the maintenance port or central SCADA.
C3Operator panelPanel PCOn the cabinet door, reachable by anyone in the building; own Windows login; two functions, assessed once.
C4Telemetry gatewayCellular routerOwn locked enclosure; managed remotely by the mobile network contractor.

Record this table and the boundary decisions of 2a with the results. A later assessment compares only components whose boundaries are unchanged.

Step 3: Define the profile ​

The assessors, not the station staff or the integrator, set relevance before any answers are collected, and note a reason for each decision. The checklist used in this tutorial has eight invented item groups. Start with whole groups:

GroupC1C2C3C4
PHY Physical protection✓✓✓✓
SIG Signal and field wiring✓✓--
COM Communication security✓✓✓✓
NET Network and segmentation✓✓✓✓
REM Remote access-✓✓✓
LOG Logging and detection✓✓✓✓
CFG Configuration, firmware and backup✓✓✓✓
OS Operating system--✓-

Three decisions deserve a note:

  • REM is not relevant for C1. The drives and the analyzer have no remote access function at all. This is different from a function that exists but is badly protected.
  • OS is relevant only for C3. The panel runs Windows with local accounts that the utility administers. The gateway also runs an operating system, but only as the appliance's runtime; nobody logs in to it, so it is covered by CFG.
  • LOG stays relevant for every component, although the station has no central log server. A missing control is a "no", not a reason to exclude the items.

Then decide individual items inside relevant groups, with a justification each. One example that matters for the calculation below:

ComponentItemRelevanceJustification
C2NET-4 Wireless links end in a separate zoneNot relevantThe PLC has no radio interface (datasheet).

The profile also fixes the parameters items refer to, for example the log retention period (90 days) and the maximum duration of an approved remote session (4 hours).

Step 4: Set the weights ​

For each item, the assessors assume the component does not satisfy it and estimate how much that helps an attacker with respect to each indicator. In this tutorial, a weight of 1 means "helps directly" and 0.5 means "helps partly". The ten items used in the worked example:

ItemStatementCRIINNACCBR
NET-1The component sits in a network zone separated from office IT.0.511
NET-2Only documented, required connections can reach the component.0.511
NET-3The component cannot reach the internet directly.0.50.51
NET-4Wireless links of the component end in a separate zone.0.510.5
NET-5New or unknown devices on the component's segment are detected.10.5
REM-1Remote access requires an individual account and a second factor.10.5
REM-2Remote sessions are approved per session and time-limited.0.510.5
REM-3Remote sessions are recorded, and the records are kept outside the component.1
COM-1The component accepts control commands only from authenticated senders.10.5
COM-2A passive observer on the segment cannot read the communication content.1

How to read a row

If NET-2 is not satisfied, an undocumented connection makes the component easier to reach (ACC), easier to move on from (BR), and partly easier to impersonate others towards (NN).

Freeze the configuration and give it an identifier, for example northvale-hillcrest-1.0.0.

Phase 2: Execution ​

Step 5: Collect the answers ​

Answer every relevant item for every component. A "yes" needs something checkable: a configuration, a log, a test, a document, or, where nothing else is possible, an interview. Answers for C2, the station PLC:

ItemRelevantAnswerBasis
NET-1YesYesThe PLC is in the station control VLAN; office IT is not routed to the station (switch configuration).
NET-2YesNoThe maintenance port on the switch accepts any device; it is not in the network documentation (site walk).
NET-3YesYesThe gateway blocks all internet traffic from the station VLAN (gateway rules).
NET-4No-Fixed as not relevant in the profile.
NET-5YesNoNothing watches the segment for new devices.
REM-1YesNoThe integrator uses one shared account with a password only.
REM-2YesNoThe SCADA-side remote connection to the PLC is always open.
REM-3YesNoRemote sessions are not recorded.
COM-1YesNoThe PLC accepts unauthenticated commands over its industrial protocol (test with a protocol client).
COM-2YesNoTraffic between PLC, panel and gateway is plaintext (packet capture).

Step 6: Close the component ​

C2 is complete when every item of the checklist has a relevance value and every relevant item has an answer. Repeat for C1, C3 and C4.

Step 7: Calculate ​

To keep the arithmetic readable, this step uses only the ten items above. In the real evaluation, all relevant items enter the same formulas.

Access Control Complexity (ACC) for C2. Seven items carry an ACC weight. NET-4 is not relevant, so compensation removes it. The relevant weights sum to

(NET-1, NET-2, NET-3, REM-1, REM-2, COM-1). Dividing each by 5.0 gives the compensated weights:

ItemWeightCompensated weightAnswerContributes to the indicatorContributes to exposure
NET-110.2010.200
NET-210.20000.20
NET-30.50.1010.100
REM-110.20000.20
REM-210.20000.20
COM-10.50.10000.10

and the exposure contributions sum to .

Why compensation matters

Without compensation, the weight of NET-4 would stay in the denominator: . The PLC would be penalized for not having a radio.

The same calculation for all five indicators these items touch:

IndicatorRelevant weighted items (sum of weights)Satisfied (sum)ValueWithout compensation
CRNET-3, COM-2 (1.5)NET-3 (0.5)0.330.33
IINET-5, REM-2, REM-3 (2.5)none (0)0.000.00
NNNET-1, NET-2, NET-5, COM-1 (2.5; NET-4 not relevant)NET-1 (0.5)0.200.5 / 3.0 = 0.17
ACC6 items (5.0; NET-4 not relevant)NET-1, NET-3 (1.5)0.301.5 / 6.0 = 0.25
BRNET-1, NET-2, NET-3, REM-1, REM-2 (4.0; NET-4 not relevant)NET-1, NET-3 (2.0)0.502.0 / 4.5 = 0.44
REC, FR, PBl, PBr, RI, TBnone-not applicable-

Three things to notice

  • Compensation only matters where an irrelevant item carries weight. NET-4 has weight in NN, ACC and BR, so only those change.
  • Applicability. None of the ten items counts towards REC, FR, PBl, PBr, RI or TB, so from this subset these indicators are not applicable, not zero. In the full profile, other item groups supply them.
  • A zero is a real result. II is 0.00: none of the three detection-related items is satisfied. On the PLC, an intrusion through these paths would go unnoticed.

Only the checklist is used here, so and .

Phase 3: Reporting ​

Step 8: Rank the unmet items ​

For C2 and ACC, the unmet items ranked by their contribution, ties broken by item order:

  1. NET-2 open maintenance port (0.20)
  2. REM-1 shared, password-only account (0.20)
  3. REM-2 always-open remote connection (0.20)
  4. COM-1 unauthenticated commands (0.10)

The weights separate the first three from COM-1, but not from each other. Here engineering judgment adds what the weights cannot: NET-2, REM-1 and REM-2 all concern how outsiders reach the PLC, and one change to the maintenance and remote access arrangement addresses all three. The ranking is a starting point, not a statement about risk reduction.

Step 9: Read the heatmap ​

Repeating the evaluation over the full profile for all components gives the indicator matrix. Low values point to potential weaknesses; "n/a" means not applicable.

IndicatorC1 Field devicesC2 Station PLCC3 Operator panelC4 Telemetry gateway
Access Control Complexity0.650.400.450.50
Communication Readability0.450.350.550.70
Infiltration Inertia0.250.200.400.35
Naive Network0.350.250.500.60
Reconstructability0.500.450.600.80
Backdoor Tunneling0.700.550.400.30
False Recipe0.400.350.45n/a
Permanent Block0.600.650.750.70
Physical Breakdown0.450.50n/an/a
Recovery Inertia0.550.500.600.45
Temporary Block0.650.600.700.65
Aggregated score 0.490.420.530.53
Lowest indicator0.25 (II)0.20 (II)0.40 (II, BR)0.30 (BR)
Items marked not relevant54472239

The system score pools the 41 applicable values: . The lowest value in the system is 0.20 (C2, Infiltration Inertia).

As a check on C3, which has ten applicable indicators: the squared exposures sum to 2.25, so

Reproduced run output (CLI) ​

The tutorial matrix above was executed with the current sigma implementation using a reproducible input bundle at isvf.sztaki.hu/tutorial-run-input:

bash
python3 sigma_operator/main.py \
  -i isvf.sztaki.hu/tutorial-run-input \
  -o isvf.sztaki.hu/assets/tutorial-run-output \
  -f json -l en

Generated heatmap:

Tutorial heatmap generated by sigma

Generated component charts

C1 Field devices chartC2 Station PLC chartC3 Operator panel chartC4 Telemetry gateway chart

Generated aggregate values from report.json:

MetricValue
C1 aggregated score 0.487
C2 aggregated score 0.420
C3 aggregated score 0.526
C4 aggregated score 0.532
System score 0.487
Global minimum indicator0.20 (C2, II)

What the utility takes from this:

  • C2 station PLC: the lowest aggregated score. It accepts commands from anyone who can reach it (NN 0.25), its traffic is readable (CR 0.35), and tampering would go unnoticed (II 0.20). A forged command to the pumps is the first scenario for the penetration test (UKC Delivery, Exploitation, Execution, Impact).
  • C4 telemetry gateway: the likeliest stepping stone into the station (BR 0.30), even though its aggregated score is among the best.
  • C3 operator panel: reachable by anyone in the building, and a route onward to the PLC (BR 0.40).
  • C1 field devices: they trust whatever the PLC sends (NN 0.35), and without central logging nothing about them is recorded (II 0.25).

C3 and C4 have the same aggregated score but different weaknesses, and C4's lowest value is clearly worse. This is why the minimum is always reported next to the score. The not-relevant counts follow the group decisions of Step 3; a count far out of line with similar components would be a reason to recheck the profile.

What-if analysis ​

Copy the recorded answers, leave the originals untouched, and change the copy as if a measure were already in place. Using the ten items for C2:

ScenarioACCBRNN
Baseline0.300.500.20
Maintenance port locked down, personal accounts with second factor (NET-2, REM-1)3.5 / 5.0 = 0.703.5 / 4.0 = 0.881.0 / 2.5 = 0.40
... and authenticated commands via a protocol gateway (COM-1)4.0 / 5.0 = 0.800.882.0 / 2.5 = 0.80

WARNING

This simulates the change in the indicators, not the change in actual security.

When someone disagrees ​

After the report, the integrator argues that REM-2 (per-session approval) and REM-3 (session recording) "do not apply, because remote access is used only a few times a year". Marking them not relevant would raise ACC for C2 from 1.5 / 5.0 = 0.30 to 1.5 / 4.0 = 0.38 and BR from 2.0 / 4.0 = 0.50 to 2.0 / 3.5 = 0.57, without any change at the station. This is the manipulation that compensation makes possible.

The request is rejected:

  • Relevance was fixed by the assessors before collection, and both items clearly can apply: remote access exists, however rarely it is used. Rare use is an argument about risk, not about relevance.
  • Disagreement with a result, or a request of the assessed party, is not a permitted reason for an a posteriori change.
  • The disagreement is recorded as a finding in the report.

If a genuine error is found, for example an item mapped to the wrong indicator, the correction is an a posteriori change: documented, reviewed by someone not involved in the assessment, applied to all components, with the old and new results reported side by side.

Repeating the cycle ​

After the penetration test and the remediation, repeat Execution and Reporting under the same configuration northvale-hillcrest-1.0.0 and compare with the baseline.

  • Compare results only under the same configuration and the same way of collecting data.
  • Keep the raw answers of every execution; never overwrite them.
  • If the configuration changes, for example a new item is added to the NET group, re-evaluate the stored answers under the new configuration, never impute answers to the new item for past executions, compare only on the items common to both versions, and report the restriction.
  • If the decomposition changes, for example a fourth pump drive of a different model is installed and becomes its own component, compare only the components whose boundaries stayed the same.

Common pitfalls ​

WARNING

  • Marking an item not relevant because a control is missing. Missing means "no"; only a missing function makes an item not relevant.
  • Letting the station staff or the integrator set relevance, or changing it after the results are known.
  • Answering "yes" for a multi-device component when the item holds for only some of its devices.
  • Splitting identical devices into separate components, or merging devices with different access controls.
  • Reading an indicator value as a risk level or attaching a qualitative label to it.
  • Reporting the aggregated score without the lowest indicator.
  • Comparing results across configurations or across sites.

ISVF documentation