If you've ever pasted a RouterOS .rsc export into a chat window or ticket system and wondered whether you just leaked a PPPoE password or left Winbox wide open on WAN — this is for you.

I operate a 6,000-subscriber regional ISP/WISP NOC. Over 7+ years I've seen the same misconfigurations brick towers, amplify DDoS, and leak credentials into vendor support tickets. The pattern is always the same: engineers export configs for review, someone spots a password=SuperSecretTowerPass99 in plaintext, or a allow-remote-requests=yes with no WAN drop rule, and we scramble.

So I built a scanner that runs entirely in your browser — zero uploads, zero network calls, strict Content-Security-Policy: connect-src 'none'. Drop an .rsc file, get a hardening patch you can paste into a terminal.

The 10 Failure Modes It Catches (ROS-001 through ROS-010)

ID Severity What It Means
ROS-001 CRITICAL Open DNS resolver on WAN — UDP/53 amplification reflector
ROS-002 CRITICAL Telnet/FTP/HTTP enabled, or Winbox/SSH without address= ACL
ROS-003 CRITICAL No default chain=input action=drop rule protecting the control plane
ROS-004 HIGH SNMP public/private community or missing addresses= ACL
ROS-005 HIGH Web Proxy, SOCKS, or unauthenticated BTest server enabled
ROS-006 HIGH Plaintext API (port 8728) instead of api-ssl with ACL
ROS-007 HIGH Neighbor discovery / MAC-Winbox allowed on all interfaces
ROS-008 MEDIUM Missing connection-state=invalid drop or fasttrack-connection
ROS-009 CRITICAL Cleartext passwords/preshared-keys in the export itself
ROS-010 MEDIUM No NTP, watchdog, or remote syslog on remote tower gear

Each finding includes the exact line, a one-line explanation, and a ready-to-paste RouterOS CLI fix block.

ROS-001: Open DNS Amplification — Before/After

Vulnerable export snippet:

/ip dns set allow-remote-requests=yes servers=8.8.8.8,1.1.1.1 /ip firewall filter add action=accept chain=input comment="allow established" connection-state=established,related 

Why it fails: allow-remote-requests=yes makes the router answer DNS queries from any interface. Without a WAN input drop on UDP/TCP 53, your tower becomes a DDoS reflector.

Hardening patch (paste into terminal):

/ip firewall filter add chain=input protocol=udp dst-port=53 in-interface-list=WAN action=drop comment="Drop WAN DNS" add chain=input protocol=tcp dst-port=53 in-interface-list=WAN action=drop comment="Drop WAN DNS TCP" 

RouterOS v6 vs v7 note: in-interface-list=WAN works on both. If you don't have interface lists defined, use in-interface=ether1-gateway (your actual WAN interface).

ROS-002: Exposed Management Services — Before/After

Vulnerable export snippet:

/ip service set telnet disabled=no set ftp disabled=yes set www disabled=no set ssh disabled=no set winbox disabled=no port=8291 

Why it fails: Telnet, FTP, and HTTP send credentials in cleartext. Winbox and SSH without address= ACL accept connections from any IP — including the internet if your WAN input drop is missing (ROS-003).

Hardening patch:

/ip service set telnet disabled=yes set ftp disabled=yes set www disabled=yes set winbox address=10.10.0.0/24 set ssh address=10.10.0.0/24 

Replace 10.10.0.0/24 with your actual NOC management subnet. If you manage from a single jump host, use /32.

ROS-003: Missing Default WAN Input Drop — The Silent Killer

Vulnerable state: No chain=input action=drop rule exists, or it's disabled, or it only matches specific ports.

Why it fails: Every service you enable in /ip service — including ones you didn't know existed — becomes reachable from WAN the moment it's turned on. This is how forgotten api or www ports stay exposed for years.

Hardening patch:

/ip firewall filter add chain=input connection-state=established,related action=accept comment="Accept established" add chain=input in-interface-list=!LAN action=drop comment="Drop all non-LAN input" 

Critical detail: Place the established,related accept before the drop. The !LAN syntax (v6.43+/v7) means "any interface not in the LAN list" — cleaner than maintaining a WAN list.

ROS-004: Public SNMP — Before/After

Vulnerable export snippet:

/snmp set enabled=yes contact="noc@example-wisp.net" /snmp community set [ find default=yes ] name=public addresses=0.0.0.0/0 

Why it fails: public community + 0.0.0.0/0 = anyone on the internet can walk your OIDs. On RouterOS this exposes interface counters, ARP tables, and sometimes wireless registration tables.

Hardening patch:

/snmp community set [ find default=yes ] name=noc_ro_v3_replace_me addresses=10.10.0.10/32 security=private 

Use SNMPv3 (security=private) with a restricted addresses= ACL pointing only to your monitoring server. Rotate the community string quarterly.

ROS-009: Cleartext Secrets in .rsc Exports — The One That Gets You

