<?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: Rocky</title>
    <description>The latest articles on DEV Community by Rocky (@rockyyy).</description>
    <link>https://dev.to/rockyyy</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%2F4026445%2F94b46dbb-5b45-421a-be13-61cb9779ec88.jpg</url>
      <title>DEV Community: Rocky</title>
      <link>https://dev.to/rockyyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rockyyy"/>
    <language>en</language>
    <item>
      <title>Cracking a weak JWT secret with hashcat, and the fix</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Sat, 05 Dec 2026 16:15:43 +0000</pubDate>
      <link>https://dev.to/rockyyy/cracking-a-weak-jwt-secret-with-hashcat-and-the-fix-4jm</link>
      <guid>https://dev.to/rockyyy/cracking-a-weak-jwt-secret-with-hashcat-and-the-fix-4jm</guid>
      <description>&lt;p&gt;A JWT can be attacked entirely offline. The server never sees the attempts, so there is no failed-login count to watch and nothing to lock out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why HS256 allows it
&lt;/h2&gt;

&lt;p&gt;An HS256 token is signed with a single shared secret. The same secret that creates the signature also checks it. If you have one valid token, you have a target to test guesses against on your own machine.&lt;/p&gt;

&lt;p&gt;A token looks like three base64url parts joined by dots: header, payload, signature. The signature is an HMAC over the first two parts. Guess the key, recompute the HMAC, compare. Match means you found it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The attack
&lt;/h2&gt;

&lt;p&gt;Save the full token on one line in &lt;code&gt;token.txt&lt;/code&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;hashcat -m 16500 token.txt wordlist.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mode 16500 is JWT. With a wordlist such as rockyou, a secret that is a common word, a product name or a default like &lt;code&gt;secret&lt;/code&gt; comes back quickly. Once recovered, build a new token with the claims you want, for instance &lt;code&gt;"role": "admin"&lt;/code&gt;, and sign it with the recovered key. The API checks the signature, finds it valid, and trusts the claims.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes a secret fall
&lt;/h2&gt;

&lt;p&gt;Hashcat does not do anything clever here. It hashes candidates at high speed and compares. So the risk tracks the size of the space the secret came from. A word from a leaked password list is a handful of seconds of work. A secret made of a company name plus the year is not much better, because rule-based mangling covers those patterns. The only property that helps is real randomness and length, which is why generated keys beat chosen ones every time.&lt;/p&gt;

&lt;p&gt;You can also check your own services before an attacker does. Pull a token from a test environment, run it through hashcat with a small list of your own product names and defaults, and see whether anything matches. If it does, rotate the secret first and ask how it was picked second.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Generate the secret from a secure random source. Thirty-two bytes is a sensible minimum:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;openssl rand -base64 32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not type it, do not derive it from the product name, and do not commit it. Store it in a secrets manager or the environment, and rotate it when someone who knew it leaves.&lt;/p&gt;

&lt;p&gt;If you can change the design, use RS256 or ES256. The signing key stays with the issuer, and every verifying service only gets the public key, so a compromised verifier cannot mint tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  A limit worth knowing
&lt;/h2&gt;

&lt;p&gt;A failed crack run does not prove the token is safe. It only suggests the secret is not in your wordlist. Other mistakes, such as accepting &lt;code&gt;alg: none&lt;/code&gt; or not checking expiry, need their own tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise it
&lt;/h2&gt;

&lt;p&gt;Codelivly has a free &lt;a href="https://codelivly.com/labs/weak-jwt-secret" rel="noopener noreferrer"&gt;weak JWT secret lab&lt;/a&gt; where you recover a common-word key, forge an admin token and enter the admin console. If you want the wider set of API attacks afterwards, the &lt;a href="https://resources.codelivly.com/product/hacking-your-first-apis/" rel="noopener noreferrer"&gt;API hacking book&lt;/a&gt; is a 227-page hands-on guide.&lt;/p&gt;

</description>
      <category>security</category>
      <category>jwt</category>
      <category>api</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Read the Android manifest before you open a proxy</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Sat, 05 Dec 2026 00:29:35 +0000</pubDate>
      <link>https://dev.to/rockyyy/read-the-android-manifest-before-you-open-a-proxy-1j89</link>
      <guid>https://dev.to/rockyyy/read-the-android-manifest-before-you-open-a-proxy-1j89</guid>
      <description>&lt;p&gt;Most Android pentest write-ups start with a proxy and a hooking framework. The manifest is a faster place to begin, and it is already on your disk once you have the APK.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unpack the app
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apktool d app.apk -o app_out
cat app_out/AndroidManifest.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;apktool turns the binary manifest into readable XML. Nothing runs yet. You are reading what the developer declared.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check one: debuggable
&lt;/h2&gt;

&lt;p&gt;Search the application tag for &lt;code&gt;android:debuggable&lt;/code&gt;. If a release build sets it to true, this works on a normal device:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adb shell run-as com.example.shop
ls databases shared_prefs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;run-as&lt;/code&gt; only works for debuggable apps, which is why the flag matters. You land in the app's private data directory with no root. Local SQLite files, preferences and cached tokens are readable. Finding this takes seconds and it is a legitimate report line: a release build should not ship it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check two: exported components
&lt;/h2&gt;

&lt;p&gt;Search for &lt;code&gt;android:exported="true"&lt;/code&gt;. Each activity, service, receiver and provider with that value can be called by any other app on the device.&lt;/p&gt;

&lt;p&gt;Write the list down, then test each entry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adb shell am start -n com.example.shop/.AdminActivity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ask the same question every time. Does this screen check that the user is logged in? Does it show data a stranger should not see? For content providers, query the URI and read what comes back.&lt;/p&gt;

&lt;p&gt;An exported component is only a lead. The launcher activity is meant to be exported, and plenty of others are fine. Your job is sorting the ones that should have been private from the ones that were meant to be public.&lt;/p&gt;

