<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hans Study</title>
    <description>The latest articles on DEV Community by Hans Study (@hansstudy).</description>
    <link>https://dev.to/hansstudy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3949218%2F60c94993-db08-4321-b379-507b50d567ea.jpeg</url>
      <title>DEV Community: Hans Study</title>
      <link>https://dev.to/hansstudy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hansstudy"/>
    <language>en</language>
    <item>
      <title>Windows certificate inventory with PowerShell: RSA and ECC</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Sat, 05 Dec 2026 21:59:08 +0000</pubDate>
      <link>https://dev.to/hansstudy/windows-certificate-inventory-with-powershell-rsa-and-ecc-2391</link>
      <guid>https://dev.to/hansstudy/windows-certificate-inventory-with-powershell-rsa-and-ecc-2391</guid>
      <description>&lt;p&gt;Start with one service. Its Windows certificate store can contain an expired certificate, the replacement waiting for a maintenance window, and a certificate issued for an entirely different application. Which one does the client see?&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the machine store
&lt;/h2&gt;

&lt;p&gt;Open Windows PowerShell on a system you administer. This query reads public certificate properties from the local machine’s personal store.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ChildItem&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="nc"&gt;Cert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="nc"&gt;LocalMachine&lt;/span&gt;\&lt;span class="nc"&gt;My&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
    &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Subject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Thumbprint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;NotAfter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'PublicKeyAlgorithm'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Expression&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PublicKey&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Oid&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'IssuerSignatureAlgorithm'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Expression&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;SignatureAlgorithm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Value&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the columns separately. PublicKeyAlgorithm identifies the algorithm for the subject, while IssuerSignatureAlgorithm tells you how the issuer signed the certificate.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;PublicKeyAlgorithm value&lt;/th&gt;
&lt;th&gt;How to read it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1.2.840.113549.1.1.1&lt;/td&gt;
&lt;td&gt;RSA. Check the modulus length separately.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.2.840.10045.2.1&lt;/td&gt;
&lt;td&gt;EC. Check the parameters for the named curve.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep other identifiers in the inventory for review. Filtering to those two values at collection time would discard certificates you may need to investigate later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Windows check returned
&lt;/h2&gt;

&lt;p&gt;On December 5, 2026, the query ran on Windows 11 Pro build 26200.9974 with Windows PowerShell 5.1.&lt;/p&gt;

&lt;p&gt;The machine store returned one certificate with the following algorithm fields.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PublicKeyAlgorithm       IssuerSignatureAlgorithm
1.2.840.113549.1.1.1     1.2.840.113549.1.1.11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both identifiers refer to RSA here. The second specifies SHA-256 with RSA.&lt;/p&gt;

&lt;p&gt;The same query against the signed-in user’s personal store, &lt;code&gt;Cert:\CurrentUser\My&lt;/code&gt;, returned no entries. Keep the store path with the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify what the client sees
&lt;/h2&gt;

&lt;p&gt;Ask the service owner where TLS terminates. For a web application behind a load balancer, the browser may see the load balancer’s certificate while a second certificate authenticates the application behind it.&lt;/p&gt;

&lt;p&gt;Take the certificate configured for the listener and calculate its SHA-256 fingerprint. Connect through the intended client path using the correct hostname, then compare the SHA-256 fingerprint of the presented leaf certificate.&lt;/p&gt;

&lt;p&gt;A separate loopback test on the Windows host used a temporary RSA certificate issued for localhost. The client trusted that test certificate, verified the hostname, and negotiated TLS 1.3.&lt;/p&gt;

&lt;p&gt;The configured and presented fingerprints matched.&lt;/p&gt;

&lt;p&gt;The listener loaded its certificate from a file, so the machine-store query alone could not have identified that dependency.&lt;/p&gt;

&lt;p&gt;Record both observations in your &lt;a href="https://hans.study/build-a-cryptographic-inventory/" rel="noopener noreferrer"&gt;cryptographic inventory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A matching certificate identifies what the listener presented at the time of the test. To establish the negotiated TLS group, collect that information separately from the TLS connection.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Build a cryptographic inventory for post-quantum planning</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Fri, 04 Dec 2026 22:06:27 +0000</pubDate>
      <link>https://dev.to/hansstudy/build-a-cryptographic-inventory-for-post-quantum-planning-302k</link>
      <guid>https://dev.to/hansstudy/build-a-cryptographic-inventory-for-post-quantum-planning-302k</guid>
      <description>&lt;p&gt;Choose one essential service. Give each use of cryptography its own row as you follow a transaction from the person who starts it to the system that completes it. A certificate spreadsheet becomes useful for migration planning when someone can tell you what would stop working if you changed an entry.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hans.study/downloads/cryptographic-inventory-template.csv" rel="noopener noreferrer"&gt;Download the inventory worksheet (CSV)&lt;/a&gt;. The example row is fictional.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow one connection
&lt;/h2&gt;

&lt;p&gt;Consider a fictional supplier portal. A customer opens it in a browser, a hosted proxy accepts the connection, and the proxy opens another connection to the supplier’s application. The portal owner renews the origin certificate. The hosting provider manages the certificate the customer sees.&lt;/p&gt;

&lt;p&gt;Start at the browser. Record the service name, owner, client version, observation date, and where you observed the connection.&lt;/p&gt;

&lt;p&gt;Keep separate fields for the certificate’s public key, the certificate issuer’s signature, and the group negotiated for key exchange. Check the certificate first. Leave the third open until you have evidence from a handshake or a trusted connection log.&lt;/p&gt;

&lt;p&gt;Now follow the second connection. The application might use a different TLS library and serve several older integrations. Before changing the origin, ask the application owner which of those older clients must still be able to reconnect after the next maintenance window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record the decision behind the row
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Example entry for the fictional portal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dependency&lt;/td&gt;
&lt;td&gt;Hosted proxy connects to the supplier application&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business owner&lt;/td&gt;
&lt;td&gt;Portal service owner&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security purpose&lt;/td&gt;
&lt;td&gt;Authenticate the origin and protect traffic in transit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evidence&lt;/td&gt;
&lt;td&gt;Origin certificate available. Negotiated group awaiting verification.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compatibility question&lt;/td&gt;
&lt;td&gt;Which supported proxy and origin versions share the proposed group?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Next action&lt;/td&gt;
&lt;td&gt;Application owner to capture a staging connection and confirm the fallback configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For an archive, ask how long the contents must stay confidential.&lt;/p&gt;

&lt;p&gt;For a signed update, ask how long deployed equipment must keep accepting authentic releases. Those answers may put a rarely updated controller ahead of a busy web service with a short replacement cycle.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide what gets tested first
&lt;/h2&gt;

