Install
$ agentstack add skill-vinayaklatthe-microsoft-security-skills-defender-for-iot ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Microsoft Defender for IoT
Defender for IoT delivers agentless network detection and response for two distinct estates that legacy endpoint tools miss:
- OT / ICS (operational technology, SCADA, PLCs, industrial networks).
- Enterprise IoT (EIoT) — printers, cameras, VoIP phones, smart-building devices on the
corporate network — discovered and protected via the Microsoft Defender for Endpoint sensor and surfaced in Defender XDR.
When to use
Securing factory, utility, healthcare, or building-automation networks; or extending visibility to unmanaged "things" on the enterprise LAN that cannot run an endpoint agent.
Do not use this skill for IoT Hub / IoT Central data-plane security, Azure Sphere firmware design, or workstation/server EDR (defender-for-endpoint).
OT vs Enterprise IoT — pick the right path
| Estate | Path | Sensor | |---|---|---| | Plant networks, ICS, SCADA, PLCs (Levels 0–3 Purdue) | Defender for IoT — OT | Dedicated OT network sensor (physical or virtual VM) attached to SPAN/TAP | | Corporate LAN unmanaged devices (printers, cameras, VoIP) | Defender for IoT — EIoT | Existing MDE sensors on Windows endpoints; no separate appliance |
> Rule of thumb: if it speaks Modbus / DNP3 / S7 / EtherNet/IP, you need an OT sensor. > If it's an IP camera on the office VLAN, EIoT via MDE is enough.
Approach
OT estate
- Network mapping by Purdue level first. Identify Level 0/1 (controllers, sensors),
Level 2 (SCADA HMI), Level 3 (operations management). Sensors monitor traffic between levels and east-west within Level 2/3.
- Pick sensor placement. One sensor per OT site, attached to a SPAN port that mirrors
the core OT switch. Aggregate multi-site sensors into a cloud-connected model (preferred for new deployments) or the legacy on-prem management console (for air-gapped sites).
- Deploy passively. OT sensors are fully passive — no probing, no active scans.
This is non-negotiable in safety-critical environments. Confirm with plant ops before any port turn-up.
- Build the asset inventory. Within 14 days the sensor builds a baseline of devices,
firmware versions, and protocol relationships. Validate the baseline with the OT team before enabling alerting.
- Enable alerts. Categories: malware, network anomalies, protocol violations,
operational (e.g. unauthorized PLC programming change). Tune to plant context — many "anomalies" are legitimate maintenance windows.
- Stream to Sentinel. Use the Defender for IoT data connector. Build OT-specific
workbooks and playbooks (e.g., auto-ticket on unauthorized PLC reprogram).
- Vulnerability program. Sensor identifies device firmware → matched to known CVEs.
Do not push patches via the same channel as IT — coordinate with OT change windows.
Enterprise IoT estate
- Already have MDE deployed? EIoT is a license toggle on top of MDE — enable in
Defender XDR settings. Devices on the LAN segment seen by an MDE-enrolled endpoint get discovered.
- Review the device inventory in security.microsoft.com → Assets → Devices, filtered
to Device type = IoT.
- Group and tag by function (printers, cameras, VoIP, building automation). Apply
network access policies (NAC / NSG / firewall) per group.
- Vulnerability findings + threat alerts flow into Defender XDR alongside endpoint
detections.
Guardrails
- OT sensors must be passive. Never enable active probing in production OT — risk of
PLC reset / safety-system trip.
- Coordinate with OT operations before any deployment change. Changes to switches,
VLANs, or SPAN configuration require an OT change window.
- Don't ship OT alerts straight to the IT SOC without context. OT analysts and IT
analysts triage differently. Either build OT-aware playbooks or route to an OT SOC.
- EIoT requires MDE on at least one endpoint per network segment to see the unmanaged
devices. Coverage gaps = blind spots.
- Don't push patches to OT devices on IT cadence. OT change windows are quarterly or
annual. Use the vuln data to plan, not to auto-remediate.
- Air-gapped sites cannot use cloud-connected mode. Stay on the on-prem management
console; plan for the migration once connectivity is allowed.
- Defender for IoT ≠ Azure IoT Hub security. Different product, different scope.
Common anti-patterns
- "Active scan to inventory PLCs faster" — caused a safety-system trip in a real
refinery. Always passive in OT.
- "One sensor for the whole multi-site estate over the WAN" — SPAN traffic isn't
WAN-friendly. One sensor per site.
- "Routed OT alerts to the standard IT incident queue" — IT analysts close them as
"expected legacy protocol" and miss real attacks.
- "Skipped EIoT because we already have MDE" — discovery of unmanaged devices is the
whole point; turn it on.
- "Patched OT firmware in the IT monthly window" — production outage. Plan with OT.
- "Used Defender for IoT to monitor IoT Hub device telemetry" — wrong product.
Example prompts
- `Plan Defender for IoT OT sensor placement for a 5-site manufacturing estate (1 plant
network per site).`
Enable EIoT discovery via MDE in a tenant with 80,000 endpoints.Stream OT alerts into Sentinel with a workbook for unauthorized PLC programming.- `Build a runbook for "Suspicious S7 protocol activity" alert — who triages, what
changes, when do we escalate.`
- `Compare cloud-connected sensors vs on-prem management console for an air-gapped
utility.`
Tag and group EIoT devices by function and apply NAC quarantine policy.
Microsoft Learn
- Overview: https://learn.microsoft.com/azure/defender-for-iot/
- OT deployment guide: https://learn.microsoft.com/azure/defender-for-iot/organizations/best-practices/plan-prepare-deploy
- OT sensor architecture: https://learn.microsoft.com/azure/defender-for-iot/organizations/architecture
- Cloud-connected vs on-prem: https://learn.microsoft.com/azure/defender-for-iot/organizations/architecture-connections
- Enterprise IoT: https://learn.microsoft.com/azure/defender-for-iot/
- Sentinel integration: https://learn.microsoft.com/azure/sentinel/iot-solution
- Alert reference: https://learn.microsoft.com/azure/defender-for-iot/organizations/alert-engine-messages
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: vinayaklatthe
- Source: vinayaklatthe/microsoft-security-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.