&lt;h2&gt;
  
  
  Content providers deserve their own pass
&lt;/h2&gt;

&lt;p&gt;Providers are the exported component people forget. A provider declares URI authorities, and an exported one can be queried by any app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adb shell content query --uri content://com.example.shop.provider/orders
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If rows come back without a login, you have data exposure with no exploit involved. Also check &lt;code&gt;android:grantUriPermissions&lt;/code&gt; and whether the provider enforces a read permission. A provider that is exported but guarded by a signature-level permission is a very different finding from one guarded by nothing, so record the permission string next to each entry in your list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backups and cleartext
&lt;/h2&gt;

&lt;p&gt;Two more attributes are cheap to check while the file is open. &lt;code&gt;android:allowBackup="true"&lt;/code&gt; means app data can be pulled through backup tooling on some setups, so note it and test what ends up in the backup. &lt;code&gt;android:usesCleartextTraffic="true"&lt;/code&gt; tells you the app may speak plain HTTP, which is worth knowing before you set up a proxy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this gets you
&lt;/h2&gt;

&lt;p&gt;A short, concrete list of entry points and one yes or no on the debuggable flag, before you have configured any tooling. It also tells you where a proxy or Frida will earn its time later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go further
&lt;/h2&gt;

&lt;p&gt;If you would rather follow a structured path, the &lt;a href="https://resources.codelivly.com/product/practical-android-app-pentesting/" rel="noopener noreferrer"&gt;Android app pentesting book&lt;/a&gt; is a 314-page PDF with 12 guided labs, two independent assessments, the ShopLab training kit and solutions. I have only read the product description, so check the page for the exact contents. For the Linux and shell side you will use alongside adb, the &lt;a href="https://resources.codelivly.com/product/linux-playbook-for-hackers/" rel="noopener noreferrer"&gt;Linux hacking book&lt;/a&gt; covers Bash and Nmap labs.&lt;/p&gt;

</description>
      <category>android</category>
      <category>security</category>
      <category>pentesting</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Subnetting with block size instead of binary</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:30:25 +0000</pubDate>
      <link>https://dev.to/rockyyy/subnetting-with-block-size-instead-of-binary-2ie1</link>
      <guid>https://dev.to/rockyyy/subnetting-with-block-size-instead-of-binary-2ie1</guid>
      <description>&lt;p&gt;A host cannot reach its gateway. The ticket says the cable is fine and the link light is on. Two addresses, two masks, and a question: are they in the same subnet?&lt;/p&gt;

&lt;p&gt;You can answer that without writing out 32 bits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Block size
&lt;/h2&gt;

&lt;p&gt;Look at the mask and find the octet where it is neither 255 nor 0. Subtract that value from 256. The result is the block size, and subnets start at multiples of it.&lt;/p&gt;

&lt;p&gt;A /26 is 255.255.255.192. The interesting octet is the last one, 192. 256 minus 192 is 64. Subnets therefore start at .0, .64, .128 and .192.&lt;/p&gt;

&lt;h2&gt;
  
  
  Place an address
&lt;/h2&gt;

&lt;p&gt;Take 10.0.5.130/26. The last octet, 130, sits between 128 and 192, so the host is in the 10.0.5.128 subnet. From there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Network address: 10.0.5.128&lt;/li&gt;
&lt;li&gt;First usable host: 10.0.5.129&lt;/li&gt;
&lt;li&gt;Last usable host: 10.0.5.190&lt;/li&gt;
&lt;li&gt;Broadcast: 10.0.5.191&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is 62 usable addresses, the 64 in the block minus the network and broadcast addresses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the gateway
&lt;/h2&gt;

&lt;p&gt;Say the gateway is configured as 10.0.5.65 with the same /26 mask. It belongs to the .64 block, which runs from .64 to .127. The host at .130 is in the next block over. They are not on the same subnet, so the host will not ARP for the gateway, and the "cable is fine" ticket turns out to be a wrong address or mask. This is a made-up example, but the pattern is a common one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other masks
&lt;/h2&gt;

&lt;p&gt;The method holds for any mask. A /27 is 255.255.255.224, so blocks of 32. A /28 is 240, so blocks of 16. When the interesting octet is not the last one, the block size applies to that octet and the octets after it run the full range.&lt;/p&gt;

&lt;h2&gt;
  
  
  A second example
&lt;/h2&gt;

&lt;p&gt;Try 172.16.40.77/28. A /28 is 255.255.255.240, so the block size is 256 minus 240, which is 16. Blocks in the last octet start at 0, 16, 32, 48, 64, 80. The value 77 falls between 64 and 80, so the host is in 172.16.40.64/28. Usable hosts run from .65 to .78 and the broadcast address is .79. That is 14 usable addresses.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the mask crosses an octet
&lt;/h2&gt;

&lt;p&gt;A /20 is 255.255.240.0. The interesting octet is the third one, so the block size is 256 minus 240, or 16, counted in the third octet. Subnets start at 10.1.0.0, 10.1.16.0, 10.1.32.0 and so on, and each one spans the full .0 to .255 range in the last octet. A host at 10.1.37.9 is therefore in 10.1.32.0/20.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://codelivly.com/learning-paths/networking-fundamentals" rel="noopener noreferrer"&gt;networking fundamentals learning path&lt;/a&gt; on Codelivly is free and has five rooms on addressing, protocols and how traffic moves. If you want a book to keep next to you while studying for Network+ or CCNA, the &lt;a href="https://resources.codelivly.com/product/computer-networking-all-in-one-for-dummies/" rel="noopener noreferrer"&gt;Computer Networking book&lt;/a&gt; covers the OSI model, TCP/IP, subnetting, DNS, DHCP, HTTP/3 and hardware. The product page lists it at $9.99.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>beginners</category>
      <category>ccna</category>
      <category>security</category>
    </item>
    <item>
      <title>Find an unlinked process in a memory image with Volatility 3</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Fri, 04 Dec 2026 16:38:09 +0000</pubDate>
      <link>https://dev.to/rockyyy/find-an-unlinked-process-in-a-memory-image-with-volatility-3-45ml</link>
      <guid>https://dev.to/rockyyy/find-an-unlinked-process-in-a-memory-image-with-volatility-3-45ml</guid>
      <description>&lt;p&gt;You have a memory image from a suspect Windows host, and the process list looks clean. That tells you what the operating system is willing to show you. It does not tell you what is in memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two views of the same image