&lt;p&gt;Pick a row with a long service life, a named owner, and a dependency outside your control. Get the version in writing. Record whether the capability is available today, requires a different model, or has only a proposed delivery date. The joint vendor questionnaire gives you a starting point when the product team and the sales team have given you different answers about support for the model you own. &lt;a href="https://www.cyber.gov.au/publication/post-quantum-questions-to-ask-your-vendors" rel="noopener noreferrer"&gt;Australian Signals Directorate and partner agencies&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Agree on a test client, the transaction it must complete, and the evidence you will keep. Name the rollback owner. Keep that record with the change request so that the person authorizing the test knows which business service and which clients could be affected.&lt;/p&gt;

&lt;p&gt;If your inventory spans several suppliers and nobody owns the transition between them, bring a redacted row to a consultation. We can trace the dependency and scope the first compatibility review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hans.study/book/" rel="noopener noreferrer"&gt;Book a scoping call&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Supermarket fridge hacks and refrigeration alarm checks</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Thu, 03 Dec 2026 16:46:39 +0000</pubDate>
      <link>https://dev.to/hansstudy/supermarket-fridge-hacks-and-refrigeration-alarm-checks-1f00</link>
      <guid>https://dev.to/hansstudy/supermarket-fridge-hacks-and-refrigeration-alarm-checks-1f00</guid>
      <description>&lt;p&gt;In October, French supermarkets lost stock after a cyberattack caused fridges and freezers to warm up. A second wave followed on November 2. For the person responsible for a cold room overnight, one detail matters more than the headlines about the attacks on grocers across Europe. Who gets the alarm?&lt;/p&gt;

&lt;h2&gt;
  
  
  When did the fridge hacks happen?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://censys.com/wp-content/uploads/ARC_EuroFridge_SITREP-2026-11_Dark-2.pdf" rel="noopener noreferrer"&gt;Censys dates the French incident&lt;/a&gt; to the night of October 11 and describes further reports on November 2 from countries including Belgium, Ireland, and Sweden. Its internet survey measures exposure. Establishing how many stores lost stock would require records from the retailers whose refrigeration systems were affected during either of the two incidents.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.youtube.com/watch?v=RvpOzs6M3xM" rel="noopener noreferrer"&gt;November 20 BBC report&lt;/a&gt; covered work in the UK to protect the food chain. The UK government’s &lt;a href="https://www.gov.uk/government/statistics/united-kingdom-food-security-digest-2026/united-kingdom-food-security-digest-2026" rel="noopener noreferrer"&gt;November 26 food security digest&lt;/a&gt; also distinguishes the European incidents from the UK’s preventive work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the handoff at night
&lt;/h2&gt;

&lt;p&gt;Pick one cold room and sit down with the refrigeration contractor and the duty manager. Trace what happens between an independent temperature sensor detecting a problem and someone with a key arriving at the store.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Evidence to keep&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Can the store see the actual temperature if the controller gives a misleading reading?&lt;/td&gt;
&lt;td&gt;The independent sensor, where it reports, and who checks it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Does an alarm reach someone after closing?&lt;/td&gt;
&lt;td&gt;The timestamp on an approved test alert and the name of the person who acknowledged it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What if the first person misses the call?&lt;/td&gt;
&lt;td&gt;The backup contact and the time the escalation reached them during the exercise.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Use the approved alarm test function with the store and contractor present. Leave operating temperatures alone and have the food-safety lead handle stock decisions under the store’s existing procedure.&lt;/p&gt;

&lt;p&gt;I built a &lt;a href="https://hans.study/case-studies/emergency-notification/" rel="noopener noreferrer"&gt;three-campus emergency notification network&lt;/a&gt; with two network paths and tested what happened when one failed. Try the same principle overnight. Have the night manager show you the alert on the phone they carry and then confirm who would take over if that person were already on another call.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Has RSA-2048 been cracked? A November 2026 fact check</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Wed, 02 Dec 2026 12:35:37 +0000</pubDate>
      <link>https://dev.to/hansstudy/has-rsa-2048-been-cracked-a-november-2026-fact-check-3k6g</link>
      <guid>https://dev.to/hansstudy/has-rsa-2048-been-cracked-a-november-2026-fact-check-3k6g</guid>
      <description>&lt;p&gt;As of November 30, 2026, I could find no publicly verifiable demonstration that someone can routinely break properly generated RSA-2048 keys. If your VPN or a supplier’s firmware uses RSA, the first question is where those keys are used.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did Elon Musk say?
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;I’ve heard this from a few people&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That was &lt;a href="https://x.com/elonmusk/status/2127095392907248028" rel="noopener noreferrer"&gt;Elon Musk’s November 29 reply on X&lt;/a&gt;. He gave no test result that another researcher could verify.&lt;/p&gt;

&lt;p&gt;There is genuine mathematics in circulation too. A &lt;a href="https://github.com/google-research/google-research/blob/master/cogentic_research_papers/integer_factorization/README.md" rel="noopener noreferrer"&gt;Google Research paper on integer factorization&lt;/a&gt; gives a theoretical upper bound on how the work grows with the size of the number. It reports no measured time for factoring a properly generated 2,048-bit RSA challenge.&lt;/p&gt;

&lt;p&gt;One result that would change this assessment is the independently verified factorization of a fresh, independently generated 2,048-bit challenge whose secret factors were withheld. The hardware, time, and cost would tell an infrastructure team how widely the result might apply.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where does RSA appear on your network?
&lt;/h2&gt;

&lt;p&gt;Look at your VPN gateway. An RSA certificate can authenticate the gateway while a separate ephemeral exchange establishes the secrets that protect each session, so authenticating and encrypting are two different jobs. Someone able to forge the gateway’s signature could impersonate it. Reading previously recorded traffic would depend on how those sessions established their secrets.&lt;/p&gt;

&lt;p&gt;Firmware has a longer memory. A device may trust its manufacturer’s signatures for years after the last update, so ask the supplier how the device would receive a replacement trust anchor and who could approve that change.&lt;/p&gt;

&lt;p&gt;In my &lt;a href="https://hans.study/state-of-cyber-hygiene/" rel="noopener noreferrer"&gt;Ontario cyber hygiene study&lt;/a&gt;, I checked the public side of 4,450 businesses and recorded certificate problems visible to a visitor. The private keys and the systems that depend on them were outside the scope of that work.&lt;/p&gt;

&lt;p&gt;For your own inventory, record the service, algorithm, purpose, owner, and replacement procedure. Separate signing from establishing shared secrets.&lt;/p&gt;

