
Hardware In The Loop Security Tester
- 29 installs
- 7 repo stars
- Updated May 20, 2026
- daemon-blockint-tech/agentic-enteprises-skill
Guides authorized HIL security assessment of embedded and cyber-physical systems: bench setup, bus interfaces, fault injection, attack-surface monitoring, and evidence capture.
About
Guides hardware-in-the-loop security testing of ECU/PLC and cyber-physical targets, covering bench topology, CAN/LIN/Ethernet bus taps, fault-injection campaigns, and evidence capture. A tester uses it when running authorized embedded hardware security assessments and retests.
- Bench topology with bus taps, power/reset control, and safety interlocks
- Reproducible fault-injection and stimulus campaigns with evidence capture
Hardware In The Loop Security Tester by the numbers
- 29 all-time installs (skills.sh)
- Ranked #1,498 of 2,203 Security skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/daemon-blockint-tech/agentic-enteprises-skill --skill hardware-in-the-loop-security-testerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 29 |
|---|---|
| repo stars | ★ 7 |
| Last updated | May 20, 2026 |
| Repository | daemon-blockint-tech/agentic-enteprises-skill ↗ |
What it does
Guides authorized HIL security assessment of embedded and cyber-physical systems: bench setup, bus interfaces, fault injection, attack-surface monitoring, and evidence capture.
Files
Hardware-in-the-Loop (HIL) Security Tester
When to Use
- Plan or execute authorized security assessments on real hardware with a HIL rig (ECU, ECM, PLC, gateway, domain controller)
- Design test bench topology, bus taps, power/reset control, and safety interlocks before active testing
- Map attack surfaces on cyber-physical targets (diagnostics, flashing, debug ports, wireless, OTA paths) under lab conditions
- Develop fault injection and stimulus campaigns (bus frames, timing, signal, power) with reproducible test cases
- Monitor buses and interfaces during tests; correlate observations with firmware/vehicle security teams
- Capture evidence (logs, traces, captures, configuration snapshots) suitable for remediation and retest
- Coordinate retest after firmware patches, key rotation, or configuration hardening on the same bench
When NOT to Use
- Web application or API-only assessments (OWASP, proxy methodology) →
web-pentester - Network/AD/infra pentest without embedded targets on the bench →
network-pentester - General penetration test without HIL hardware, buses, or plant simulation →
penetration-tester - Disassembly, decompilation, patch diff, or malware RE as primary work →
reverse-engineer - SIEM alert triage, SOC playbooks, or shift operations →
soc-analyst - Live incident command, war room, or production containment →
incident-responder - LLM jailbreak, prompt injection, or agent tool abuse →
ai-redteam - Classified ISSO / accreditation paperwork without hands-on HIL testing →
information-systems-security-officer-classified-specialist - CI build validation or release gates without hardware under test →
build-validator - Enterprise security strategy, GRC roadmap, or policy without lab execution →
cybersecurity - Control testing and audit evidence mapping only (no active HIL tests) →
compliance-engineer
Related skills
| Need | Skill |
|---|---|
| Authorized general pentest (non-HIL primary) | penetration-tester |
| Binary/firmware RE, protocol reverse engineering | reverse-engineer |
| Implement fixes (IAM, SIEM, guardrails) on IT systems | information-security-engineer |
| Security program, risk acceptance, engagement governance | cybersecurity |
| Audit control mapping and evidence packages | compliance-engineer |
| Web/API layer when also in scope | web-pentester |
| Network/AD when bench includes enterprise segment | network-pentester |
| Threat context and TTP mapping for reports | cti-analyst |
| Customer-facing technical writeups | tech-writer-researcher |
Core Workflows
1. Authorization, scope, and bench readiness
Do not energize targets or inject faults without written authorization and completed safety review.
1. Confirm signed SOW/ROE: targets, buses, methods, time windows, stop conditions 2. Complete bench FMEA / hazard review with lab owner; document interlocks and e-stop 3. Inventory target firmware versions, keys, calibration, and baseline configuration 4. Define out-of-scope (moving machinery, public roads, production fleets, third-party networks) 5. Establish emergency stop, power-down procedure, and escalation contacts
See `references/hil_security_tester_scope.md` and `references/test_bench_and_safety.md`.
2. Attack surface mapping and test design
baseline capture → interface inventory → trust boundaries → threat hypotheses → test cases → peer reviewPrioritize interfaces exposed on the bench: OBD/diagnostics, flashing, debug (JTAG/SWD), wireless, USB/Ethernet, service modes, and cross-domain gateways.
See `references/bus_and_interface_security.md` and `references/automotive_and_industrial_patterns.md`.
3. Execute fault injection and stimulus (in scope)
- Run reproducible scripts or harness-defined sequences; version control stimulus definitions
- Record bus traces, power events, and target responses with synchronized timestamps (UTC)
- Stop at agreed impact; avoid unbounded fuzzing on safety-critical actuators without explicit approval
- Restore baseline configuration and clear test keys/sessions before handoff
See `references/fault_injection_and_stimulus.md`.
4. Evidence, reporting, and coordination
Per finding: title, severity, safety note, impact, preconditions, reproduction on bench, evidence refs, remediation owner, retest criteria. Coordinate with firmware/vehicle security on exploitability vs design intent.
See `references/evidence_and_reporting.md`.
When to load references
| Topic | Reference |
|---|---|
| Role boundaries and engagement types | references/hil_security_tester_scope.md |
| Bench topology, interlocks, lab safety | references/test_bench_and_safety.md |
| CAN/LIN/Ethernet/Modbus security angles | references/bus_and_interface_security.md |
| Fault injection and stimulus design | references/fault_injection_and_stimulus.md |
| Evidence capture and reporting | references/evidence_and_reporting.md |
| Automotive and industrial patterns | references/automotive_and_industrial_patterns.md |
Automotive and industrial patterns
Table of contents
1. Automotive reference architecture 2. Common automotive test themes 3. Industrial ICS patterns 4. Supply chain and lifecycle 5. Anti-patterns
Automotive reference architecture
Typical bench targets (names vary by OEM):
| Domain | Examples | Security relevance |
|---|---|---|
| Powertrain / chassis | ECM, TCU, brake/abs mock | High safety sensitivity — strict ROE |
| Body / comfort | BCM, door modules | Gateway paths, keyless entry surfaces |
| Infotainment / connectivity | IVI, T-box, telematics | Rich attack surface; often isolated VLAN on bench |
| ADAS / perception | Radar/camera ECU (mocked) | Sensor spoof via HIL; calibration integrity |
| Gateway / zonal | Central gateway, zone controllers | Cross-domain routing policy |
| Diagnostics | OBD-II, DoIP edge | Session and authentication flows |
Use OEM-provided threat models when available; otherwise derive from interface inventory.
Common automotive test themes
| Theme | Bench approach | Evidence |
|---|---|---|
| UDS securityAccess | Scripted seed-key attempts within ROE | Session logs, negative response codes |
| Programming session | Signed vs unsigned image handling | Flash tool logs, version registers |
| Gateway filtering | Cross-domain frame from tap | Trace showing pass/block |
| Key storage | No extraction guidance — observe behavior only | Lockout, tamper flags |
| OTA (mocked) | Local update server on isolated VLAN | Manifest signature checks |
| Wireless entry | Cabled RF or shielded chamber | Pairing/downgrade observations |
Coordinate with reverse-engineer when analysis requires firmware images or cryptographic review beyond bus behavior.
Industrial ICS patterns
| Pattern | Security focus on HIL bench |
|---|---|
| PLC + HMI shadow | Engineering station authentication, logic integrity |
| SCADA gateway (mock) | Segmentation from IT; protocol translation abuse |
| Safety PLC | Often out of scope for active injection — document-only review |
| Fieldbus bridge | Modbus ↔ proprietary mapping errors |
| Historian / OPC | Read-only exfil paths when historian is in scope |
Never test live production assets; use shadow logic, digital twin, or vendor training rigs.
Supply chain and lifecycle
| Phase | HIL security angle |
|---|---|
| Sample ECU receipt | Baseline capture; compare to golden reference |
| Integration | Gateway rules before full vehicle HIL |
| Field campaign | Retest same test cases on post-patch firmware |
| End of life | Residual diagnostic exposure on refurbished units |
Document hardware and firmware revision matrix in the report appendix.
Anti-patterns
| Anti-pattern | Why it fails |
|---|---|
| Treating HIL work as network pentest only | Misses bus-level and diagnostic trust boundaries |
| Unbounded fuzz on safety buses | Safety incident; non-reproducible results |
| No baseline restore | Contaminated retest and fleet risk |
| Findings without trace correlation | Not actionable for firmware teams |
| Skipping safety sign-off | Regulatory and personnel risk |
| Publishing exploit chains without redaction | Supplier and customer harm |
Bus and interface security
Table of contents
1. Interface inventory 2. CAN and CAN-FD 3. LIN 4. Automotive Ethernet 5. Modbus (industrial, high level) 6. Cross-cutting tests
Interface inventory
For each interface on the bench, capture:
| Field | Notes |
|---|---|
| Physical layer | Connector, baud, termination, isolation |
| Protocol / stack | CAN matrix row, DoIP, SOME/IP service, Modbus function codes |
| Authentication | Seed-key, TLS, MAC, signed frames (if any) |
| Trust boundary | Who can send; gateway filtering rules |
| Safety class | ASIL/SIL hint; whether stimulus is prohibited |
CAN and CAN-FD
Security angles (lab only, within ROE):
- ID and DLC abuse — unexpected IDs, length violations, error-frame storms (rate-limited)
- Diagnostic services — UDS session transitions (default/extended/programming), securityAccess sequencing
- Gateway policy — cross-domain frames blocked or forwarded; replay across segments
- Timing — bus-off recovery, priority inversion, flood at bounded rate
- SecOC / MAC (if present) — replay, counter rollback, acceptance of unsigned frames on trusted buses
Capture DBC-aligned interpretations in reports; attach raw .blf/.asc or vendor-native captures.
LIN
- Schedule table violations and unauthorized frame injection on isolated networks
- NAD spoofing and duplicate master scenarios (only with safety-approved benches)
- Correlation with upstream CAN gateway when LIN is a satellite bus
Automotive Ethernet
At high level (delegate deep IT pentest to network-pentester when scope is enterprise-wide):
- Switch ACLs and VLAN separation between domains (infotainment vs powertrain mock)
- DoIP routing and activation types; TLS where specified
- SOME/IP service discovery exposure on bench VLAN
- Time sync (gPTP) manipulation impact on time-sensitive functions
- Mirror/port capture points documented for evidence
Modbus (industrial, high level)
- Unauthorized read/write holding coils from bench segment
- Unit ID scanning on isolated Modbus TCP/RTU
- Engineering workstation paths (logic download) when PLC is target—coordinate with vendor safety
- No guidance on disrupting live production PLCs; bench or shadow logic only
Cross-cutting tests
| Test theme | Objective |
|---|---|
| Replay | Resend captured legitimate frames; observe acceptance |
| Spoofing | Impersonate ECU/node ID or source address |
| Downgrade | Force legacy diagnostic or unsigned mode if design allows fallback |
| Denial of service | Bounded bus load; measure recovery and watchdog behavior |
| Firmware update path | Unsigned image rejection, rollback, secure boot indicators (coordinate with RE) |
Map notable behaviors to MITRE Embedded / ATT&CK ICS where helpful for reader context—not as a substitute for reproduction steps.
Evidence and reporting
Table of contents
1. Evidence package 2. Finding format 3. Severity and safety notes 4. Coordination and retest 5. Data handling
Evidence package
For each test case or finding, assemble:
| Artifact | Content |
|---|---|
| Test case record | ID, hypothesis, preconditions, stimulus version |
| Target identity | Part number, serial (if allowed), firmware/hash, calibration ID |
| Bus / network captures | Raw trace + exported decode (DBC/LDF referenced) |
| Target logs | UDS DTC readout, application logs, crash dumps (redacted) |
| Photos / wiring | Bench tap points (no customer facility identifiers unless approved) |
| Tool manifest | Logger, injector, HIL software versions |
| Timeline | UTC-synchronized sequence of stimulus and response |
Store hashes (SHA-256) of large binaries in the report index.
Finding format
### [SEVERITY] Title
**Safety note:** (none | caution | hazard — required field)
**Impact:** (confidentiality / integrity / availability / safety-adjacent)
**Preconditions:** bench mode, keys, firmware hash
**Reproduction:** numbered steps on HIL bench
**Evidence:** file refs and offsets / frame IDs
**Root cause hypothesis:** design vs implementation vs configuration
**Remediation:** owner team (firmware, gateway, supplier)
**Retest:** pass criteria on benchDeliver executive summary (risk themes, safety events) and technical appendix (full test case list).
Severity and safety notes
| Severity | Guidance |
|---|---|
| Critical | Safety-adjacent or unauthorized control of safety-related function on bench |
| High | Reliable integrity break, persistent unlock, or cross-domain bypass |
| Medium | Conditional abuse requiring specific mode or key material |
| Low | Information disclosure or hardening gap without practical abuse on bench |
| Informational | Defense-in-depth recommendations |
Always separate safety-adjacent observations from classic CIA impact; escalate safety notes to product safety regardless of CVE-style severity.
Coordination and retest
| Activity | Owner |
|---|---|
| Exploitability review | Firmware / vehicle security |
| Fix implementation | Engineering or supplier |
| Bench retest | HIL security tester with frozen test case IDs |
| Customer communication | Program management / cybersecurity as appropriate |
Retest only when firmware hash or config version is recorded; attach before/after traces.
Data handling
- Minimize PII and geolocation from telematics captures
- Redact VIN, license plates, and facility identifiers in external reports
- Follow ROE for data residency and export controls on automotive/ICS artifacts
- Do not upload raw traces to public issue trackers without scrubbing
Fault injection and stimulus
Table of contents
1. Planning principles 2. Stimulus categories 3. Test case structure 4. Harness and automation 5. Abort and rollback
Planning principles
- Tie every stimulus to a hypothesis (e.g., gateway forwards unsigned diagnostic write)
- Obtain safety approval before actuator-affecting or power-anomaly tests
- Prefer smallest step that falsifies the hypothesis; avoid shotgun fuzzing
- Keep human operator in the loop for first run of a new stimulus class
- Version-control stimulus definitions alongside firmware hash and bench config ID
Stimulus categories
| Category | Examples | Typical observables |
|---|---|---|
| Bus / protocol | Frame injection, timing skew, diagnostic sequences | NACKs, DTCs, bus-off, session changes |
| Electrical / power | Brownout, reset glitch (approved rigs only) | Boot mode, corruption, safe state |
| Environmental | Temperature chamber setpoints (if in scope) | Derating, sensor plausibility faults |
| RF / wireless | Isolated anechoic or cabled RF when authorized | Pairing bypass, downgrade |
| HIL plant | Sensor out-of-range, actuator delay injection | Control loop alarms, limp modes |
| Human interface | Tooling abuse (flashing dongle, JTAG when exposed) | Unlock persistence, debug shells |
Document prohibited stimuli in the test plan (e.g., airbag bus, steering torque, HV contactors).
Test case structure
Use a consistent template:
ID: HIL-SEC-###
Title:
Hypothesis:
Preconditions: (firmware hash, keys, bench mode, interlocks)
Stimulus: (script ref, frame list, duration, rate cap)
Expected (design intent):
Observed:
Evidence: (trace file, screenshot, log path)
Severity / safety note:
Retest criteria:Harness and automation
- Separate stimulus generation from monitoring (dual CAN interfaces or logger + injector)
- Synchronize clocks; embed test case ID in log filenames
- Implement rate limits and max duration in scripts
- Run automated suites only after manual proof on the same bench configuration
Abort and rollback
Define abort triggers before execution:
| Trigger | Action |
|---|---|
| Unexpected motion or torque | E-stop; cut bus power per procedure |
| Target thermal or current fault | Power down; log last 60s of traces |
| Loss of watchdog / brick indicators | Stop stimulus; initiate reflash procedure |
| Stimulus script exception | Halt injection; hold plant in safe state |
After abort: preserve traces, file safety incident if required, do not resume until review.
HIL security tester scope
Table of contents
1. Role boundary 2. Engagement types 3. Partnership model 4. What good looks like
Role boundary
| HIL security tester owns | Others own |
|---|---|
| Security assessment on real hardware with HIL/plant simulation | Web/API OWASP testing (web-pentester) |
| Bench setup, bus monitoring, fault injection within ROE | Network/AD/infra pentest (network-pentester) |
| Reproducible embedded/cyber-physical test cases | General pentest without hardware focus (penetration-tester) |
| Evidence capture (traces, logs, configs) for embedded findings | Binary RE and patch diff labs (reverse-engineer) |
| Lab safety interlocks and test hygiene | SOC alert triage (soc-analyst) |
| Coordination with firmware/vehicle security on exploitability | Live IR command (incident-responder) |
| Retest on same bench after fixes | AI/LLM adversarial testing (ai-redteam) |
Classified ISSO accreditation work (information-systems-security-officer-classified-specialist) | |
CI-only build gates (build-validator) | |
Enterprise GRC strategy (cybersecurity) | |
Control testing without active lab tests (compliance-engineer) |
HIL security tester validates weaknesses on physical targets under controlled conditions; it does not replace IT pentest, SOC operations, or production incident response.
Engagement types
| Type | Focus | Typical deliverable |
|---|---|---|
| Automotive ECU/domain | Diagnostics, flashing, gateway, SOME/IP/DoIP exposure on bench | Bus traces + reproduction steps + safety notes |
| Industrial PLC/RTU | Modbus/register abuse, engineering station paths, logic download | Stimulus scripts + evidence bundle |
| Aftermarket / telematics | Wireless, OTA, companion connectivity on isolated rig | Interface matrix + test case pack |
| Supply-chain sample | New ECU revision before fleet integration | Baseline vs hardened comparison |
| Retest | Prior critical/high on same firmware/hardware rev | Pass/fail per finding on bench |
Clarify grey-box vs white-box (schematics, DBC/LDF, firmware images, keys) in the SOW.
Partnership model
| Partner | Interaction |
|---|---|
| Firmware / embedded security | Provides images, keys, threat models; reviews exploitability |
| Vehicle / product safety | Approves actuator tests; defines prohibited stimuli |
reverse-engineer | Deep protocol or binary analysis when bus traces are insufficient |
penetration-tester | Overlapping IT attack paths when bench includes full stack |
information-security-engineer | Production control implementation—not lab execution |
compliance-engineer | Maps findings to controls when audit evidence is required |
| Legal / safety | Reviews ROE, export, and physical hazard constraints |
What good looks like
1. Written authorization and completed safety review before energizing targets 2. Every finding is reproducible on the bench with versioned stimulus and captured traces 3. Safety interlocks documented; e-stop tested; hazardous motion isolated or mocked 4. Evidence is redacted; no unnecessary exfiltration of customer calibration or PII 5. Baseline restored; test keys and diagnostic sessions cleared before handoff 6. Retest scheduled for critical/high with frozen hardware/firmware identifiers
Test bench and safety
Table of contents
1. Bench topology 2. Safety interlocks 3. Pre-test checklist 4. During test discipline 5. Post-test and handoff
Bench topology
Document a single-line diagram covering:
| Element | Record |
|---|---|
| Target(s) | ECU/PLC ID, part number, firmware/hash, security state |
| Power | Supply limits, inrush protection, remote enable, kill relay |
| Plant / HIL | Simulator model version, I/O mapping, actuator mock vs real |
| Bus access | CAN/LIN/Ethernet tap points, termination, galvanic isolation |
| Gateways | Diagnostic dongles, VCI, engineering laptops (isolated VLAN) |
| Monitoring | Logic analyzer, bus logger, power probe attachment points |
| Clocks | Time sync source (PTP/NTP/GPS) for correlated captures |
Prefer isolated lab networks; block paths to corporate or internet unless explicitly in scope.
Safety interlocks
| Control | Purpose |
|---|---|
| Hardware e-stop | Cuts actuator power independent of software |
| Software interlock | HIL disables outputs when guard open or fault injected |
| Torque/speed limits | Cap dynamometer or motor drives during security runs |
| Fire / ventilation | Battery or HV bench rules per facility policy |
| Two-person rule | Required for first energization or new wiring |
Never bypass OEM safety mechanisms without written approval from product safety.
Pre-test checklist
[ ] ROE and safety sign-off on file
[ ] Bench FMEA updated for this target and stimulus plan
[ ] E-stop tested; interlocks verified closed-loop
[ ] Firmware/calibration baseline captured and checksummed
[ ] Bus termination and ground reference verified
[ ] Emergency contacts posted; fire extinguisher rated for bench
[ ] Rollback plan: reflash, power cycle, config restore documentedDuring test discipline
- Increase stimulus gradually; log each step with UTC timestamp and operator ID
- Pause on unexpected actuator motion, smoke, over-temperature, or loss of watchdog
- Use named test cases (IDs) tied to version-controlled stimulus files
- Avoid unbounded random fuzz on safety-related frames without rate limits and abort conditions
Post-test and handoff
1. Return target to approved baseline (reflash or config restore) 2. Clear diagnostic sessions, temporary keys, and engineering unlocks 3. Archive traces with test case ID, operator, target hash, and tool versions 4. File incident note if any safety event occurred—even if no security finding 5. Brief firmware/vehicle security with raw evidence paths and reproduction package