&lt;/h2&gt;

&lt;p&gt;Volatility 3 ships two plugins that answer the question differently.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;windows.pslist&lt;/code&gt; follows the linked list of active processes that Windows maintains. It is fast and it shows what the OS believes is running.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;windows.psscan&lt;/code&gt; does not use that list. It scans the image for process structures and reports each one it finds, whether the process is live, finished or hiding.&lt;/p&gt;

&lt;p&gt;Malware can unlink its own process from the active list. After that it disappears from &lt;code&gt;pslist&lt;/code&gt; and stays in &lt;code&gt;psscan&lt;/code&gt;. The gap between the two outputs is the evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  The diff
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;vol -f memory.raw windows.pslist &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; pslist.txt
vol -f memory.raw windows.psscan &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; psscan.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pull the PID column from each file and compare them with &lt;code&gt;sort&lt;/code&gt; and &lt;code&gt;comm -13&lt;/code&gt;, or paste both lists into a spreadsheet. Anything that appears only in &lt;code&gt;psscan&lt;/code&gt; needs a second look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the exit time
&lt;/h2&gt;

&lt;p&gt;This is the step people skip. A process that has already ended leaves its structure in memory until the page is reused, so &lt;code&gt;psscan&lt;/code&gt; lists plenty of dead processes. Each one has an exit time.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Exit time present:&lt;/strong&gt; the process ended. Usually noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exit time empty:&lt;/strong&gt; the process is still running and the normal list cannot see it. Investigate this first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the empty ones, run &lt;code&gt;windows.pstree&lt;/code&gt; to find the parent, then the command-line and network plugins to see what it was launched with and what it connected to.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example
&lt;/h2&gt;

&lt;p&gt;Suppose &lt;code&gt;pslist&lt;/code&gt; shows 61 processes and &lt;code&gt;psscan&lt;/code&gt; shows 66. Four of the five extras have exit times from earlier in the session: an installer, two &lt;code&gt;cmd.exe&lt;/code&gt; windows, a &lt;code&gt;conhost.exe&lt;/code&gt;. The fifth is a PID with a parent of &lt;code&gt;explorer.exe&lt;/code&gt;, a random-looking name and an empty exit time. That one is running, it is absent from the normal list, and it is where you spend the next hour.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not catch
&lt;/h2&gt;

&lt;p&gt;A clean diff is one data point. This finds the simple unlinking technique. An attacker who also tampers with the structures &lt;code&gt;psscan&lt;/code&gt; relies on needs other checks, such as cross-referencing handles, threads and network connections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;The free &lt;a href="https://codelivly.com/labs/memory-forensics" rel="noopener noreferrer"&gt;memory forensics lab&lt;/a&gt; on Codelivly gives you an image to run this comparison on. The &lt;a href="https://codelivly.com/career-paths/digital-forensics" rel="noopener noreferrer"&gt;digital forensics career path&lt;/a&gt; shows the order to learn the surrounding topics in.&lt;/p&gt;

&lt;p&gt;For a longer reference, the &lt;a href="https://resources.codelivly.com/product/digital-forensics-playbook/" rel="noopener noreferrer"&gt;Digital Forensics Playbook&lt;/a&gt; is 259 pages across 47 chapters, with 30+ labs and 8 challenge investigations on DFIR, memory forensics and reporting. It is listed at $19.99 on the product page.&lt;/p&gt;

</description>
      <category>security</category>
      <category>forensics</category>
      <category>dfir</category>
      <category>malware</category>
    </item>
    <item>
      <title>Spot Kerberoasting on the domain controller with event 4769</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Fri, 04 Dec 2026 15:47:47 +0000</pubDate>
      <link>https://dev.to/rockyyy/spot-kerberoasting-on-the-domain-controller-with-event-4769-27l4</link>
      <guid>https://dev.to/rockyyy/spot-kerberoasting-on-the-domain-controller-with-event-4769-27l4</guid>
      <description>&lt;p&gt;A single domain account asks for service tickets to 40 different SPNs in under a minute. No password was guessed, no logon failed, and nothing locked out. This is what Kerberoasting looks like when the only evidence is the domain controller's Security log.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it is quiet
&lt;/h2&gt;

&lt;p&gt;Any authenticated domain user can request a service ticket for any account that has a service principal name. The ticket is encrypted with the service account's password hash. The attacker pulls the ticket out of memory and cracks it offline. The DC never sees a wrong password, so the usual brute-force alerts stay silent.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the log does record
&lt;/h2&gt;

&lt;p&gt;Every ticket request is event ID 4769. Three fields carry the story:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;TicketEncryptionType&lt;/code&gt;: &lt;code&gt;0x17&lt;/code&gt; is RC4. Attackers ask for it because it cracks far faster than AES. In an environment that negotiates AES by default, an RC4 request is worth a second look.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ServiceName&lt;/code&gt;: the SPN that was requested.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;TargetUserName&lt;/code&gt; and &lt;code&gt;IpAddress&lt;/code&gt;: who asked, and from where.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The query that works
&lt;/h2&gt;

&lt;p&gt;Do not chart total 4769 volume. A file server produces plenty of legitimate ones. Count &lt;strong&gt;distinct &lt;code&gt;ServiceName&lt;/code&gt; per requesting account per five minutes&lt;/strong&gt;. A person browsing shares touches one or two. A roasting tool enumerates every SPN and requests them all, so one account jumps to dozens.&lt;/p&gt;