&lt;p&gt;For example, &lt;a href="https://csrc.nist.gov/pubs/fips/203/final" rel="noopener noreferrer"&gt;NIST’s ML-KEM standard&lt;/a&gt; covers establishing a shared secret. A firmware verifier needs a signature migration plan of its own.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Domain renewal and recovery for Canadian small businesses</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Tue, 01 Dec 2026 04:52:33 +0000</pubDate>
      <link>https://dev.to/hansstudy/domain-renewal-and-recovery-for-canadian-small-businesses-33el</link>
      <guid>https://dev.to/hansstudy/domain-renewal-and-recovery-for-canadian-small-businesses-33el</guid>
      <description>&lt;p&gt;If your business email stopped working this morning, could someone still reach the company that renews your domain? A useful cyber hygiene check is to give a second authorized person the domain name and ask them to find the renewal date, the receipt, and a recovery contact they can reach without company email.&lt;/p&gt;

&lt;p&gt;I checked public DNS records and visited homepages for my &lt;a href="https://hans.study/state-of-cyber-hygiene/" rel="noopener noreferrer"&gt;study of 4,450 businesses in southwestern Ontario&lt;/a&gt;. Of the addresses checked across those seven regions, 359 failed to work when I visited and another 132 displayed a placeholder where a visitor might expect a business website. Parking can be intentional. Only the business or its registrar can establish whether a particular registration expired.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow the renewal receipt
&lt;/h2&gt;

&lt;p&gt;Start with the last paid invoice. The registrar manages the registration, the DNS provider directs traffic, and the web host serves the site. One supplier may do all three jobs. If your web designer pays the registrar, ask whose organization is listed as the registrant and who can authorize changes if the designer leaves.&lt;/p&gt;

&lt;p&gt;For a Canadian address ending in .ca, &lt;a href="https://www.cira.ca/en/ca-domains/register-your-ca/domain-name-life-cycle/" rel="noopener noreferrer"&gt;CIRA explains the registration and renewal cycle&lt;/a&gt;. Check your registrar’s payment deadline. If you use a generic domain such as .com and need to know when to expect a notice or whom to contact after expiry, &lt;a href="https://www.icann.org/resources/pages/domain-name-renewal-expiration-faqs-2018-12-07-en" rel="noopener noreferrer"&gt;ICANN’s renewal FAQ&lt;/a&gt; explains how reminders and expiry work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a record someone else can use
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Record&lt;/th&gt;
&lt;th&gt;What to check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Registration&lt;/td&gt;
&lt;td&gt;Business name, registrar, expiry date, and a named person responsible for renewal.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payment&lt;/td&gt;
&lt;td&gt;Auto-renew setting, current billing contact, and a reminder in the business calendar before the payment deadline.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recovery&lt;/td&gt;
&lt;td&gt;An approved contact outside the affected domain, a second authorized person, and the location of recovery material in the business password vault.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ask that second person to locate the registrar’s support channel and confirm access to the recovery mailbox with a harmless test message. Leave passwords in the vault. Date the record so the next person can see when someone last tested recovery, and repeat the check when the bookkeeper or web agency changes.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>A firewall rule set you can explain in one sitting</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Wed, 25 Nov 2026 23:12:38 +0000</pubDate>
      <link>https://dev.to/hansstudy/a-firewall-rule-set-you-can-explain-in-one-sitting-34b0</link>
      <guid>https://dev.to/hansstudy/a-firewall-rule-set-you-can-explain-in-one-sitting-34b0</guid>
      <description>&lt;p&gt;I have 1 test for a small shop's firewall. Can the person who runs it explain the rule set to an assessor in one sitting? If it can't be explained in one sitting, it can't be defended in one either.&lt;/p&gt;

&lt;p&gt;That sounds like a low bar. Most rule sets fail it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The blinky box
&lt;/h2&gt;

&lt;p&gt;MSPs love installing a branded firewall and telling the client the blinky box protects them. It doesn't. The blinky box protects nobody until it is configured, and it can carry every feature on the datasheet while doing nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a defensible rule set looks like
&lt;/h2&gt;

&lt;p&gt;Get a decent layer 3 gateway, &lt;a href="https://hans.study/flat-network-problem-cpcsc-level-1-small-shop/" rel="noopener noreferrer"&gt;segment the network&lt;/a&gt;, route between VLANs on purpose, and never permit any-to-any.&lt;/p&gt;

&lt;p&gt;Deny by default, allow by exception. That's &lt;a href="https://hans.study/cpcsc/requirements/system-and-communications-protection/" rel="noopener noreferrer"&gt;03.13.06&lt;/a&gt; in ITSP.10.171. Every rule that allows traffic is an exception somebody can name and justify, and a rule with no owner and no reason is a candidate for deletion.&lt;/p&gt;

&lt;p&gt;Segment by function, not by floor. A guest wifi that is a different SSID and nothing else is not segmentation. Guest and personal devices need their own SSID and VLAN, firewalled from production. I've seen a shop where employees' phones joined a wifi that was the same flat network as the CAD workstations and the CNC controllers. There was no rule between them because nobody had written one. Nobody broke a policy. The network grew that way.&lt;/p&gt;

&lt;p&gt;The other word to watch is "real." A VLAN with an any-any rule between segments is a diagram, not a separation. If the enclave is in a segment, the rules into that segment are the boundary, and those are the rules an assessor will read first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to bring to the assessment
&lt;/h2&gt;

&lt;p&gt;3 things, and they will ask for the rule set:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A logical topology diagram that matches the running network.&lt;/li&gt;
&lt;li&gt;The list of controls between a user and the enclave.&lt;/li&gt;
&lt;li&gt;The firewall rule set.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add DNS filtering. In Canada, CIRA DNS Firewall is the business service, and Canadian Shield is the free home product. Then lock down web access on the enclave to what the work needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Audit the configuration
&lt;/h2&gt;

&lt;p&gt;This is why configuration auditing matters. A rule set drifts. Temporary rules for a vendor or a test stay behind, and soon the rules are no longer the ones anybody reviewed.&lt;/p&gt;

&lt;p&gt;2 tools I point people to. rConfig is my push for network gear, because configurations can be diffed automatically and drift shows up on its own. Nipper is another option for auditing switch and firewall configurations. Either one gives you an arm's-length read of what someone else wrote.&lt;/p&gt;

&lt;p&gt;Pair the tools with a change process. Someone wants to change a firewall rule, so they submit a request, a named approver approves it, a window is set, and completion gets recorded. When an auditor asks if you do change management, "yes" is followed by "show me," and the answer is the request, the completion record, and the documented process they match.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the provider writes the rules
&lt;/h2&gt;