Vulnerable export snippet:

/ppp secret add name=sector-pppoe-01 password=SuperSecretTowerPass99 service=pppoe /interface wireless security-profiles set [ find default=yes ] wpa2-pre-shared-key=TowerPSK2024! 

Why it fails: You paste this export into a vendor ticket, a Slack channel, or a GitHub issue — now credentials are in someone else's logs forever. RouterOS does not redact by default.

The fix — never export without this flag:

/export hide-sensitive file=clean-audit-export 

This produces a .rsc where every password=, preshared-key=, secret=, wpa2-pre-shared-key= shows as ***HIDDEN*** or is omitted entirely. Make this muscle memory.

Ctrl+X Safe Mode: Your Undo Button

Before pasting any hardening patch on a production tower:

  1. Open Winbox/SSH terminal
  2. Press Ctrl+X — you'll see [Safe Mode] prefix on the prompt
  3. Paste the entire hardening block
  4. Verify: system logging print shows no errors, management access still works from your NOC IP
  5. Press Ctrl+X again to commit, or Ctrl+C to rollback everything

Safe Mode wraps all commands in a transaction. If you lock yourself out, the session times out and rolls back automatically (default 60s, configurable via /system watchdog).

Pro tip: On remote towers, set /system watchdog set watch-address=10.10.0.1 ping-timeout=1m automatic-supout=yes before touching firewall rules. If you brick access, the watchdog reboots and generates a supout.rif for post-mortem.

How the Scanner Works (Zero Server, Zero Upload)

The entire audit engine is a single ES module (mikrotik-engine.js) that:

  1. Parses RouterOS .rsc syntax — handles line continuations (\), section headers (/ip firewall filter), and inline comments
  2. Evaluates 10 deterministic rules against the AST — no heuristics, no ML, no false positives from "AI analysis"
  3. Generates a combined .rsc hardening patch with comments and Safe Mode reminder
  4. Runs in-browser via FileReader API — your config never leaves the tab

CSP Header: Content-Security-Policy: default-src 'self'; connect-src 'none'; script-src 'self' — the browser cannot make network requests even if compromised.

Test it now: https://pabloian92.github.io/isp-network-monitor/ — drag any .rsc file, get a score, grade, and patch in <200ms.

The Open-Source NOC Stack

This scanner is one piece of a multi-vendor monitoring daemon I run in production:

  • Repo: https://github.com/PabloIan92/isp-network-monitor
  • Monitors: MikroTik (RouterOS API/SSH), Ubiquiti (UniFi/UISP), GPON OLTs (SNMP)
  • Flap suppression: 3-strike debounce before alerting
  • Outputs: Telegram, n8n webhooks, Prometheus metrics, static status page
  • Deploy: Single Docker Compose file, runs on a $5 VPS or Raspberry Pi

No vendor lock-in. No per-device licensing. You own the data, the alerts, and the uptime.

When You Need It in Automation (CI/CD, Ansible, n8n)

For pipeline integration — PR checks on config repos, scheduled fleet audits, Ansible playbook gates — there's a standby MCP server on Apify:

Apify Actor: https://apify.com/pabloian92/mcp-isp-network-auditor

Cost: $0.05 per audit (pay-per-event, no subscription)

Input: { "rscContent": "...", "filename": "tower-04.rsc" }

Output: Same JSON report the browser scanner produces — score, grade, findings[], combinedFixRsc

# Example: audit all .rsc files in a Git repo before merge for f in configs/*.rsc; do apify call pabloian92/mcp-isp-network-auditor -i "{\"rscContent\": \"$(cat "$f" | jq -Rs .)\", \"filename\": \"$f\"}" done 

The MCP server runs the exact same mikrotik-engine.js — zero drift between local and automated audits.

What This Doesn't Catch (By Design)

  • Live firmware CVE patch levels (check /system package update check-for-updates manually)
  • BGP RPKI/ROV filter correctness
  • Dynamic interface list membership (DHCP clients, PPPoE servers)
  • Hardware health (CPU temp, voltage, SFP DOM)

Static .rsc analysis has hard boundaries. Use it as a gate, not a substitute for live monitoring.

Closing the Loop

  1. Export safely: /export hide-sensitive file=audit-$(date +%F).rsc
  2. Scan locally: Drag to https://pabloian92.github.io/isp-network-monitor/
  3. Review findings: Each shows line number, excerpt, explanation, fix block
  4. Apply in Safe Mode: Ctrl+X → paste patch → verify → Ctrl+X to commit
  5. Commit the clean export: Store audit-*.rsc in your config repo (Git history stays clean)
  6. Automate fleet-wide: Apify MCP Actor in your CI/CD or n8n workflow

No dashboards to log into. No agents to install. No data leaving your network.

Links:

Questions, edge cases, or ROS-011 suggestions — drop them below. I read every comment.