&lt;p&gt;In a SIEM that is a group-by on account and a distinct count on service name, with a filter on &lt;code&gt;0x17&lt;/code&gt; as the first pass. Expect some noise from legacy apps that still need RC4. Build the allowlist before you turn the alert on, or the analysts will learn to ignore it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example
&lt;/h2&gt;

&lt;p&gt;Say the DC logs 52 events with ID 4769 for account &lt;code&gt;jdoe&lt;/code&gt; between 02:10 and 02:11, each for a different &lt;code&gt;ServiceName&lt;/code&gt;, and 49 of them carry &lt;code&gt;0x17&lt;/code&gt;. Your normal baseline for that account is two a day. Nothing failed, so no lockout fired, and the only reason you know is that you counted distinct names. From there you pull the workstation behind the source address and check what ran under &lt;code&gt;jdoe&lt;/code&gt; just before 02:10.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing the gap
&lt;/h2&gt;

&lt;p&gt;Detection is half of it, and a ticket that is already stolen stays crackable for as long as the password stays the same. The other half is making the stolen ticket useless: long random passwords on service accounts, group managed service accounts where the application supports them, and AES-only encryption types. Then audit service accounts by password age, because an attacker who has read this post will request tickets slowly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise on real evidence
&lt;/h2&gt;

&lt;p&gt;Reading 4769 events on a screen is easier than describing them. The free &lt;a href="https://codelivly.com/rooms/kerberos-and-authentication-evidence" rel="noopener noreferrer"&gt;Kerberos and authentication evidence room&lt;/a&gt; on Codelivly gives you logs to work through. The &lt;a href="https://codelivly.com/learning-paths/active-directory-operations-for-red-teams" rel="noopener noreferrer"&gt;Active Directory operations learning path&lt;/a&gt; puts the attack side in order.&lt;/p&gt;

&lt;p&gt;When you want the whole picture in one place, the &lt;a href="https://resources.codelivly.com/product/ad-attack-defense-playbook-complete-edition-book-lab-kit/" rel="noopener noreferrer"&gt;AD Attack and Defense Playbook&lt;/a&gt; is a 203-page book with a companion lab kit. It covers domain mapping, Kerberos evidence and credential attacks alongside the detection and hardening for each. The product page lists it at $49.99.&lt;/p&gt;

</description>
      <category>security</category>
      <category>activedirectory</category>
      <category>kerberos</category>
      <category>blueteam</category>
    </item>
    <item>
      <title>Chain low-severity findings into one report that gets fixed</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Thu, 03 Dec 2026 19:12:42 +0000</pubDate>
      <link>https://dev.to/rockyyy/chain-low-severity-findings-into-one-report-that-gets-fixed-4f61</link>
      <guid>https://dev.to/rockyyy/chain-low-severity-findings-into-one-report-that-gets-fixed-4f61</guid>
      <description>&lt;p&gt;A scanner flags a reflected parameter as low. A separate finding says an image-fetching feature accepts arbitrary URLs, also low. Each ticket gets triaged on its own and each one ages in the backlog.&lt;/p&gt;

&lt;p&gt;The problem is not the findings. It is how they were reported.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why separate low findings get ignored
&lt;/h2&gt;

&lt;p&gt;Severity is usually scored per issue. That is correct for the issue and misleading for the system. Two lows that combine into account takeover or internal access are not two lows. Nobody can see that unless the report shows it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the chain on paper first
&lt;/h2&gt;

&lt;p&gt;Take your list of findings and, for each one, write two things: what it gives an attacker, and what it needs. Then look for a finding whose output is another finding's input.&lt;/p&gt;

&lt;p&gt;An illustration, clearly a made-up one: a client-side bug that runs script in a user's session, and a server-side request feature that fetches URLs on behalf of that user. One supplies the foothold, the other turns it into access to something internal. Neither is critical alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prove each link
&lt;/h2&gt;

&lt;p&gt;A chain is only as good as its weakest step. For each link, record the request, the response and what changed. Reviewers will check each step, and a step you assumed is the first one they challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stop at the scope line
&lt;/h2&gt;

&lt;p&gt;Proving impact is not the same as maximising damage. Show that the chain works, show what it reaches, and stop. Pull one harmless piece of evidence, not the whole database. Staying inside the rules of engagement is part of the report's credibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write it from the fix backwards
&lt;/h2&gt;

&lt;p&gt;State the single root cause or the cheapest break in the chain. Defence in depth means breaking any one link stops the whole thing, so tell the owner which link is easiest to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the report should contain
&lt;/h2&gt;

&lt;p&gt;Keep it short and ordered. Start with one sentence on the combined impact. Then list the steps in the order an attacker would take them, each with its evidence. Put the individual severities after that, so the reader sees why the chain outranks its parts. Close with the remediation: the root cause if there is one, otherwise the cheapest link to break.&lt;/p&gt;

&lt;h2&gt;
  
  
  A common mistake
&lt;/h2&gt;

&lt;p&gt;Padding. Adding every loosely related finding to the chain makes the report longer and the argument weaker. If a finding does not feed the next step, report it separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise it
&lt;/h2&gt;

&lt;p&gt;Codelivly has a free &lt;a href="https://codelivly.com/rooms/vulnerability-chaining-for-impact" rel="noopener noreferrer"&gt;vulnerability chaining room&lt;/a&gt; with 7 lessons and 7 browser exercises, ending in a guided lab that chains three lab bugs into one critical report. For a broader reference on finding and proving bugs, the &lt;a href="https://resources.codelivly.com/product/vulnerability-research/" rel="noopener noreferrer"&gt;Vulnerability Research book&lt;/a&gt; is 305 pages covering attack surface, code review, fuzzing, crash triage, patch analysis and disclosure, with 20 hands-on projects. The product page lists it at $29.99.&lt;/p&gt;