&lt;p&gt;If an MSP manages the firewall, ask for the rule set, in full, on request. Your IT provider shouldn't be assessing its own work, and any provider that hides behind "proprietary" or refuses configuration access is a red flag. Whoever operates the firewall, you need a copy of what is running and a quarterly review of it, as a deliverable.&lt;/p&gt;

&lt;p&gt;Read your own rule set this week. If you can't explain a rule, find its owner.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>If you can show me 6 months of restore tests, I'll buy you a coffee</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Wed, 18 Nov 2026 22:14:08 +0000</pubDate>
      <link>https://dev.to/hansstudy/if-you-can-show-me-6-months-of-restore-tests-ill-buy-you-a-coffee-59j0</link>
      <guid>https://dev.to/hansstudy/if-you-can-show-me-6-months-of-restore-tests-ill-buy-you-a-coffee-59j0</guid>
      <description>&lt;p&gt;When I walk a client through incident response, I usually pick ransomware, because it forces the whole chain. Pull the affected machine off the network and leave the power on, since powering down loses the memory-resident evidence and a reboot can trigger the second stage of some ransomware. Check the logs to see what left the network. Rebuild the machine. Then restore from backup.&lt;/p&gt;

&lt;p&gt;That last step is where I say something plainly. If you can show me 6 months of consistent restore testing under your own backup policy, followed to the letter, I'll buy you a coffee. I'm that confident most places don't have it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backups are a belief until you restore one
&lt;/h2&gt;

&lt;p&gt;Most shops have a backup job. It runs, it turns green, and somebody gets an email. That tells you the job ran. It doesn't tell you the data comes back, comes back complete, or comes back in a usable time.&lt;/p&gt;

&lt;p&gt;The only evidence that a backup works is a restore. The only evidence of a restore, to an assessor or to yourself in 18 months, is a record that it happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  The log most shops can't produce
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://hans.study/cpcsc/templates/backup-and-restore-test/" rel="noopener noreferrer"&gt;restore test log in my templates&lt;/a&gt; has 7 columns: date, system, restore point, method, result, time to restore, and who tested. The sample rows are a full VM restore of a file server and a file-level restore from a project share, with times next to each. Under the table goes the date of the next test and the backup policy the tests are measured against.&lt;/p&gt;

&lt;p&gt;No tooling. A spreadsheet in the evidence folder is enough.&lt;/p&gt;

&lt;p&gt;What makes it evidence is repetition and variety. 1 test proves it worked once. A quarterly cadence across different systems and restore methods proves the process runs, and it shows you drift. If the file server restores in 42 minutes in September and takes 4 hours in December, you learn that before you need it.&lt;/p&gt;

&lt;p&gt;This is the same test that applies across a whole compliance program: the policy says it happens, the log shows it did, and the gap between the two is where assessments fail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write a policy you will follow
&lt;/h2&gt;

&lt;p&gt;The coffee line has a trap built in: "under your own backup policy, followed to the letter." Most backup policies are aspirational. Daily offsite copies, quarterly restore tests, monthly verification. Then reality arrives, and the policy describes a company that doesn't exist.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://hans.study/tools/policy-builder/?policy=backup" rel="noopener noreferrer"&gt;My template policy&lt;/a&gt; is 3 copies, on 2 media types, with 1 offsite. That's 3-2-1. Write down which systems it covers, how often each copy is made, and how often you test, then pick a frequency you can sustain. A quarterly test that happens beats a monthly test that was done twice and abandoned.&lt;/p&gt;

&lt;p&gt;For a CPCSC shop, 3 specifics matter.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backups are in scope.&lt;/strong&gt; A backup of the drawings is a copy of Specified Information. Give the enclave its own backup job, and treat the backup server as inside the boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups are encrypted.&lt;/strong&gt; 03.13.08 requires encryption of Specified Information on servers, laptops, backups, and portable media alike.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Someone owns it.&lt;/strong&gt; If the MSP runs the backups, the responsibility matrix should list the restore test log as an MSP deliverable, quarterly, with the client keeping a copy. If it doesn't arrive, that is a finding about the MSP, and you want to see it first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Restore before you reconnect
&lt;/h2&gt;

&lt;p&gt;The recovery step in my incident response skeleton reads "restore from tested backups; verify before reconnecting." Tested is the operative word. A real incident is the worst time to learn how long a restore takes.&lt;/p&gt;

&lt;p&gt;Run the first test this month. Pick the system you would miss most, restore it to a spare location, time it, and write the row. If it fails, you found the problem on an ordinary day, which is the cheapest day to find it.&lt;/p&gt;

</description>
      <category>sysadmin</category>
      <category>security</category>
      <category>compliance</category>
      <category>infosec</category>
    </item>
    <item>
      <title>Vendor Remote Access to OT Without a Forgotten VPN</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Sat, 14 Nov 2026 19:23:41 +0000</pubDate>
      <link>https://dev.to/hansstudy/vendor-remote-access-to-ot-without-a-forgotten-vpn-3g1i</link>
      <guid>https://dev.to/hansstudy/vendor-remote-access-to-ot-without-a-forgotten-vpn-3g1i</guid>
      <description>&lt;p&gt;Give vendors access to a jump host in the industrial DMZ, not a route into the control network. Open it for a named person, a named target, and a time window. Require MFA to reach the jump host, record the session, and close it when the work ends.&lt;/p&gt;

