Technology

A technical look at WAFs for IoT: What happens without one, and when to skip it

Most IoT platforms have to be reachable from the public internet, which means they get scanned, probed, and brute-forced like any other website. A web application firewall (WAF) filters that traffic before it reaches your application.

TagoIO Team ·
A technical look at WAFs for IoT: What happens without one, and when to skip it

Most IoT platforms have to be reachable from the public internet, which means they get scanned, probed, and brute-forced like any other website. A web application firewall (WAF) filters that traffic before it reaches your application. This post covers what a WAF does, what an unprotected endpoint looks like in practice, where a WAF does not help, and how it feeds into SOC 2 and ISO 27001 audits.

What a WAF is, technically

A WAF is a layer 7 filter: it sits in front of your application, terminates or inspects each HTTP(S) request, and evaluates it against a set of rules before the request is forwarded to the origin. It is not the same thing as a network firewall, which works on IP addresses and ports (layers 3 and 4), and it is not the same as DDoS protection, which absorbs volumetric floods. A WAF reads the request itself: the path, headers, query string, and body.

Typical rule categories:

  • IP reputation lists. Addresses with a known history of attacks or bot activity are rejected outright. Cloud providers maintain and update these lists, so there is nothing to curate.
  • Managed rule groups. Signatures for common exploit classes: SQL injection, cross-site scripting, path traversal, attempts to read system files, and payloads targeting published CVEs.
  • Rate-based rules. A counter per source address. For example, more than 100 sign-in attempts from one address in 5 minutes gets a 429 response instead of a password check.
  • Geo and IP match rules. Block specific addresses, block countries, or allow only the countries you serve.
Traffic flows from the internet through DDoS protection at layers 3 and 4, then through the WAF at layer 7, then to the application. The WAF applies IP reputation, managed rules, rate limits, and geo rules.
Where a WAF sits: after volumetric DDoS protection, before the application. Each layer stops a different class of attack.

What happens when there is no WAF

Nothing happens immediately, which is exactly why teams postpone it. What changes is what every request is allowed to do. Without a WAF, the application itself is the first and only code that sees hostile input.

Without a WAF, scanner bots, credential stuffing, and exploit payloads reach the application directly, alongside devices and users. Every request consumes application resources and hostile requests are handled by application code.
Without a WAF, hostile traffic shares the front door with your devices and users.

Concretely, three things are true for any internet-facing endpoint:

  • You are already being scanned. A new public IP or hostname receives automated probes within minutes of going live. Scanners do not care who you are; they enumerate the whole address space looking for login pages, admin panels, and known-vulnerable software versions.
  • Your login page is a target by default. Credential stuffing tools replay username and password pairs from past breaches at any form that accepts them. Without rate limiting in front, the only cost to the attacker is time, and they have automation.
  • Patching becomes a race. When a vulnerability in a common framework is published, exploit attempts follow within hours. Without a filtering layer, the window between disclosure and your next patch cycle is fully exposed. A WAF with managed rules narrows that window because signatures are updated by the provider, not by you.

There is a quieter cost too: without a filtering layer there is usually no record. When a security questionnaire or an incident review asks “were you probed, and what was blocked,” the honest answer is “we do not know.”

Why IoT in particular needs a WAF

IoT platforms have a shape that makes the generic argument stronger.

  • The backend cannot hide. A fleet of sensors and gateways reports from cellular carriers, customer networks, and home routers all over the world, usually behind NAT with addresses that change constantly. You cannot allowlist your way out; the ingestion endpoint has to accept connections from effectively anywhere, which means attackers can reach it too.
  • Devices cannot defend themselves. A microcontroller running firmware has no antivirus, no endpoint agent, and often no practical update path on short notice. The protection has to live on the platform side, in front of the application.
  • The portal is a public login page. An end-user portal such as TagoRUN is built for customers to find and sign in to. That is good for customers and equally convenient for credential stuffing, which is what rate-based rules are for.
  • Machine traffic is predictable. Devices send similar requests on regular schedules. That regularity means WAF rules can be tuned with low risk of blocking real traffic, and it makes anomalies stand out in the logs.
  • The blast radius is physical. A compromised web app leaks data. A compromised IoT platform can also mislead operators, mask alarms, or send commands toward pumps, compressors, and generators. The cost of “we got in through the login page” is higher when equipment is on the other end.

What a WAF does not see

A WAF inspects HTTP(S). A lot of IoT traffic is not HTTP, and pretending otherwise creates a false sense of coverage.

Requests to Admin, TagoRUN, and the API, including HTTP devices and integrations, pass through the WAF, which checks each request against rules before it reaches the project. Traffic sent straight to an MQTT broker, a middleware, or TagoTiP over TCP or UDP does not pass through the WAF and relies on each service's own controls: TLS, device credentials, and topic permissions.
A WAF covers the web surface. Traffic that goes straight to a broker, a middleware, or a TCP or UDP service relies on that service's own controls.