</description>
      <category>security</category>
      <category>bugbounty</category>
      <category>pentesting</category>
      <category>appsec</category>
    </item>
    <item>
      <title>XXE is a parser setting: how to test it and how to actually fix it</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:45:35 +0000</pubDate>
      <link>https://dev.to/rockyyy/xxe-is-a-parser-setting-how-to-test-it-and-how-to-actually-fix-it-3785</link>
      <guid>https://dev.to/rockyyy/xxe-is-a-parser-setting-how-to-test-it-and-how-to-actually-fix-it-3785</guid>
      <description>&lt;p&gt;An application has an "import from XML" feature. Someone uploads a file, the server parses it and shows the result. If the parser is on default settings, that feature may be vulnerable to XML External Entity injection.&lt;/p&gt;

&lt;h2&gt;
  
  
  The mechanism
&lt;/h2&gt;

&lt;p&gt;XML lets a document declare entities in a DOCTYPE. Some entities point outward, to a file or a URL. If the parser resolves them and the application returns parsed content, whatever the entity pointed at ends up in the response.&lt;/p&gt;

&lt;h2&gt;
  
  
  A safe way to test it
&lt;/h2&gt;

&lt;p&gt;Run this only against a lab or a system you are authorised to test. The document declares an entity for a harmless local file and references it in a field the page echoes back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;&amp;lt;!DOCTYPE item [
  &amp;lt;!ENTITY probe SYSTEM "file:///etc/hostname"&amp;gt;&lt;/span&gt;
]&amp;gt;
&lt;span class="nt"&gt;&amp;lt;item&amp;gt;&amp;lt;name&amp;gt;&lt;/span&gt;&lt;span class="ni"&gt;&amp;amp;probe;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/name&amp;gt;&amp;lt;/item&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the hostname appears where the name should be, the parser resolved the external entity. That is the finding. No need to read anything more sensitive to prove it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why filtering fails
&lt;/h2&gt;

&lt;p&gt;The first defensive instinct is to reject uploads containing ENTITY or SYSTEM. XML can be encoded in different ways, and string checks tend to miss some of them. The check also sits in the wrong place: the dangerous behaviour belongs to the parser.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Disable DTD processing. In Python, use &lt;code&gt;defusedxml&lt;/code&gt; rather than the standard library parsers for untrusted input. In Java, set the &lt;code&gt;http://apache.org/xml/features/disallow-doctype-decl&lt;/code&gt; feature to true on the factory. Where DTDs are genuinely needed, disable external entity resolution and test again.&lt;/p&gt;

&lt;p&gt;After the change, send the same document. The response should be a parse error, not a hostname.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it hides besides an obvious XML form
&lt;/h2&gt;

&lt;p&gt;Many features parse XML without saying so. An SVG image upload is XML. A DOCX or XLSX file is a zip archive of XML parts, so an "import spreadsheet" button can reach an XML parser. SOAP endpoints take XML by design. And some APIs accept XML if you change the Content-Type header from JSON, even though the front end never sends it. When you review an application, list every place it accepts a file or a body, and ask which of them ends up in an XML parser.&lt;/p&gt;

&lt;h2&gt;
  
  
  When nothing comes back
&lt;/h2&gt;

&lt;p&gt;Not every vulnerable parser echoes content. If the response never shows parsed fields, the entity may still be resolved. Those cases are called blind XXE, and testers confirm them by watching for an outbound request from the server to a host they control. That is a topic for a lab with the right setup, and it is one more reason the fix belongs in the parser: you do not have to know which features echo and which do not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise both sides
&lt;/h2&gt;

&lt;p&gt;The free &lt;a href="https://codelivly.com/labs/xxe-xml-import" rel="noopener noreferrer"&gt;XXE XML import lab&lt;/a&gt; on Codelivly lets you run the test and then confirm the fix. When you want the surrounding workflow, from recon to writing the finding, the &lt;a href="https://resources.codelivly.com/product/web-application-hacking-level-1/" rel="noopener noreferrer"&gt;Web Application Hacking book&lt;/a&gt; on Codelivly Resources continues from here.&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>xml</category>
      <category>appsec</category>
    </item>
    <item>
      <title>Who owns that port? Reading ss -tulpn on Linux</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Thu, 03 Dec 2026 09:47:40 +0000</pubDate>
      <link>https://dev.to/rockyyy/who-owns-that-port-reading-ss-tulpn-on-linux-250m</link>
      <guid>https://dev.to/rockyyy/who-owns-that-port-reading-ss-tulpn-on-linux-250m</guid>
      <description>&lt;p&gt;A scan reports port 8000 open on a Linux host. Nobody remembers starting a service there. You need the process behind it, and you need it quickly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ss -tulpn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the flags do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-t&lt;/code&gt; and &lt;code&gt;-u&lt;/code&gt; select TCP and UDP sockets.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-l&lt;/code&gt; keeps listening sockets only, so established connections do not bury the answer.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-p&lt;/code&gt; adds the owning process name and PID.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-n&lt;/code&gt; prints ports as numbers instead of service names.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A line looks like this: the protocol, the local address and port, and at the end &lt;code&gt;users:(("python3",pid=2211,fd=3))&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why sudo matters
&lt;/h2&gt;

&lt;p&gt;Run it as a normal user and the process column is empty for any socket you do not own. That blank looks like "nothing owns this port". It means you lack permission to see. This is the most common misreading of the output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the bind address
&lt;/h2&gt;

&lt;p&gt;The Local Address column carries the risk. &lt;code&gt;127.0.0.1:8000&lt;/code&gt; accepts connections only from the host itself. &lt;code&gt;0.0.0.0:8000&lt;/code&gt; and &lt;code&gt;[::]:8000&lt;/code&gt; accept them from the network. A database bound to loopback is routine. The same database bound to all interfaces is a finding.&lt;/p&gt;