&lt;p&gt;Most remote access problems I see are not exotic. A VPN account made for a commissioning job is still active 3 years later. A cellular router on a panel still has its default password. Nobody owns the list. CISA’s guidance on reducing OT cyber threats lists limiting exposure of OT to public networks and securing remote access among its primary mitigations, and NIST SP 800-82 Rev. 3 treats remote access as a boundary that needs its own controls.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; The vendor authenticates to a gateway with MFA.&lt;/li&gt;
&lt;li&gt; The gateway hands them a session on a jump host in the iDMZ (Level 3.5 in the &lt;a href="https://hans.study/purdue-model-in-practice-vs-on-paper/" rel="noopener noreferrer"&gt;Purdue model&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt; From the jump host, a firewall rule allows one inbound path to one named target, such as the engineering workstation.&lt;/li&gt;
&lt;li&gt; The session is recorded, and the recording is kept.&lt;/li&gt;
&lt;li&gt; The access window closes by itself.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The vendor’s own laptop never has an IP route to a PLC. If the vendor needs their programming software, install it on the engineering workstation or a controlled virtual machine behind the jump host. This is the remote access conduit in the &lt;a href="https://hans.study/iec-62443-zones-conduits-small-plant-example/" rel="noopener noreferrer"&gt;zones and conduits worked example&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The controls, and what each one stops
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Control&lt;/th&gt;
&lt;th&gt;What it stops&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Jump host in the DMZ&lt;/td&gt;
&lt;td&gt;A compromised vendor laptop reaching the plant directly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Per-person accounts&lt;/td&gt;
&lt;td&gt;Shared logins nobody can attribute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MFA&lt;/td&gt;
&lt;td&gt;Stolen or reused passwords&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time-bound access&lt;/td&gt;
&lt;td&gt;The forgotten account and the always-open tunnel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Session recording&lt;/td&gt;
&lt;td&gt;Disputes over what changed, and slow incident review&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One named target&lt;/td&gt;
&lt;td&gt;Lateral movement from the engineering host to everything else&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approval by the operator&lt;/td&gt;
&lt;td&gt;Surprise sessions during production&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Time-bound access works best when someone at the plant approves each session by phone or ticket. It is a small step, and it catches the unexpected login, which is the one you most want to catch.&lt;/p&gt;

&lt;h2&gt;
  
  
  View-only first
&lt;/h2&gt;

&lt;p&gt;Many support calls are diagnostic. Some jump host and remote access products can give a view-only session first, with a second approval for a session that can change logic. Not every tool supports this, so ask.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to ask the vendor
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Do you connect through our jump host, or do you require your own tunnel or modem?&lt;/li&gt;
&lt;li&gt; Are your technicians named, and do they use MFA?&lt;/li&gt;
&lt;li&gt; Which ports and protocols do you need, and to which devices?&lt;/li&gt;
&lt;li&gt; What remote support tools run on your laptops, and who patches them?&lt;/li&gt;
&lt;li&gt; Do you keep copies of our project files, and where are they stored?&lt;/li&gt;
&lt;li&gt; How do you tell us if you suspect your own environment was compromised?&lt;/li&gt;
&lt;li&gt; Do your practices align with IEC 62443-2-4 for service providers?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a vendor insists on a permanent cellular modem inside a panel, record it as an exception with an owner and a review date. Do not let it go unrecorded.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the vendor pushes back
&lt;/h2&gt;

&lt;p&gt;Some vendors want their own tunnel because it is how they support every customer. That is a reasonable thing to say and a poor reason to accept it. Offer the jump host, a test window, and a named contact on your side. A vendor that cannot work through a customer-controlled gateway is worth recording as a supplier risk, with an owner and a review date.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardening the jump host
&lt;/h2&gt;

&lt;p&gt;Treat it as a sacrificial, well-watched system. Patch it, keep it off the business domain if you can, disable clipboard and file transfer unless the job needs them, and send its logs somewhere the vendor cannot reach. Block outbound internet from it except what the gateway needs.&lt;/p&gt;

&lt;p&gt;Remote access also leaves a trail you can use. Pair it with &lt;a href="https://hans.study/ot-asset-inventory-without-active-scanning/" rel="noopener noreferrer"&gt;passive monitoring and an inventory&lt;/a&gt; so a session that touches an unexpected device shows up.&lt;/p&gt;

&lt;p&gt;The wider set of controls is in &lt;a href="https://hans.study/ot-network-security-controls/" rel="noopener noreferrer"&gt;Security controls for OT networks that hold up in production&lt;/a&gt;, and the site overview is on &lt;a href="https://hans.study/industrial-ot-networks/" rel="noopener noreferrer"&gt;industrial OT networks&lt;/a&gt;. The boundary design is taught in &lt;a href="https://hans.study/training/hardening-control-networks/" rel="noopener noreferrer"&gt;Hardening Control Networks&lt;/a&gt; and covered in the &lt;a href="https://hans.study/learning/ot-networks-level-1/" rel="noopener noreferrer"&gt;free OT networks course&lt;/a&gt;. The &lt;a href="https://hans.study/advisory/ot-it-convergence/" rel="noopener noreferrer"&gt;OT and IT convergence advisory&lt;/a&gt; covers the organizational side.&lt;/p&gt;

&lt;p&gt;If you want help designing or reviewing a vendor access path, see &lt;a href="https://hans.study/book/" rel="noopener noreferrer"&gt;/book/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>The Purdue Model in Practice Versus on Paper</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Fri, 13 Nov 2026 20:57:32 +0000</pubDate>
      <link>https://dev.to/hansstudy/the-purdue-model-in-practice-versus-on-paper-1lea</link>
      <guid>https://dev.to/hansstudy/the-purdue-model-in-practice-versus-on-paper-1lea</guid>
      <description>&lt;p&gt;The Purdue model is a layered way to describe an industrial network, from the process at Level 0 up to the enterprise at Level 5. Real plants blur it. The fix that follows the model is an industrial DMZ at Level 3.5, with nothing on the business side opening a session into the plant.&lt;/p&gt;

&lt;p&gt;The levels, briefly. Level 0 is sensors and actuators. Level 1 is controllers such as PLCs and RTUs. Level 2 is supervision, meaning HMIs, SCADA, and engineering workstations. Level 3 is operations management, including historians, batch, and MES. Level 4 is site business systems, and Level 5 is the enterprise. The &lt;a href="https://hans.study/learning/ot-networks-level-1/" rel="noopener noreferrer"&gt;free OT course&lt;/a&gt; walks through each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where plants blur the levels
&lt;/h2&gt;

&lt;p&gt;Paper diagrams show clean layers. Sites show things like these.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; One flat network carries Level 1 through Level 3, so the historian and the PLCs share a broadcast domain.&lt;/li&gt;
&lt;li&gt; The engineering workstation is also the vendor’s remote access point and somebody’s email machine.&lt;/li&gt;
&lt;li&gt; An MES or reporting server reads PLC tags directly from Level 3 and is also reachable from the business network.&lt;/li&gt;
&lt;li&gt; A cellular router or wireless link connects a remote station straight to a cloud portal, skipping every level.&lt;/li&gt;
&lt;li&gt; Smart drives, cameras, and meters on the plant network have web interfaces and run firmware nobody tracks.&lt;/li&gt;
&lt;li&gt; A single firewall holds the business and the plant on two interfaces with a broad allow rule between them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of this is unusual, and it does not mean the model is wrong. It means the model describes intent, and the plant has a history.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Level 3.5 iDMZ does
&lt;/h2&gt;

&lt;p&gt;The industrial DMZ is a controlled network between Level 3 and Level 4. It was not in the original model. It is where the brokered services live.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lives in the iDMZ&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Jump host or remote access gateway&lt;/td&gt;
&lt;td&gt;Outside sessions end here, not in the plant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Historian replica&lt;/td&gt;
&lt;td&gt;The business reads a copy, not the plant source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch and antivirus update servers&lt;/td&gt;
&lt;td&gt;Updates are staged and then pushed in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File transfer staging&lt;/td&gt;
&lt;td&gt;Files cross in a controlled, scanned way&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The rule is that no session crosses it end to end. The business side connects in, the plant side connects out, and the DMZ host terminates both. A compromise of the business network lands in the DMZ rather than at the controllers. For the access side of this, see &lt;a href="https://hans.study/vendor-remote-access-ot-without-forgotten-vpn/" rel="noopener noreferrer"&gt;Vendor remote access to OT without the forgotten VPN&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the blur matters
&lt;/h2&gt;

&lt;p&gt;Each blurred level is a path a mistake or an attacker can use. A shared engineering workstation means one phished mailbox can reach the programming tools. A flat Level 1 to Level 3 network means a heavy historian query can load the same switch that carries controller traffic. Neither needs a sophisticated attacker, only an ordinary bad day. Naming the blur is how you decide which one to fix before the next outage window.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to fix first
&lt;/h2&gt;

&lt;p&gt;Order matters, because some fixes make the next one possible.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Inventory the devices, passively. See &lt;a href="https://hans.study/ot-asset-inventory-without-active-scanning/" rel="noopener noreferrer"&gt;Building an OT asset inventory without active scanning&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt; Find every path between the business network and the plant, including modems and vendor tunnels.&lt;/li&gt;
&lt;li&gt; Replace those paths with a DMZ. Even a small one beats a direct allow rule.&lt;/li&gt;
&lt;li&gt; Separate the engineering workstation from general use.&lt;/li&gt;
&lt;li&gt; Split Level 1 from Levels 2 and 3 with a firewall that knows the protocols in use.&lt;/li&gt;
&lt;li&gt; Add passive monitoring so you notice what changes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Use zones and conduits to finish the job
&lt;/h2&gt;

&lt;p&gt;Purdue tells you the layers. IEC 62443-3-2 tells you how to group assets into zones and name the conduits between them, including those that do not fit a layer, such as the cellular link. A worked small-site version is in &lt;a href="https://hans.study/iec-62443-zones-conduits-small-plant-example/" rel="noopener noreferrer"&gt;IEC 62443 zones and conduits for a small plant&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Do not redraw the whole network on paper before changing anything. A plant that moves its vendor access and historian copy into a DMZ has improved more than one that has a perfect diagram and the same flat network.&lt;/p&gt;

&lt;p&gt;The broader controls are covered in &lt;a href="https://hans.study/ot-network-security-controls/" rel="noopener noreferrer"&gt;Security controls for OT networks that hold up in production&lt;/a&gt;. See also &lt;a href="https://hans.study/industrial-ot-networks/" rel="noopener noreferrer"&gt;industrial OT networks&lt;/a&gt;, the &lt;a href="https://hans.study/advisory/ot-it-convergence/" rel="noopener noreferrer"&gt;OT and IT convergence advisory&lt;/a&gt;, and the training course &lt;a href="https://hans.study/training/hardening-control-networks/" rel="noopener noreferrer"&gt;Hardening Control Networks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want your site reviewed against this list, see &lt;a href="https://hans.study/book/" rel="noopener noreferrer"&gt;/book/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>OT Asset Inventory Without Active Scanning</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Thu, 12 Nov 2026 21:32:27 +0000</pubDate>
      <link>https://dev.to/hansstudy/ot-asset-inventory-without-active-scanning-1j3h</link>
      <guid>https://dev.to/hansstudy/ot-asset-inventory-without-active-scanning-1j3h</guid>
      <description>&lt;p&gt;You can build a usable OT inventory without sending a single packet at a controller. Combine passive traffic monitoring, switch MAC and port tables, the engineering project files, and a physical walk-down, then reconcile them in one list. Each source misses things the others catch.&lt;/p&gt;

&lt;p&gt;An inventory comes first because you cannot segment, patch, or monitor what you cannot name. The &lt;a href="https://hans.study/iec-62443-zones-conduits-small-plant-example/" rel="noopener noreferrer"&gt;zones and conduits worked example&lt;/a&gt; assumes you have one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why active scanning is a risk
&lt;/h2&gt;

&lt;p&gt;An IT vulnerability scanner sends many probes to many ports quickly. Some older PLCs, drives, and embedded devices have small network stacks and may respond badly to unexpected packets. Effects range from a slowed scan cycle and dropped connections to a device fault. NIST SP 800-82 Rev. 3 notes that active scans may cause device instability or interfere with the device process state. The outcome depends on the device and firmware, so the safe default is not to test it on production.&lt;/p&gt;

&lt;p&gt;Active methods are not forbidden. They are something you choose, with a test unit, a window, and the vendor’s agreement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 1, passive monitoring
&lt;/h2&gt;

&lt;p&gt;Connect a monitoring sensor to a SPAN port or a network tap on the switch that carries control traffic. It listens only. Over days it learns which addresses talk and which protocols they use, and often the vendor, model, and firmware from the protocol exchanges themselves.&lt;/p&gt;

&lt;p&gt;Known protocol ports help you recognize what you are seeing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Protocol&lt;/th&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Modbus/TCP&lt;/td&gt;
&lt;td&gt;502/TCP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DNP3&lt;/td&gt;
&lt;td&gt;20000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EtherNet/IP&lt;/td&gt;
&lt;td&gt;44818/TCP, 2222/UDP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Siemens S7&lt;/td&gt;
&lt;td&gt;102/TCP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OPC UA&lt;/td&gt;
&lt;td&gt;4840/TCP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BACnet/IP&lt;/td&gt;
&lt;td&gt;47808/UDP&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Place the sensor where the traffic passes. A sensor on the wrong switch sees nothing, and a single sensor at the top will not see traffic between two devices on the same access switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 2, switch tables
&lt;/h2&gt;

&lt;p&gt;Managed switches already know who is plugged in. The MAC address table, the ARP table on a router or layer 3 switch, and LLDP neighbour data give you addresses, port numbers, and sometimes device names. A read-only query to your own switch is far gentler than probing the end devices. Match the MAC prefix to a vendor and you have a first guess at what the device is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 3, engineering project files
&lt;/h2&gt;

&lt;p&gt;PLC and HMI project files list I/O modules, network configuration, device IP addresses, and the other controllers each program talks to. They are some of the best inventory sources you have, and they cost nothing to read. Copy them offline and open them on the engineering workstation or a test machine. This also tells you whether a current backup exists, which is a finding on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 4, the walk-down
&lt;/h2&gt;

&lt;p&gt;Walk the plant with a clipboard or tablet. Photograph nameplates, record serial numbers and firmware shown on the display, note unmanaged switches in cabinets, and look for the cellular router, the USB stick, and the laptop that was left plugged in. Passive tools do not see a device that is powered but silent, or a serial link with no Ethernet at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reconcile into one list
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; Start with the project files, since they say what should exist.&lt;/li&gt;
&lt;li&gt; Add what passive monitoring and switch tables show.&lt;/li&gt;
&lt;li&gt; Walk down and resolve the differences.&lt;/li&gt;
&lt;li&gt; Flag unknown devices and ask the operators about them before you assume the worst.&lt;/li&gt;
&lt;li&gt; Assign an owner to every line.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The fields to record are in the FAQ above. Add the zone each device belongs to once the design exists. CISA’s asset inventory guidance and ISA/IEC 62443 both treat an up-to-date inventory as a basis for the rest of the program.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with it
&lt;/h2&gt;

&lt;p&gt;Use it to find end-of-life devices, plan a patch or compensating control, spot paths into the plant such as &lt;a href="https://hans.study/vendor-remote-access-ot-without-forgotten-vpn/" rel="noopener noreferrer"&gt;vendor remote links&lt;/a&gt;, and compare the network against the layers in &lt;a href="https://hans.study/purdue-model-in-practice-vs-on-paper/" rel="noopener noreferrer"&gt;The Purdue model in practice versus on paper&lt;/a&gt;. It also gives you the baseline that &lt;a href="https://hans.study/ot-network-security-controls/" rel="noopener noreferrer"&gt;passive monitoring&lt;/a&gt; alerts against.&lt;/p&gt;

&lt;p&gt;More background is on &lt;a href="https://hans.study/industrial-ot-networks/" rel="noopener noreferrer"&gt;industrial OT networks&lt;/a&gt; and in the &lt;a href="https://hans.study/advisory/ot-it-convergence/" rel="noopener noreferrer"&gt;OT and IT convergence advisory&lt;/a&gt;. The monitoring lesson is in the &lt;a href="https://hans.study/learning/ot-networks-level-1/" rel="noopener noreferrer"&gt;free OT networks course&lt;/a&gt;, and the hands-on version is &lt;a href="https://hans.study/training/hardening-control-networks/" rel="noopener noreferrer"&gt;Hardening Control Networks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you would like a hand building the first inventory, see &lt;a href="https://hans.study/book/" rel="noopener noreferrer"&gt;/book/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Door credentials for a defense supplier, and the held-open alarm</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Wed, 11 Nov 2026 21:31:01 +0000</pubDate>
      <link>https://dev.to/hansstudy/door-credentials-for-a-defense-supplier-and-the-held-open-alarm-1hmc</link>
      <guid>https://dev.to/hansstudy/door-credentials-for-a-defense-supplier-and-the-held-open-alarm-1hmc</guid>
      <description>&lt;p&gt;Most small defense suppliers have a lock on the server room door and a short list of people who hold a key. That list is the control, and it is also where the control fails, because keys leave no record. Nobody can tell you who opened the door last Tuesday.&lt;/p&gt;

&lt;p&gt;Physical access authorizations (03.10.01) and physical access control (03.10.07) are both in &lt;a href="https://hans.study/cpcsc/level-1/" rel="noopener noreferrer"&gt;CPCSC Level 1&lt;/a&gt;. An assessor wants a short list of who may enter, and some way to show that the list is what the door enforces.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I push access control over keys
&lt;/h2&gt;

&lt;p&gt;Keys work. I recommend access control because it produces a record. Card or biometric beats a PIN, since a PIN can be known and a finger is harder to borrow. Card plus PIN belongs on the doors that matter, such as the server room and secure storage.&lt;/p&gt;

&lt;p&gt;The rest is simple and auditors like it. Employee ID on a navy lanyard, screened contractors on yellow, visitors on red, and a card design that shows division at a glance. Exit processes that pull card access the same day the person leaves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The credential floor
&lt;/h2&gt;

&lt;p&gt;For credentials, I set the floor at 13.56 MHz Seos or iCLASS SE with custom keys, using HID's Elite program or equivalent, not the standard keyset. Use a corporate format such as HID Corporate 1000 or 2000.&lt;/p&gt;

&lt;p&gt;Custom keys matter because of what happened in February 2024. HID's advisories, including CVE-2024-23806, showed that keys could be pulled from iCLASS SE configuration cards and encoders. The standard keyset is the one everybody has, so custom keys are the floor.&lt;/p&gt;

&lt;p&gt;Three more settings follow from that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Current firmware on the readers&lt;/strong&gt;, with configuration-card changes locked out, so a card in the wrong hands can't reconfigure a door.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Legacy and 125 kHz technologies disabled at the reader.&lt;/strong&gt; A reader that still accepts older technologies can be pushed down to them, so turn them off to stop the downgrade attack.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OSDP Secure Channel between reader and controller.&lt;/strong&gt; It protects the link between the two. Readers and controllers sit on your network, so &lt;a href="https://hans.study/physical-security-network-hardening/" rel="noopener noreferrer"&gt;harden that network too&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put all of it in the installer's scope of work, in writing, before the readers go on the wall.&lt;/p&gt;

&lt;h2&gt;
  
  
  Match it to what you make
&lt;/h2&gt;

&lt;p&gt;Match the controls to what you make. A washer supplier on a defense program is a defense contractor, and doesn't need a scramble pad. Anti-passback and tailgating controls scale from a sign to a turnstile to a two-door vestibule. The point is that the choice was made on purpose and can be explained.&lt;/p&gt;

&lt;h2&gt;
  
  
  Held-open alarms
&lt;/h2&gt;

&lt;p&gt;A held-open alarm fires when a door stays open longer than it should. On most access controllers it's a checkbox.&lt;/p&gt;

&lt;p&gt;It catches what the credential can't: the door that was opened legitimately and then left open. A propped door doesn't care how good your cards are, and the alarm is how you find out.&lt;/p&gt;

&lt;p&gt;Put held-open and forced-door alarms on the enclave doors, make sure someone receives them, and keep a record that they were tested. The record is the evidence. An alarm that nobody receives is a setting, not a control.&lt;/p&gt;

&lt;p&gt;The same goes for cameras. Cover the entries and main routes, and verify recording this month. Know the difference between a camera that shows someone is there and one that identifies a face. Thermal doesn't identify. Bispectral can. Put at least 1 identification-quality camera at the enclave entry.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>compliance</category>
      <category>networking</category>
    </item>
    <item>
      <title>IEC 62443 Zones and Conduits: Small Plant Example</title>
      <dc:creator>Hans Study</dc:creator>
      <pubDate>Wed, 11 Nov 2026 21:30:30 +0000</pubDate>
      <link>https://dev.to/hansstudy/iec-62443-zones-and-conduits-small-plant-example-1cdp</link>
      <guid>https://dev.to/hansstudy/iec-62443-zones-and-conduits-small-plant-example-1cdp</guid>
      <description>&lt;p&gt;A zone is a group of assets that share the same security requirements. A conduit is the controlled path between two zones, and it carries only what you have named. For a site with 3 PLCs, an HMI, a historian, an engineering workstation, and a vendor remote link, 5 zones and 5 conduits is a reasonable starting design.&lt;/p&gt;

&lt;p&gt;The standard behind this is IEC 62443-3-2, which covers risk assessment and the partitioning of a system into zones and conduits. IEC 62443-3-3 supplies the system requirements and security levels (SL) you check the result against. The vocabulary is covered in the &lt;a href="https://hans.study/learning/ot-networks-level-1/" rel="noopener noreferrer"&gt;free OT networks course&lt;/a&gt;, and the wider controls are in &lt;a href="https://hans.study/ot-network-security-controls/" rel="noopener noreferrer"&gt;Security controls for OT networks that hold up in production&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The example site
&lt;/h2&gt;

&lt;p&gt;One building, one process line. 3 PLCs run the process, one HMI shows it to operators, a historian records tags, and an engineering workstation holds the PLC project files. A vendor logs in occasionally to support one PLC. The site has a business network next door for email and accounting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The zones
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Zone&lt;/th&gt;
&lt;th&gt;Assets&lt;/th&gt;
&lt;th&gt;Why it is separate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Control&lt;/td&gt;
&lt;td&gt;3 PLCs, their I/O&lt;/td&gt;
&lt;td&gt;Highest consequence if altered; fewest legitimate talkers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Supervisory&lt;/td&gt;
&lt;td&gt;HMI&lt;/td&gt;
&lt;td&gt;Operators need it; it talks to the PLCs constantly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Engineering&lt;/td&gt;
&lt;td&gt;Engineering workstation&lt;/td&gt;
&lt;td&gt;Can change PLC logic, so it needs the tightest access control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operations data&lt;/td&gt;
&lt;td&gt;Historian&lt;/td&gt;
&lt;td&gt;Receives data from the plant and is read by the business&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remote access&lt;/td&gt;
&lt;td&gt;Jump host in an industrial DMZ&lt;/td&gt;
&lt;td&gt;The only place outside sessions terminate&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The business network sits outside these zones. It is untrusted from the plant’s point of view.&lt;/p&gt;

&lt;h2&gt;
  
  
  The conduits and their rules
&lt;/h2&gt;

&lt;p&gt;Write each rule as who, to what, over which port, and in which direction.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Supervisory to Control. The HMI may poll the PLCs on the protocol they use, for example EtherNet/IP on 44818/TCP and 2222/UDP, Modbus/TCP on 502, or S7 on 102. Nothing else.&lt;/li&gt;
&lt;li&gt; Engineering to Control. The engineering workstation may program the PLCs, and only when someone has switched it on. Keep it powered off or disconnected from the plant network when not in use if your process allows.&lt;/li&gt;
&lt;li&gt; Control to Operations data. The historian collects tags from the PLCs or from the HMI server. Prefer the historian initiating the connection, and read only.&lt;/li&gt;
&lt;li&gt; Operations data to business. Replicate historian data to a copy in the DMZ, and let the business read the copy. No business machine opens a session into the plant.&lt;/li&gt;
&lt;li&gt; Remote access to Engineering and Supervisory. The vendor connects to the jump host, and the jump host connects inward to one named target. The vendor’s laptop never gets a route to the PLC. How to build that is in &lt;a href="https://hans.study/vendor-remote-access-ot-without-forgotten-vpn/" rel="noopener noreferrer"&gt;Vendor remote access to OT without the forgotten VPN&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every conduit ends with a deny rule that logs. The log is how you find the device nobody told you about.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the security level means here
&lt;/h2&gt;

&lt;p&gt;IEC 62443 assigns each zone a target security level from SL 1 to SL 4, based on the kind of attacker you are defending against. SL 1 is protection against casual or coincidental violation. SL 2 is intentional violation using simple means and low resources. A small plant often lands on SL 2 for the control and engineering zones. That is a judgement made in the 3-2 risk assessment, and it should be written down with the reasoning. Component requirements live in 62443-4-2, and the supplier side is in 62443-2-4.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to build first
&lt;/h2&gt;

&lt;p&gt;If the plant is flat today, do not redraw everything in a weekend.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Put the vendor link behind a jump host.&lt;/li&gt;
&lt;li&gt; Move the historian copy into a DMZ so the business stops reaching the plant.&lt;/li&gt;
&lt;li&gt; Pull the engineering workstation into its own zone.&lt;/li&gt;
&lt;li&gt; Then split the HMI from the PLCs with a firewall that understands the protocols in use.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An &lt;a href="https://hans.study/ot-asset-inventory-without-active-scanning/" rel="noopener noreferrer"&gt;asset inventory&lt;/a&gt; comes before any of it, because you cannot draw a zone around a device you do not know about. The model these zones map onto is discussed in &lt;a href="https://hans.study/purdue-model-in-practice-vs-on-paper/" rel="noopener noreferrer"&gt;The Purdue model in practice versus on paper&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this goes wrong
&lt;/h2&gt;

&lt;p&gt;Zones drawn on a slide but not enforced by a firewall or managed switch are labels. Conduits with “any” in the port column are the same. And a flat VLAN with a firewall rule that says “OT to OT allow” has the zones in name only.&lt;/p&gt;

&lt;p&gt;For the broader picture see &lt;a href="https://hans.study/industrial-ot-networks/" rel="noopener noreferrer"&gt;industrial OT network security&lt;/a&gt; and the &lt;a href="https://hans.study/advisory/ot-it-convergence/" rel="noopener noreferrer"&gt;OT and IT convergence advisory&lt;/a&gt;. A hands-on version of this exercise is taught in &lt;a href="https://hans.study/training/hardening-control-networks/" rel="noopener noreferrer"&gt;Hardening Control Networks&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Want a second pair of eyes on your zone design? See &lt;a href="https://hans.study/book/" rel="noopener noreferrer"&gt;/book/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>security</category>
      <category>cybersecurity</category>
      <category>sysadmin</category>
    </item>
  </channel>
</rss>