On a TagoDeploy project, that means Admin, TagoRUN portals, and the API are the WAF’s territory, including devices and integrations that post to the API over HTTP(S). Telemetry sent straight to an MQTT broker, to a middleware such as the endpoint a LoRaWAN network server forwards uplinks to, or over raw UDP and TCP with a protocol like TagoTiP never passes through it, even when the middleware call is HTTPS. Those paths are secured differently: per-device credentials, transport encryption, topic permissions, and network-level rules. A WAF is one layer, not the perimeter.

When a WAF is not the right call

A WAF checks every request and charges for every request, including the blocked ones. There are deployments where that cost buys little.

  • Nothing is public. If the platform is reachable only over a VPN or inside a private network, with no endpoint exposed to the internet, a WAF is filtering traffic that cannot arrive. Edge deployments on closed plant networks, for example running TagoCore on site, fall in this category.
  • The traffic is not HTTP. If almost all of your exposure is MQTT or UDP telemetry and the web surface is minimal and locked down, protocol-level controls do the real work and a WAF covers only a sliver.
  • The economics do not close. WAF pricing is typically a fixed monthly fee plus a charge per million requests. For a very high-volume fleet with low per-request value, or an early prototype with nothing at stake yet, run the numbers first. During a flood of blocked requests the bill rises with the attack, so pair the decision with traffic estimates from your last 30 days.
  • It would substitute for fundamentals. A WAF in front of weak passwords, shared tokens, or unpatched software is a bandage. Fix authentication and patching first; the WAF is the layer on top, not a replacement.
Decision flow. Is the endpoint reachable from the public internet? If no, a WAF adds little. If yes, is the exposed traffic HTTP? If no, use protocol controls. If yes, enable a WAF and start in monitor mode.
A short decision path. Public HTTP surface is the case a WAF is built for.

Always start in monitor mode. In monitor mode the WAF counts what it would block and stops nothing. Run it through about a week of normal traffic, or one full reporting cycle if your devices report less often, and confirm that none of your devices or integrations appear in the would-block list. Then turn blocking on. Device fleets sometimes include old firmware with unusual HTTP clients; find out in monitor mode, not in production outage reports.

How a WAF helps with SOC 2 and ISO 27001

A WAF does not certify anything by itself; certification covers your whole security program. What it does is satisfy a cluster of controls that auditors always ask about and, just as important, generate the evidence on its own.

Auditors work in two steps: show me the control, then prove it operated during the audit period. A WAF answers both.

What the auditor asks What the WAF provides Where it maps
How do you filter hostile traffic at the boundary? Managed rules, IP reputation, and geo rules in front of every web endpoint ISO 27001 Annex A network security controls; SOC 2 CC6.6 boundary protection
How do you limit brute-force access attempts? Rate-based rules on sign-in endpoints, enforced before the application ISO 27001 Annex A access and application controls; SOC 2 CC6.1
How do you monitor for attacks and anomalies? A log of every blocked request: when, from where, by which rule ISO 27001 Annex A monitoring and logging controls; SOC 2 CC7.1 and CC7.2
How do you use threat intelligence? Provider-maintained reputation lists and rule signatures, updated continuously ISO 27001 Annex A threat intelligence control; SOC 2 CC7.1
Prove it operated all period Retained logs plus a report showing the settings, when protection was on and in which mode, and what was blocked Evidence for both frameworks, and for customer security questionnaires
The WAF produces rule configuration, retained logs, and a report. These become evidence mapped to ISO 27001 Annex A controls and SOC 2 common criteria, which is what the auditor reviews.
The same protection that blocks attacks produces the audit evidence, with no separate tooling.

The practical effect shows up before any audit. Customer security questionnaires regularly include the line “Is the application protected by a WAF?” With one in place, that answer is yes, backed by logs rather than intent.

How this works on TagoIO

On TagoDeploy, TagoIO’s dedicated single-tenant deployment, this is packaged as Enhanced protection on each project’s Security page. Every project already includes Basic protection: its own AWS account and private network, HTTPS on Admin, TagoRUN, and the API, an encrypted database, and daily backups. Enhanced protection adds the WAF layer described in this post in front of Admin, TagoRUN, and the API: managed and reputation rules, sign-in rate limiting, IP and country block lists, a history of blocked requests kept for the period you choose, and a PDF report built for ISO 27001 and SOC 2 audits.

  • You pick the start mode. The turn-on dialog offers monitor mode or blocking right away, and blocking is never switched on for you. In monitor mode you review the requests that would have been blocked, then turn blocking on.
  • Cost shown up front. Billing is a fixed monthly fee plus a charge per million requests checked. Before you turn it on, the console estimates the monthly cost from your recent web and API traffic.
  • Fail open. If the load balancer cannot reach the firewall, it forwards requests to the project without inspection, so devices keep reporting.
  • Reversible. Going back to Basic takes a save and a deploy. Export the reports you need first, because the activity history does not carry over to Basic.

Details of TagoIO’s own certifications and security controls are published at security.tago.io.