&lt;h2&gt;
  
  
  From PID to cause
&lt;/h2&gt;

&lt;p&gt;With the PID, check what is actually running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls -l /proc/2211/exe
systemctl status 2211
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first shows the binary on disk. The second names the unit that started it, if there is one. A binary in &lt;code&gt;/tmp&lt;/code&gt; that no unit launched is a different conversation from a forgotten dev server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Traps that waste time
&lt;/h2&gt;

&lt;p&gt;Filter the output instead of scrolling it: &lt;code&gt;sudo ss -tulpn | grep :8000&lt;/code&gt; shows only that port. UDP lines show &lt;code&gt;UNCONN&lt;/code&gt; rather than &lt;code&gt;LISTEN&lt;/code&gt;, which is normal because UDP has no connection state, so do not mistake it for a problem.&lt;/p&gt;

&lt;p&gt;On a Docker host, a published container port often shows up owned by &lt;code&gt;docker-proxy&lt;/code&gt; rather than the application inside the container. The process you want is then in the container, and &lt;code&gt;docker ps&lt;/code&gt; tells you which one maps to that port.&lt;/p&gt;

&lt;p&gt;If &lt;code&gt;ss&lt;/code&gt; is missing on an older system, &lt;code&gt;sudo lsof -i :8000&lt;/code&gt; answers the same question for a single port. The output is wider and slower, but it names the user and the command.&lt;/p&gt;

&lt;p&gt;Finally, a listening socket is a snapshot. A service that starts, answers, and exits can be gone by the time you look. Run the command twice, a few minutes apart, before you conclude the port is closed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise it
&lt;/h2&gt;

&lt;p&gt;You need a terminal that is allowed to break. The free &lt;a href="https://codelivly.com/rooms/introduction-to-linux" rel="noopener noreferrer"&gt;Introduction to Linux room&lt;/a&gt; on Codelivly covers navigation and the shell. For a quick reference, the &lt;a href="https://resources.codelivly.com/product/linux-cmd-cheatsheet-quick-practical-and-essential/" rel="noopener noreferrer"&gt;Linux command cheatsheet&lt;/a&gt; is free on Codelivly Resources. When the basics are comfortable, the &lt;a href="https://resources.codelivly.com/product/linux-playbook-for-hackers/" rel="noopener noreferrer"&gt;Linux Playbook for Hackers&lt;/a&gt; continues from there.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>security</category>
      <category>networking</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Read the SubStatus in Windows event 4625 before you call it a breach</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Thu, 03 Dec 2026 08:53:01 +0000</pubDate>
      <link>https://dev.to/rockyyy/read-the-substatus-in-windows-event-4625-before-you-call-it-a-breach-3onp</link>
      <guid>https://dev.to/rockyyy/read-the-substatus-in-windows-event-4625-before-you-call-it-a-breach-3onp</guid>
      <description>&lt;p&gt;An overnight alert says 400 failed RDP logons against one server. The number alone tells you almost nothing. The Security log already holds the detail that sorts it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The field to read
&lt;/h2&gt;

&lt;p&gt;Every failed logon is event 4625. Inside it, the &lt;code&gt;SubStatus&lt;/code&gt; value gives the real reason:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;0xC0000064&lt;/code&gt;: the username does not exist.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;0xC000006A&lt;/code&gt;: the username exists, and the password was wrong.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The top-level &lt;code&gt;Status&lt;/code&gt; field often shows a generic &lt;code&gt;0xC000006D&lt;/code&gt;. Do not stop there. The specific reason is in SubStatus.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the pattern says
&lt;/h2&gt;

&lt;p&gt;A single source IP trying dozens of different names, every one returning &lt;code&gt;0xC0000064&lt;/code&gt;, is guessing at who exists. That is enumeration or a spray, and on its own it is a blocked attempt.&lt;/p&gt;

&lt;p&gt;Now suppose the same IP starts returning &lt;code&gt;0xC000006A&lt;/code&gt; for one name. A guess landed on a real account. The attacker now knows a valid username and is trying passwords against it.&lt;/p&gt;

&lt;p&gt;The last check is the one that makes it an incident: is there a successful logon, event 4624, from that address shortly after? If yes, the failures were the approach and the success is the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick way to look
&lt;/h2&gt;

&lt;p&gt;In PowerShell, &lt;code&gt;Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625}&lt;/code&gt; pulls the events, and the SubStatus sits in the event's XML data. Group by source address first, then by SubStatus.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example
&lt;/h2&gt;

&lt;p&gt;Suppose the export shows 400 events from one address. Counting by SubStatus gives 396 with &lt;code&gt;0xC0000064&lt;/code&gt; and 4 with &lt;code&gt;0xC000006A&lt;/code&gt;, all four against the same name, &lt;code&gt;svc-backup&lt;/code&gt;. The 396 are a name list being tried. The four are the interesting part: that account exists, and someone now knows it.&lt;/p&gt;

&lt;p&gt;Next, filter for event 4624 with that account name and the same source address, and read the logon type and timestamp. A success minutes after the last failure is the finding. No success means the attempt probably failed, but the account still deserves a password check and a lockout policy review, because the attacker learned it is real.&lt;/p&gt;

&lt;h2&gt;
  
  
  Traps
&lt;/h2&gt;

&lt;p&gt;Repeated failures from one user on one workstation right after a password change are usually a stale saved credential, not an attack. Check the account name against the source before escalating.&lt;/p&gt;

&lt;p&gt;Do not treat 4625 as the only source either. If the server sits behind network-level authentication, some failures are logged at that stage, so compare against your firewall or gateway logs when the counts disagree.&lt;/p&gt;

&lt;p&gt;Also remember the log tells you what the server saw. If RDP sits behind a gateway, the source address in the event may be the gateway, not the attacker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise it
&lt;/h2&gt;

&lt;p&gt;The free &lt;a href="https://codelivly.com/labs/rdp-failed-logins" rel="noopener noreferrer"&gt;RDP Failed Login Analysis lab&lt;/a&gt; on Codelivly works through event 4625 and SubStatus codes with a log you can read. For the surrounding routine, the &lt;a href="https://resources.codelivly.com/product/soc-analyst-level-1-the-practical-playbook/" rel="noopener noreferrer"&gt;SOC Analyst Level 1 playbook&lt;/a&gt; on Codelivly Resources covers the 6-step triage loop, the Big Five alert playbooks and SIEM mechanics.&lt;/p&gt;

</description>
      <category>security</category>
      <category>windows</category>
      <category>soc</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Finding a C2 beacon in a proxy log: look at the gaps, not the bytes</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Wed, 02 Dec 2026 14:45:51 +0000</pubDate>
      <link>https://dev.to/rockyyy/finding-a-c2-beacon-in-a-proxy-log-look-at-the-gaps-not-the-bytes-88d</link>
      <guid>https://dev.to/rockyyy/finding-a-c2-beacon-in-a-proxy-log-look-at-the-gaps-not-the-bytes-88d</guid>
      <description>&lt;p&gt;When people hunt for command and control in a proxy log, the first instinct is to sort by bytes sent. That finds data exfiltration and software updates. It rarely finds a beacon.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a beacon looks like
&lt;/h2&gt;

&lt;p&gt;A beacon is the implant checking in. It sends a small request on a timer, gets a short reply ("nothing for you" or a task), and sleeps. Built to be unobtrusive, it will not top any volume chart. The destination may also have no bad reputation, because it was registered recently or sits behind ordinary hosting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The signal is the timing
&lt;/h2&gt;

&lt;p&gt;Human browsing is bursty: a flurry of requests, then nothing for minutes. A beacon is regular. Group your log by source host and destination, then compute the gap between consecutive requests.&lt;/p&gt;

&lt;p&gt;A destination hit every 60 seconds, plus or minus a few seconds, from one workstation is a strong lead. Many implants add jitter so the gaps are not identical, but the spread stays narrow compared with real browsing. If you can export the log, a spreadsheet or a short script that prints the gaps per pair is enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  A worked example
&lt;/h2&gt;

&lt;p&gt;Take one workstation and one destination, 214 requests over an afternoon. Printing the gaps gives values like 58, 61, 60, 63, 59 seconds, repeating with no long pauses. A person reading a site would not produce that: the same request, the same rhythm, through lunch. That one pair goes to the top of the list, above hosts that moved far more data.&lt;/p&gt;

&lt;p&gt;Keep the destination's first-seen date in mind as well. A host this network has never contacted before, reached on a regular timer, is a better lead than a familiar one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Confirm before you escalate
&lt;/h2&gt;

&lt;p&gt;A steady timer alone is not proof. Software updaters, monitoring agents and chat clients all phone home on a schedule. Check three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Do the requests carry near-identical sizes?&lt;/li&gt;
&lt;li&gt;Does this host have a reason to contact that destination?&lt;/li&gt;
&lt;li&gt;Which process on the host makes the connection?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the answers are yes, no and unknown, you have a case to hand to whoever owns the endpoint.&lt;/p&gt;

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

&lt;p&gt;Write down the source host, the destination, the interval and the first and last timestamps. That is enough for the endpoint owner to find the process, and enough for you to block the destination at the proxy if it proves malicious.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practise it
&lt;/h2&gt;

&lt;p&gt;The free &lt;a href="https://codelivly.com/labs/c2-beacon" rel="noopener noreferrer"&gt;C2 Beacon Analysis lab&lt;/a&gt; on Codelivly gives you a proxy log with a periodic callback hidden in it, and it rewards looking past volume and reputation. When the network side makes sense, the &lt;a href="https://resources.codelivly.com/product/malware-analysis-for-beginners/" rel="noopener noreferrer"&gt;Malware Analysis Book for Beginners&lt;/a&gt; on Codelivly Resources covers malware families, persistence and C2 from the sample's point of view.&lt;/p&gt;

</description>
      <category>security</category>
      <category>blueteam</category>
      <category>networking</category>
      <category>soc</category>
    </item>
    <item>
      <title>Name the trigger before you answer the message: a check for pretexting</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Wed, 02 Dec 2026 10:25:48 +0000</pubDate>
      <link>https://dev.to/rockyyy/name-the-trigger-before-you-answer-the-message-a-check-for-pretexting-27i6</link>
      <guid>https://dev.to/rockyyy/name-the-trigger-before-you-answer-the-message-a-check-for-pretexting-27i6</guid>
      <description>&lt;p&gt;Picture an accounts-payable clerk at 4:40 on a Friday. An email arrives from the finance director: a supplier's bank details changed, pay today's invoice to the new account, reply when done. The sender name is right. The tone is a little curt, which is how the director always sounds.&lt;/p&gt;

&lt;p&gt;Nothing in that message is technically broken. No attachment, no odd link. What it does is push on a person, and that is the part worth practising against.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four levers
&lt;/h2&gt;

&lt;p&gt;Most pretexts lean on one of four things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Urgency&lt;/strong&gt;: "before the bank closes", "within the hour".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authority&lt;/strong&gt;: a director, IT, an auditor, a government office.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scarcity&lt;/strong&gt;: a seat, a refund window, an account that will be "locked".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Curiosity&lt;/strong&gt;: "see attached", "is this you in the photo?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The check is one sentence long. Before you act, say which lever the message is pulling. If you can name it, you have already stepped back from it. If you cannot find one at all, the message is probably ordinary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then verify on a channel you chose
&lt;/h2&gt;

&lt;p&gt;Naming the lever is half the job. The other half is checking through a route the sender did not supply. Do not reply to the email, do not call the number in the signature. Look up the director's extension in the company directory, or walk over, and ask: did you send this?&lt;/p&gt;

&lt;p&gt;For the Friday scenario that costs two minutes. A wrong payment costs a recall request and, often, the money.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the evidence, too
&lt;/h2&gt;

&lt;p&gt;Human checks work better next to technical ones. The header of the message tells you where it really came from, and a mismatch between the From line and the Return-Path or the first Received hop is a fast tell. If you have not read raw headers before, the free &lt;a href="https://codelivly.com/ctf/challenges/forensics-email-headers" rel="noopener noreferrer"&gt;email header forensics challenge&lt;/a&gt; on Codelivly walks you through tracing a message path and decoding the clues hidden in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practice the lever, not the template
&lt;/h2&gt;

&lt;p&gt;Pretexts change wording constantly, so memorising a list of scam subject lines does not hold up. Recognising the lever does. Even a lure as old as a free USB drive in a car park is the same curiosity play; the &lt;a href="https://codelivly.com/glossary/baiting-attack" rel="noopener noreferrer"&gt;baiting attack&lt;/a&gt; glossary entry shows the pattern in a physical setting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go further
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://resources.codelivly.com/product/hack-the-mind-the-psychology-of-hacking/" rel="noopener noreferrer"&gt;Hack the Mind&lt;/a&gt; is a social engineering psychology ebook that goes through the triggers attackers exploit, urgency, authority, scarcity and curiosity, and then covers how to build what it calls a human firewall. It is listed at $3.00 on the shop page right now. That is a low price for something you can hand to a new hire on their first day.&lt;/p&gt;

&lt;p&gt;Whichever route you take, make the habit small: name the lever, then verify somewhere the sender did not choose.&lt;/p&gt;

</description>
      <category>security</category>
      <category>socialengineering</category>
      <category>phishing</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Ping an IP before you blame DNS: splitting a network ticket in half</title>
      <dc:creator>Rocky</dc:creator>
      <pubDate>Wed, 02 Dec 2026 05:22:25 +0000</pubDate>
      <link>https://dev.to/rockyyy/ping-an-ip-before-you-blame-dns-splitting-a-network-ticket-in-half-3m5p</link>
      <guid>https://dev.to/rockyyy/ping-an-ip-before-you-blame-dns-splitting-a-network-ticket-in-half-3m5p</guid>
      <description>&lt;p&gt;A ticket arrives: "the internet is down." The tempting move is to start at the physical layer, checking the cable, the switch port, the firewall rule. Most of the time that is the longest route to the answer.&lt;/p&gt;

&lt;p&gt;The faster way is to split the problem into two halves and test each half once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Half one: can packets leave and return?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ping -c 3 1.1.1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This sends traffic to an IP address, so it involves no name lookup at all. If replies come back, the client has an address, a default gateway and a working route out. If it times out, stop looking at DNS. Check the gateway with &lt;code&gt;ip route&lt;/code&gt;, then the link itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Half two: can names be resolved?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ping -c 3 example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same destination class, but now the client has to turn a name into an address first. If the IP ping worked and this one fails with "unknown host" or "temporary failure in name resolution," you have your answer in under a minute. The network is fine. Name resolution is broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which resolver is at fault?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig example.com
dig @1.1.1.1 example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first query goes to whatever resolver the machine was configured with. The second asks a public resolver directly. If the second answers and the first does not, the configured resolver is the problem. Look at &lt;code&gt;/etc/resolv.conf&lt;/code&gt; or run &lt;code&gt;resolvectl status&lt;/code&gt; to see which server the client is using and where it came from. A DHCP option pointing at a server that is gone is a common cause.&lt;/p&gt;

&lt;p&gt;If both fail, the problem is more likely the domain itself or something blocking port 53.&lt;/p&gt;

&lt;h2&gt;
  
  
  One trap with dig
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;dig&lt;/code&gt; talks to DNS and nothing else. Applications go through the system's lookup order, which includes &lt;code&gt;/etc/hosts&lt;/code&gt;. Run this too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;getent hosts example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;dig&lt;/code&gt; returns an address and &lt;code&gt;getent&lt;/code&gt; does not, or returns a different one, a hosts entry or the order in &lt;code&gt;/etc/nsswitch.conf&lt;/code&gt; is changing the result. That mismatch causes a surprising number of "works in the terminal, fails in the app" reports.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this order
&lt;/h2&gt;

&lt;p&gt;Each test removes half of the possible causes. After ping by IP, you know whether to look at the path or at names. After the dig comparison, you know whether it is the client's resolver or the wider DNS. You have asked three questions and touched nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to practise
&lt;/h2&gt;

&lt;p&gt;Reading about this is easy and applying it under ticket pressure is harder. The &lt;a href="https://resources.codelivly.com/product/network-troubleshooting-casebook/" rel="noopener noreferrer"&gt;Network Troubleshooting Casebook&lt;/a&gt; is a book of 40 real-world cases. Each one gives you a ticket, Cisco and Linux output, the root cause and a full answer key, across 716 pages plus lab files. Try each case before you open the key.&lt;/p&gt;

&lt;p&gt;If the underlying pieces still feel loose, the &lt;a href="https://codelivly.com/learning-paths/networking-fundamentals" rel="noopener noreferrer"&gt;Networking Fundamentals learning path&lt;/a&gt; on Codelivly covers addressing, protocols and how traffic moves, in five rooms. For a single reference on DNS, DHCP, TCP/IP and subnetting, the &lt;a href="https://resources.codelivly.com/product/computer-networking-all-in-one-for-dummies/" rel="noopener noreferrer"&gt;computer networking book&lt;/a&gt; is aimed at beginners preparing for Network+ and CCNA.&lt;/p&gt;

</description>
      <category>networking</category>
      <category>linux</category>
      <category>sysadmin</category>
      <category>dns</category>
    </item>
  </channel>
</rss>
