<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Huseyn Eyvazov on Medium]]></title>
        <description><![CDATA[Stories by Huseyn Eyvazov on Medium]]></description>
        <link>https://medium.com/@heyvazov15?source=rss-421b65e9552c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EhObdJSANUF3g9zergbAVg.jpeg</url>
            <title>Stories by Huseyn Eyvazov on Medium</title>
            <link>https://medium.com/@heyvazov15?source=rss-421b65e9552c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:52:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@heyvazov15/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Incident Response — How SOC  Handle Cyber Incidents Step by Step]]></title>
            <link>https://medium.com/@heyvazov15/incident-response-how-soc-handle-cyber-incidents-step-by-step-869bbc8ecbc6?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/869bbc8ecbc6</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[soc-team]]></category>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 18:02:17 GMT</pubDate>
            <atom:updated>2025-11-02T18:02:17.287Z</atom:updated>
            <content:encoded><![CDATA[<h3>Incident Response — How SOC Handle Cyber Incidents Step by Step</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0_D8AWHyEgqqAc2mhm0XA.png" /></figure><p>When a security incident happens, the difference between a small containment and a total disaster usually comes down to how well the team responds.<br> Incident response isn’t about panic or guessing — it’s a structured, methodical process that every organization should master.</p><p>In this post, I’ll break down the <strong>six key stages of incident response</strong> that every SOC, blue team, or cybersecurity professional deals with.<br> I’ll also explain what really happens in each phase — not just the theory, but what it looks like in practice.</p><h3>1. Preparation</h3><p>Most people think incident response starts when something goes wrong — but that’s not true. The real work starts long before that.<br> <strong>Preparation</strong> is what decides how ready you are when the incident hits.</p><p>This phase is about building your defense and your plan:</p><ul><li>Having a <strong>documented IR plan</strong> with clear steps: who’s responsible for what, who to call, and how to escalate.</li><li>Setting up <strong>monitoring systems</strong> — SIEM, IDS/IPS (Snort, Zeek), endpoint detection, and centralized log collection.</li><li>Creating <strong>communication channels</strong> — secure chat for internal response, and an external contact list for vendors or law enforcement.</li><li>Running <strong>tabletop exercises</strong> — simulations of possible scenarios (like ransomware or phishing).</li></ul><p><strong>Example:</strong><br> In one company I worked with, we ran a “fake ransomware day” every quarter. We simulated an infection on a virtual machine, and the SOC team had to detect, isolate, and report it within 30 minutes. Those drills helped us cut our actual incident response time from hours to minutes.</p><p>Preparation also means having forensics tools, clean system images, and updated contact lists ready. You don’t want to be searching for a USB drive with FTK Imager in the middle of an attack.</p><h3>2. Identification</h3><p>Once your defenses are in place, the next step is <strong>spotting when something’s wrong</strong>.</p><p>The goal here is simple:<br> <strong>Detect, verify, and understand what you’re dealing with.</strong></p><p>Your SOC tools will give you alerts, but not every alert is an incident.<br> Analysts need to separate the noise from real threats.</p><p>Common indicators you might see:</p><ul><li>A surge in failed login attempts followed by a successful one from a foreign IP.</li><li>Strange outbound connections on uncommon ports.</li><li>Antivirus or EDR logs showing suspicious PowerShell or encoded scripts.</li><li>Abnormal file modifications or encryption patterns.</li></ul><p><strong>Example:</strong><br> Let’s say Zeek starts logging unusual outbound connections to an unknown domain every 15 seconds. The SIEM correlates it with a new executable file created on a user’s machine. After investigation, you confirm — it’s a backdoor beaconing to a C2 server. That’s your <strong>incident</strong>.</p><p>Once you confirm it, it’s time to act fast.</p><h3>3. Containment</h3><p>This is where you stop the attacker from spreading further.<br> Containment is not about fixing yet — it’s about <strong>isolating the infection</strong> to protect the rest of the network.</p><p>There are two levels of containment:</p><h3>Short-Term Containment</h3><p>Quick actions that limit immediate damage:</p><ul><li>Disconnect infected hosts from the network (don’t power them off yet).</li><li>Block malicious IPs, URLs, or domains on the firewall.</li><li>Disable compromised accounts in Active Directory.</li></ul><p><strong>Example:</strong><br> If one user’s workstation starts sending out phishing emails internally, the first move is to isolate that device — VLAN quarantine or switch port shutdown — and disable their account immediately. This prevents the malware from moving laterally.</p><h3>Long-Term Containment</h3><p>Temporary but stable fixes that let you operate safely:</p><ul><li>Set up new firewall rules or network segmentation.</li><li>Move critical services to isolated environments.</li><li>Start preparing clean replacement systems.</li></ul><p>Containment buys you time to analyze without letting the problem grow.</p><h3>4. Eradication</h3><p>Once you’ve contained the threat, now you focus on <strong>removing the root cause</strong> completely.<br> This is the cleanup phase — you’re getting rid of the infection, patching holes, and making sure it doesn’t come back.</p><p>Tasks here include:</p><ul><li>Removing malicious files, registry keys, and persistence mechanisms.</li><li>Killing unauthorized processes and services.</li><li>Patching vulnerabilities that were exploited.</li><li>Resetting passwords and revoking tokens.</li><li>Scanning systems again to make sure the environment is clean.</li></ul><p><strong>Example:</strong><br> Suppose the attacker gained access through an unpatched Apache web server. In the eradication phase, you’d apply the latest patch, delete any dropped files (like cmd.php shells), and verify file integrity using SHA256 hashes. You might also search Zeek logs to see if the same exploit was attempted elsewhere.</p><p>Eradication ends when you’re confident the threat is fully removed — not just hidden.</p><h3>5. Recovery</h3><p>Now you bring systems back to life. But this part has to be done carefully — if you rush it, you might reintroduce the same infection.</p><p>During recovery:</p><ul><li>Restore systems from <strong>verified clean backups</strong>.</li><li>Reconnect servers gradually to monitor behavior.</li><li>Keep enhanced logging enabled for a while.</li><li>Watch outbound traffic for signs of re-infection or data exfiltration.</li></ul><p><strong>Example:</strong><br> A finance server hit by ransomware was restored from an offline backup. Before putting it back into production, the team monitored its network connections for 72 hours — no suspicious activity, no hidden scheduled tasks. Only then was it officially declared safe.</p><p>Recovery also includes verifying business processes and user access controls. Make sure everything functions properly — but more securely than before.</p><h3>6. Lessons Learned</h3><p>After the dust settles, the most important step begins — <strong>reviewing everything</strong>.<br> You can’t improve what you don’t analyze.</p><p>Post-incident review meetings should happen within a few days of closure.<br> Ask the tough questions:</p><ul><li>How was the incident first detected?</li><li>What worked well in the response process?</li><li>What delayed containment or communication?</li><li>Which alerts did we miss?</li><li>How can we prevent this in the future?</li></ul><p><strong>Example:</strong><br> After a phishing incident led to credential theft, the team realized MFA wasn’t enabled for internal VPN accounts. The lesson learned resulted in a company-wide rollout of MFA and new SIEM rules for unusual VPN logins.</p><p>This phase also includes updating documentation, playbooks, and training. Every incident is a lesson — ignore it, and you’ll repeat it.</p><h3>Realistic Example — Ransomware Scenario</h3><p><strong>Preparation:</strong> Regular backups were configured, and SIEM alerts were tuned.<br> <strong>Identification:</strong> SOC received multiple “file encryption” alerts and detected high CPU usage on several servers.<br> <strong>Containment:</strong> Network team isolated affected machines, disabled SMB, and blocked suspicious IPs.<br> <strong>Eradication:</strong> Malware samples were analyzed, persistence removed, and the entry vector (phishing email) identified.<br> <strong>Recovery:</strong> Clean systems restored from backup, network monitored for new file encryption activity.<br> <strong>Lessons Learned:</strong> Implemented EDR with ransomware behavior detection, added attachment scanning, and trained staff on phishing recognition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=869bbc8ecbc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snort vs Zeek]]></title>
            <link>https://medium.com/@heyvazov15/snort-vs-zeek-1d0b548f11ae?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0b548f11ae</guid>
            <category><![CDATA[zeek]]></category>
            <category><![CDATA[bros]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[snort]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 17:45:40 GMT</pubDate>
            <atom:updated>2025-11-02T17:53:48.262Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OzsfkHg22U5-0ApzroW3g.png" /></figure><p>In network security, monitoring what happens on the wire is just as important as protecting the endpoints.<br> Two of the most widely used open-source tools for network detection and analysis are <strong>Snort</strong> and <strong>Zeek</strong> (Bro).</p><p>Both are extremely powerful but serve slightly different purposes — one focuses on <strong>signature-based intrusion detection</strong>, the other on <strong>context-rich network analysis</strong>. Let’s break them down clearly and see what they actually do in practice.</p><h3>Snort — Signature-Based Intrusion Detection</h3><p><strong>Snort</strong> is a classic <strong>Network Intrusion Detection System (NIDS)</strong> developed by Cisco.<br> It works by inspecting packets and comparing them against a large set of <strong>signatures (rules)</strong> that describe known attacks, exploits, or suspicious patterns.</p><p>In other words, Snort acts like a security guard at the gate — checking every packet to see if it matches a known threat.</p><h3>How Snort Works</h3><p>Snort captures live traffic from the network interface, decodes it, and analyzes the contents using a rule engine.<br> If a packet matches a rule, Snort generates an <strong>alert</strong> and logs the event.</p><p>Each rule looks something like this:</p><pre>alert tcp any any -&gt; 192.168.1.10 80 (msg:&quot;WEB Shell upload detected&quot;; content:&quot;cmd.exe&quot;; nocase; sid:100001;)</pre><p><strong>Explanation:</strong></p><ul><li>alert tcp any any -&gt; 192.168.1.10 80 — watch TCP traffic going to 192.168.1.10 on port 80</li><li>msg — text message for the alert</li><li>content — what Snort is searching for inside the packet payload</li><li>sid — unique rule ID</li></ul><p>When Snort finds that pattern (“cmd.php”), it triggers an alert in the console or logs it to /var/log/snort/alert.</p><h3>Example: Running Snort in IDS Mode</h3><pre>snort -A console -q -c /etc/snort/snort.conf -i eth0</pre><ul><li>-A console — print alerts in the console</li><li>-q — quiet mode (no banner)</li><li>-c — specify configuration file</li><li>-i — select network interface</li></ul><p>Snort rules are community-driven, so it’s updated frequently with new attack signatures — things like SQL injection attempts, malicious payloads, or command execution patterns.</p><h3>Zeek — Network Security Monitoring and Analysis</h3><p><strong>Zeek</strong> (formerly <strong>Bro</strong>) is not a traditional IDS. It’s more like a <strong>network analysis framework</strong> that provides context-rich logs about what’s happening in the network.</p><p>While Snort tells you <em>“something bad just happened”</em>, Zeek helps you understand <em>“what exactly happened, how, and what it means.”</em></p><p>Zeek is <strong>event-driven</strong> — it reads traffic, generates detailed logs for different protocols (HTTP, DNS, SSL, SSH, etc.), and can trigger actions through its scripting language.</p><h3>Example: Zeek in Action</h3><p>If you run Zeek on a live interface:</p><pre>zeek -i eth0</pre><p>It automatically generates structured logs in /opt/zeek/logs/current/ such as:</p><ul><li>conn.log — all network connections</li><li>http.log — details of HTTP requests and responses</li><li>dns.log — DNS queries and answers</li><li>ssl.log — SSL/TLS session info</li><li>files.log — extracted file metadata</li></ul><p>Each log is in a clean, tab-separated format that can be imported into SIEMs or data pipelines for further analysis.</p><p><strong>Example (from http.log):</strong></p><pre>1525512606.093188	C2eqlP2u8JmYpKzFhv	192.168.1.5	51520	93.184.216.34	80	1	GET	fabio.com	/index.php	200	-	...</pre><p>This one line tells you:</p><blockquote><em>A client from 192.168.1.5 made an HTTP GET request to fabio.com/index.php and got a 200 OK response.</em></blockquote><p>That kind of context is gold for incident response — it lets analysts see the full story of an intrusion.</p><h3>Snort vs Zeek — Key Differences</h3><p>FeatureSnortZeek<strong>Primary purpose</strong>Intrusion detectionNetwork monitoring &amp; analysis<strong>Detection type</strong>Signature-based (known patterns)Behavior-based (protocol analysis, events)<strong>Output</strong>Alerts (matches rules)Detailed structured logs<strong>Customization</strong>Rules written in Snort syntaxEvent-driven scripting language<strong>Performance</strong>Lighter, faster for signature detectionHeavier but richer context<strong>Typical Use</strong>Detect attacks in real timeInvestigate and analyze incidents</p><p>In short:</p><ul><li><strong>Snort</strong> is ideal for <strong>real-time attack detection</strong>.</li><li><strong>Zeek</strong> is better for <strong>deep analysis and forensic visibility</strong>.</li></ul><p>Many modern SOCs actually <strong>use both together</strong> — Snort to catch known bad traffic and Zeek to provide the background story.</p><h3>Example Use Case: Working Together</h3><p>Imagine you’re investigating suspicious web traffic.</p><ul><li><strong>Snort alert:</strong></li><li>[1:100001:1] WEB Shell upload detected [Classification: Web Application Attack] [Priority: 1]</li><li><strong>Zeek logs:</strong><br> You check http.log and find the exact request:</li><li>10.0.0.25 uploaded cmd.php to /uploads directory on fabio.com</li><li><strong>Follow-up:</strong><br> Using Zeek’s files.log, you extract the uploaded file and confirm it’s a web shell.</li></ul><p>Together, they give both detection <em>and</em> context — Snort raised the flag, Zeek told you what really happened.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0b548f11ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical Toolkit for Reconnaissance and Quick Web-Surface Assessments]]></title>
            <link>https://medium.com/@heyvazov15/practical-toolkit-for-reconnaissance-and-quick-web-surface-assessments-23acd94c4150?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/23acd94c4150</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[reconnaissance]]></category>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 17:33:03 GMT</pubDate>
            <atom:updated>2025-11-02T17:33:03.226Z</atom:updated>
            <content:encoded><![CDATA[<p>Speed, repeatability, and a clear workflow matter when you collect reconnaissance data and perform an initial security review of a website or small network. Below are concise, technically accurate descriptions of seven tools that help you gather OSINT, enumerate subdomains, profile services, and do a fast surface-level security assessment. For each tool: what it does, when to use it, and a practical command example you can run immediately.</p><h3>recon-ng — modular OSINT framework</h3><p><strong>What it does:</strong> recon-ng is a modular environment for automated OSINT collection. It supports workspaces, modules for WHOIS, search engines, and multiple APIs (Shodan, Bing, Google, etc.), and it allows you to export results and chain modules in repeatable workflows.<br> <strong>When to use it:</strong> passive reconnaissance — gather public artifacts about a domain or organization before any active probing.<br> <strong>Example (interactive):</strong></p><pre>recon-ng<br>workspaces create fabio<br>modules load recon/domains-hosts/google_site_web<br>set SOURCE fabio.com<br>ru</pre><p><strong>What to look for:</strong> discovered subdomains, linked hosts, public repo references, email addresses. Export results and validate them manually — automated output often contains noise.</p><h3>nikto — quick HTTP/S server scanner</h3><p><strong>What it does:</strong> nikto checks web servers for common misconfigurations and well-known issues (old headers, world-readable config files, dangerous CGI scripts, etc.). It’s a fast surface check, not a full application security audit.<br> <strong>When to use it:</strong> initial web-surface audit to find obvious configuration issues and quick wins.<br> <strong>Example:</strong></p><pre>nikto -h https://fabio.com -o nikto_report.txt</pre><p><strong>How to interpret the output:</strong> treat findings as leads to verify manually; nikto reports are often conservative and need confirmation to rule out false positives.</p><h3>nmap — universal network scanner</h3><p><strong>What it does:</strong> nmap discovers hosts, open ports, service versions, and can fingerprint operating systems. It also supports NSE scripts for more in-depth checks.<br> <strong>When to use it:</strong> active scanning phase — inventory hosts and services before targeted vulnerability checks.<br> <strong>Example (quick audit):</strong></p><pre>nmap -sS -sV -T3 --open -O 192.168.10.0/23 -oA scan_fabio</pre><p><strong>Option notes:</strong> -sS (SYN scan, stealthy), -sV (service/version detection), -T3 (balanced timing), --open (show open ports only), -O (OS detection), -oA (save in all formats). Use NSE scripts selectively (e.g., --script http-title,http-enum) to avoid excessive noise.</p><h3>sublist3r — subdomain enumeration</h3><p><strong>What it does:</strong> sublist3r collects subdomains using public sources and search engines. It’s a fast starting point to build a list of hosts to test.<br> <strong>When to use it:</strong> before active scanning — to know which hosts to include in deeper assessments.<br> <strong>Example:</strong></p><pre>sublist3r -d fabio.com -o subdomains.txt</pre><p><strong>Tip:</strong> combine sublist3r results with crt.sh, Amass, and passive DNS to improve coverage and deduplicate results.</p><h3>sn1per — all-in-one reconnaissance scanner</h3><p><strong>What it does:</strong> sn1per runs multiple tools (nmap, nikto, dirb, SSL checks, etc.) in a pipeline and produces a quick profile of the target. It’s useful for rapid triage.<br> <strong>When to use it:</strong> when you need a fast, automated overview and prioritized findings to guide manual testing.<br> <strong>Example:</strong></p><pre>sn1per -t fabio.com</pre><p><strong>Warning:</strong> sn1per runs many tests by default. Use it in controlled environments and obtain authorization if testing third-party infrastructure.</p><h3>theHarvester — harvest public contact surface</h3><p><strong>What it does:</strong> theHarvester searches for email addresses, domain names, hosts, and IPs across public sources (Google, Bing, PGP, Shodan, etc.). Good for building a contact surface for social engineering testing or mapping public exposure.<br> <strong>When to use it:</strong> early in recon to identify public contacts and potential phishing targets.<br> <strong>Example:</strong></p><pre>theHarvester -d fabio.com -b google -l 200 -f harvester.html</pre><p><strong>Parameter notes:</strong> -d (domain), -b (data backend — google), -l (limit), -f (output file). Combine multiple backends for broader coverage.</p><h3>wafw00f — detect the Web Application Firewall</h3><p><strong>What it does:</strong> wafw00f detects whether a site is behind a WAF and attempts to identify which WAF vendor is in use, using signature checks and behavioral tests.<br> <strong>When to use it:</strong> before attempting any evasion technique or crafting tests that might trigger WAF defenses; useful for shaping your test approach.<br> <strong>Example:</strong></p><pre>wafw00f https://fabio.com</pre><p><strong>How to use results:</strong> if a WAF is detected, slow your test cadence, avoid aggressive scans, and plan for ways to test safely (sandboxing, low-and-slow checks, or coordination with the defender).</p><h3>Practical recommendations and ethics</h3><ol><li><strong>Automate, then verify.</strong> Automated scans give you leads; always validate important findings manually to reduce false positives.</li></ol><p><strong>Get permission.</strong> Never scan or test systems you don’t own or have explicit written authorization to assess. Use labs or staging environments for training.</p><ol><li><strong>Manage noise.</strong> Tools can generate significant traffic. Schedule tests, inform the operations teams if you are testing production, and use low-impact options where possible.</li><li><strong>Aggregate findings.</strong> Export results into a single report: subdomains → open services → highlighted findings → remediation priorities. This makes triage and handoff to the operations team more effective.</li><li><strong>Chain the workflow.</strong> A common effective flow is: discover subdomains (sublist3r/Amass) → inventory services (nmap) → run targeted web checks (nikto/dirb) → automated profiling (sn1per) → manual validation.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23acd94c4150" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Honeypots and Honeynets: Tricking Hackers to Learn Their Secrets]]></title>
            <link>https://medium.com/@heyvazov15/honeypots-and-honeynets-tricking-hackers-to-learn-their-secrets-b3b54eebefa7?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3b54eebefa7</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[honeypot]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 17:38:57 GMT</pubDate>
            <atom:updated>2025-11-01T17:38:57.789Z</atom:updated>
            <content:encoded><![CDATA[<h3>Honeypots and Honeynets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRKdXbe7oqLZxbunOrnmqg.png" /></figure><p>Have you ever wondered how cybersecurity experts study hackers without letting them touch real systems?<br> The answer is simple but brilliant — they build fake ones.</p><p>These fake systems are called <strong>honeypots</strong>, and when several of them work together, we call it a <strong>honeynet</strong>. They are designed to attract cyber attackers, capture their every move, and help analysts understand how real attacks happen in the wild.</p><h3>What Exactly Is a Honeypot?</h3><p>A <strong>honeypot</strong> is a decoy computer or server that looks like a real target. It might have open ports, fake data, and even “vulnerable” services. But behind the scenes, it’s carefully monitored and isolated from the real network.</p><p>The idea is simple: let the attacker think they found something interesting — a weak system, a misconfigured database, or an unprotected SSH server. Once they start exploring, every command they run, every connection they make, and every malware file they drop is recorded for analysis.</p><p>It’s like putting a camera inside a trap and letting the intruder show you exactly how they break in.</p><h3>Why We Use Honeypots</h3><p>The main purpose of a honeypot isn’t to stop attacks directly. Instead, it helps security teams <strong>learn</strong>, <strong>detect</strong>, and <strong>prepare</strong>.</p><p>By analyzing what happens inside a honeypot, defenders can:</p><ul><li>Discover new attack techniques and malware samples</li><li>Identify IP addresses and domains used for malicious activity</li><li>Improve detection rules for IDS, SIEM, and firewalls</li><li>Train SOC analysts on real-world incidents</li></ul><p>In short, honeypots are <strong>cyber laboratories</strong> — safe, controlled environments where attackers reveal their secrets.</p><h3>Types of Honeypots</h3><p>Not all honeypots are the same. Some are simple and lightweight, others are complex and highly realistic.</p><h3>1. Low-Interaction Honeypots</h3><p>These systems simulate only basic services, like SSH or HTTP.<br> They don’t run a real operating system — they only pretend to respond like one.<br> They’re easy to manage and safe to deploy, but they give limited information.</p><p><strong>Example tools:</strong> Honeyd, Cowrie, KFSensor.</p><h3>2. High-Interaction Honeypots</h3><p>These are full systems running real operating systems and services.<br> They give attackers complete freedom — and in return, analysts get detailed insight into their methods.<br> Because they’re real systems, they must be carefully isolated to prevent any escape into the real network.</p><p><strong>Example tools:</strong> Dionaea, Kippo, Modern Honeypot Network (MHN).</p><h3>From One Trap to Many: The Honeynet</h3><p>A <strong>honeynet</strong> takes the idea of a honeypot to the next level. Instead of one fake system, it’s a <strong>network</strong> of multiple honeypots that look like a small organization.</p><p>A typical honeynet might include:</p><ul><li>A fake web server with known vulnerabilities</li><li>A “database” server containing realistic dummy data</li><li>A few “employee” computers communicating with each other</li></ul><p>When anattacker enters this network, analysts can watch everything — from the first scan to lateral movement and privilege escalation. It’s a powerful way to study how hackers behave once they get inside a network.</p><h3>Real Value for Cyber Defenders</h3><p>The information collected from honeypots and honeynets can be used to:</p><ul><li>Develop new <strong>threat intelligence</strong> (IOCs, TTPs, C2 addresses)</li><li>Improve <strong>incident response</strong> procedures</li><li>Enhance <strong>machine learning</strong> models for intrusion detection</li><li>Create realistic <strong>training scenarios</strong> for blue team exercises</li></ul><p>In shor, honeypots turn attacks into data, and data into knowledge.</p><h3>Risks and Precautions</h3><p>Although honeypots are designed for research and defense, they can be risky if not properly managed.<br> If a honeypot is connected to the wrong network segment or lacks isolation, an attacker could use it as a <strong>pivot</strong> to attack real systems.</p><p><strong>To stay safe:</strong></p><ul><li>Place honeypots in a separate VLAN or virtual environment</li><li>Block unnecessary outbound traffic</li><li>Monitor and reset them regularly</li><li>Never store real company data inside a honeypot</li></ul><h3>Honypots in the Real World</h3><p>Organizations like <strong>Google</strong>, <strong>IBM X-Force</strong>, and <strong>Rapid7</strong> use global honeypot networks to study large-scale threats such as botnets, phishing campaigns, and ransomware operations.<br> Even individual researchers deploy small honeypots to track brute-force attempts or SSH scans happening on the internet every day.</p><p>These insights feed into global databases like <strong>AbuseIPDB</strong>, <strong>VirusTotal</strong>, and <strong>ThreatFox</strong>, helping everyone strengthen their defenses.</p><p>Honeypots and honeynets remind us that sometimes the best way to learn about the enemy is to let them make the first move.</p><p>By turning curiosity into data and attacks into intelligence, defenders gain a deeper understanding of how the digital battlefield really works.</p><p>Every log, every captured packet, every fake SSH command brings us one step closer to anticipating the next real attack — and stopping it before it happens.</p><p>So next time you hear about a “honeypot,” remember: it’s not a simple trap. It’s a mirror that shows us how the dark side of the internet truly behaves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3b54eebefa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Triage and CVSS]]></title>
            <link>https://medium.com/@heyvazov15/understanding-triage-and-cvss-a4ecde674661?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4ecde674661</guid>
            <category><![CDATA[soc-analyst]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cvss]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 17:24:48 GMT</pubDate>
            <atom:updated>2025-11-01T17:24:48.870Z</atom:updated>
            <content:encoded><![CDATA[<h3>Triage and CVSS</h3><h3>Triage Categories</h3><p>Triage is the process of classifying security events based on their severity and urgency. It helps analysts decide what needs immediate attention and what can be handled later.</p><h3>Main Categories</h3><ol><li><strong>Informational</strong></li></ol><ul><li>The event is logged but does not require any immediate action.</li><li><strong>Example:</strong> A normal user login or antivirus database update.</li><li><strong>Action:</strong> Record in logs; include in reports if needed.</li></ul><p><strong>2. Warning</strong></p><ul><li>Indicates potentially suspicious activity that should be monitored closely, but there are no clear signs of compromise yet.</li><li><strong>Example:</strong> Several failed login attempts or unusual network traffic patterns</li><li><strong>Action:</strong> Increase monitoring, check the source of the activity.</li></ul><p><strong>3. Urgent</strong></p><ul><li>Requires response within 24 hours. The event might indicate a potential security incident that could escalate if ignored.</li><li><strong>Example:</strong> Malware detected on a workstation without evidence of data exfiltration.</li><li><strong>Action:</strong> Isolate the affected system, perform deeper analysis, prevent further spread</li></ul><p><strong>4. Emergency</strong></p><ul><li>Demands immediate action. There are clear indicators of an active attack or ongoing incident.</li><li><strong>Example:</strong> Active file encryption (ransomware), real-time data exfiltration, or C2 communications.</li><li><strong>Action:</strong> Immediate containment (disconnect from network), activate the incident response playbook, call DFIR specialists.</li></ul><h3>Common Vulnerability Scoring System (CVSS)</h3><p><strong>CVSS</strong> (Common Vulnerability Scoring System) is a standardized method for assessing the <strong>severity of vulnerabilities</strong>. It helps organizations prioritize which vulnerabilities to fix first based on risk.</p><p>Many tools such as IDS/IPS systems, SIEMs, and vulnerability scanners (for example, Nessus) use CVSS scores to indicate the seriousness of detected vulnerabilities.</p><h3>Key Components of CVSS</h3><ol><li><strong>Base Score</strong></li></ol><ul><li>Reflects the <strong>intrinsic characteristics</strong> of a vulnerability that do not change over time or across environments.</li><li>Includes parameters such as:</li><li><strong>Attack Vector:</strong> Local, network, or physical.</li><li><strong>Attack Complexity:</strong> Low or high.</li><li><strong>Privileges Required:</strong> None, low, or high.</li><li><strong>User Interaction:</strong> Required or not required.</li><li><strong>Impact:</strong> On confidentiality, integrity, and availability.</li></ul><p><strong>2. Temporal Score</strong></p><ul><li>Shows how the vulnerability changes over time.</li><li><strong>Examples:</strong></li><li>When an exploit becomes publicly available, the risk increases.</li><li>When a patch or mitigation is released, the risk decreases.</li></ul><p><strong>3. Environmental Score</strong></p><ul><li>Adapts the general CVSS rating to a specific organization’s environment.</li><li><strong>Example:</strong> A vulnerability might be low-risk in a regular network but critical in a SCADA or banking system.</li></ul><h3>CVSS Score Scale</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*fWpwx-8C-iDi6_31" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4ecde674661" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BIOS, CMOS and UEFI - What Happens When You Turn On Your Computer]]></title>
            <link>https://medium.com/@heyvazov15/bios-cmos-and-uefi-what-happens-when-you-turn-on-your-computer-ee994e2f6d4e?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee994e2f6d4e</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[boots]]></category>
            <category><![CDATA[boot-process]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 17:07:23 GMT</pubDate>
            <atom:updated>2025-11-01T17:07:23.847Z</atom:updated>
            <content:encoded><![CDATA[<p>When you press the power button on your computer, a lot more happens than just the screen lighting up. Inside, a small but very important component called <strong>BIOS</strong> wakes up first and starts the entire process.</p><h3>What is BIOS</h3><p><strong>BIOS</strong> (Basic Input/Output System) is a small chip on the motherboard that contains software responsible for managing the communication between your <strong>operating system</strong> and your <strong>hardware</strong>.</p><p>It is a mix of hardware and software, a physical chip that holds a small program inside it.</p><p>The main responsibilities of BIOS are:</p><ul><li>Starting the computer (boot process)</li><li>Checking and initializing hardware components</li><li>Managing motherboard settings before the operating system loads</li></ul><p>You can think of BIOS as a <strong>conductor</strong> who prepares all the hardware instruments before the main performance, the operating system, begins.</p><h3>The Boot Process</h3><p>The boot process happens in four main steps:</p><ol><li><strong>Powering Up</strong> — power is sent to all components</li><li><strong>POST (Power On Self Test)</strong> — BIOS checks that the essential hardware is working</li><li><strong>Finding Boot Device</strong> — it looks for the drive that contains the operating system</li><li><strong>Loading the Operating System</strong> — the OS is loaded into memory and starts running</li></ol><h3>POST (Power On Self Test)</h3><p>When the computer first starts, BIOS runs <strong>POST</strong> to make sure all key components like RAM, CPU and video card are working correctly.</p><p>If everything is fine, the computer continues to boot normally. If something is wrong, BIOS will warn you with <strong>a series of beeps</strong>. For example, one short beep usually means everything is fine, while several long beeps can indicate a RAM or video problem.</p><p>Technicians often use a <strong>POST card</strong>, a small tool that plugs into the motherboard and shows diagnostic codes. It helps find exactly where the problem is during boot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*VyATYBXJ4KagKm4YW9Yshg.png" /></figure><h3>CMOS — The Memory That Remembers</h3><p><strong>CMOS (Complementary Metal-Oxide Semiconductor)</strong> stores the system’s startup configuration such as date, time and BIOS settings.</p><p>These settings stay even after the computer is turned off because CMOS is powered by a small <strong>lithium battery</strong> on the motherboard. If the battery dies, all BIOS settings are lost and reset to default.</p><h3>UEFI — The Modern BIOS</h3><p><strong>UEFI (Unified Extensible Firmware Interface)</strong> is the modern, upgraded version of BIOS. It does everything the BIOS does but faster and with more features.</p><p>UEFI has a graphical interface, supports large hard drives, offers <strong>Secure Boot</strong> for better protection and is more user-friendly overall. Almost all modern computers today use UEFI instead of the old BIOS.</p><h3>Operating Systems — The Next Step</h3><p>After BIOS or UEFI finishes its job, it passes control to the <strong>Operating System (OS)</strong> such as Windows, Linux or macOS.</p><p>The OS acts as a <strong>bridge</strong> between you, your applications and the hardware. It makes the computer usable and gives you the environment where everything runs.</p><p>The four main functions of any operating system are:</p><ol><li>Managing hardware</li><li>Managing applications</li><li>Managing files and folders</li><li>Providing a user interface</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee994e2f6d4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Cyber Kill Chain-How Cyber Attacks Unfold]]></title>
            <link>https://medium.com/@heyvazov15/understanding-the-cyber-kill-chain-how-cyber-attacks-unfold-42f3e3c68e3d?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/42f3e3c68e3d</guid>
            <category><![CDATA[cyber-kill-chain]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 11:46:53 GMT</pubDate>
            <atom:updated>2025-10-31T11:46:53.481Z</atom:updated>
            <content:encoded><![CDATA[<p>Every cyberattack follows a pattern. Whether it’s a simple phishing campaign or an advanced nation-state intrusion, attackers move through similar stages — gathering information, exploiting vulnerabilities, and finally achieving their goals.</p><p>This process is known as the <strong>Cyber Kill Chain</strong>, a framework developed by Lockheed Martin to help analysts understand, detect, and stop attacks at every stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dcralYrfkC71FigL.jpg" /></figure><p>Let’s walk through each phase step by step.</p><h3>1. Reconnaissance</h3><p><strong>Goal:</strong> Gather information about the target.</p><p>This is where everything begins. The attacker collects as much data as possible to plan the attack. There are two main types:</p><p><strong>Passive Reconnaissance:</strong><br> No direct contact with the target — just gathering open-source information from the internet. This can include company websites, LinkedIn profiles, job listings, and public data such as <em>WHOIS</em> records. Tools like Google Dorking or Maltego are often used here.</p><p><strong>Active Reconnaissance:</strong><br> Involves directly probing the network. This could mean scanning ports, grabbing service banners, running vulnerability scans, or enumerating users and shares.</p><p>Even small details matter. For example, the robots.txt file on a website shows which pages search engines can or cannot crawl — sometimes revealing hidden paths that attackers can explore.</p><h3>2. Weaponization</h3><p><strong>Goal:</strong> Build or prepare the attack payload.</p><p>After collecting enough information, the attacker creates or selects the best weapon to exploit the target. This can include:</p><ul><li>Using public exploits or frameworks like Metasploit</li><li>Crafting malicious documents or payloads</li><li>Building phishing attachments or malicious links</li><li>Adding evasion techniques to bypass antivirus detection</li></ul><p>Everything here is tailored to the target, based on what was discovered during reconnaissance.</p><h3>3. Delivery</h3><p><strong>Goal:</strong> Get the weapon to the target system.</p><p>This is the transmission stage — the attacker delivers the malicious payload through a chosen vector. Common delivery methods include:</p><ul><li>Phishing emails with infected attachments</li><li>Malicious links or websites</li><li>Drive-by downloads</li><li>Exploiting exposed services like RDP or VPN</li></ul><p>At this point, success depends on the target taking the bait or a system vulnerability being exploited.</p><h3>4. Exploitation</h3><p><strong>Goal:</strong> Execute the attack code.</p><p>Once the malicious payload reaches the target, the exploit triggers. This could involve:</p><ul><li>Running a macro inside a malicious Office document</li><li>Exploiting a known software vulnerability</li><li>Executing PowerShell or shellcode commands</li></ul><p>If successful, the attacker gains initial access — the first real foothold inside the network.</p><h3>5. Installation</h3><p><strong>Goal:</strong> Maintain access and persistence.</p><p>After exploitation, the attacker installs additional tools or backdoors to keep control, even if the system reboots or security tools are updated.</p><p>They might use:</p><ul><li>Remote Access Trojans (RATs)</li><li>Rootkits or malicious services</li><li>Scheduled tasks or registry modifications</li><li>PowerShell scripts that re-launch after reboot</li></ul><p>Persistence ensures that even if the initial infection vector is discovered, the attacker still has a way back in.</p><h3>6. Command and Control (C2)</h3><p><strong>Goal:</strong> Communicate with the compromised system.</p><p>Now the attacker needs a way to issue commands and move data. This is done through <strong>Command and Control (C2)</strong> channels.<br> These channels might use regular protocols like HTTP, HTTPS, or DNS — blending in with normal traffic to stay hidden.</p><p>Through C2, the attacker can:</p><ul><li>Send new payloads or commands</li><li>Steal credentials</li><li>Expand infection to other systems</li><li>Exfiltrate sensitive data</li></ul><h3>7. Actions on Objectives</h3><p><strong>Goal:</strong> Achieve the intended mission.</p><p>At this final stage, the attacker does what they came for — whether it’s stealing data, encrypting systems, or causing disruption.<br> Typical activities include:</p><ul><li>Lateral movement across the network</li><li>Privilege escalation</li><li>Data exfiltration</li><li>Ransomware deployment</li></ul><p>This is where the real damage happens.</p><h3>Why the Kill Chain Matters</h3><p>The Cyber Kill Chain helps defenders recognize that every stage of an attack leaves traces- logs, alerts, anomalies, or artifacts.<br> By detecting and disrupting the attack early — during reconnaissance or delivery, for example — security teams can prevent it from reaching the final, damaging stages.</p><p>Understanding this chain allows SOC analysts, incident responders, and blue teamers to <strong>map alerts to attacker behavior</strong> and <strong>respond faster</strong> when something suspicious occurs.</p><p>Cyberattacks are rarely random. They follow patterns, tools, and tactics that repeat over time.<br> Knowing the Cyber Kill Chain gives defenders the advantage — transforming an overwhelming attack into a predictable, traceable process.</p><p>In cybersecurity, knowledge of the attacker’s process is your strongest defense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42f3e3c68e3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Security Beyond Firewalls: DHCP Attacks, IDS/IPS Evasion]]></title>
            <link>https://medium.com/@heyvazov15/network-security-beyond-firewalls-dhcp-attacks-ids-ips-evasion-87686f200cf6?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/87686f200cf6</guid>
            <category><![CDATA[dhcp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 11:41:26 GMT</pubDate>
            <atom:updated>2025-10-31T11:41:26.742Z</atom:updated>
            <content:encoded><![CDATA[<p>Firewalls are powerful, but they are not the final line of defense. In real-world networks, attackers often exploit weaknesses in other layers of the infrastructure — from DHCP misconfigurations to IDS/IPS blind spots.<br> To defend effectively, analysts must understand not only how these attacks work but also how modern detection systems and signature engines like <strong>YARA</strong> help identify them.</p><h3>DHCP Attacks: Exploiting the Foundation of IP Assignment</h3><p>The <strong>Dynamic Host Configuration Protocol (DHCP)</strong> automatically assigns IP addresses to devices in a network.<br> While this process makes network management easier, it can also be abused by attackers to cause denial of service or redirect traffic.</p><h3>1. DHCP Starvation Attack</h3><p>A <strong>DHCP Starvation Attack</strong> aims to <strong>exhaust all available IP addresses</strong> in the DHCP pool, preventing legitimate users from obtaining one.</p><p><strong>How it works:</strong></p><ol><li>The attacker connects to the local network.</li><li>They send <strong>massive numbers of DHCP Discover or Request packets</strong>, each time using a <strong>different spoofed MAC address</strong>.</li><li>The DHCP server treats every request as unique and allocates a new IP address.</li><li>Eventually, the pool runs out of available IPs, and real devices can no longer connect.</li></ol><p><strong>Impact:</strong></p><ul><li>Denial of Service (DoS) for legitimate clients.</li><li>Network outages and user disconnection.</li></ul><h3>2. Rogue DHCP Server</h3><p>A <strong>Rogue DHCP Server</strong> is an <strong>unauthorized DHCP server</strong> placed in the network, intentionally or accidentally.<br> It distributes <strong>false configuration settings</strong> to clients — for example, a fake default gateway or DNS server — to <strong>redirect traffic through the attacker’s system</strong>.</p><p><strong>Result:</strong></p><ul><li>The attacker can intercept, modify, or monitor network communications.</li><li>It may enable man-in-the-middle (MITM) attacks, phishing redirections, or traffic manipulation.</li></ul><h3>Defending Against DHCP Attacks</h3><p>Effective DHCP protection relies on <strong>Layer 2 security controls</strong> implemented in switches and segmentation strategies.</p><h3>1. DHCP Snooping</h3><p>The switch defines which ports are <em>trusted</em> to send DHCP server responses.<br> Only legitimate servers are allowed to issue IP configurations. Any DHCP packets coming from untrusted ports are dropped.</p><h3>2. Port Security</h3><p>Limits the number of allowed MAC addresses per port.<br> This prevents attackers from generating hundreds of fake MAC addresses to flood the DHCP server.</p><h3>3. VLAN Segmentation</h3><p>Dividing the network into separate VLANs isolates broadcast traffic.<br> Even if a rogue DHCP server appears in one VLAN, it cannot affect clients in another.</p><h3>4. Network Monitoring and Logging</h3><p>Continuous monitoring helps detect:</p><ul><li>Unusual spikes in DHCP traffic.</li><li>The sudden presence of new DHCP servers.</li><li>Duplicate or conflicting IP assignments.</li></ul><h3>IDS/IPS: Going Beyond Firewall Filtering</h3><p>Firewalls filter traffic based on predefined rules, but they can’t always detect complex or hidden attacks.<br> That’s where <strong>Intrusion Detection Systems (IDS)</strong> and <strong>Intrusion Prevention Systems (IPS)</strong> come in.<br> These systems inspect network traffic in depth — often analyzing packet payloads — to identify malicious activity.</p><p>However, attackers have developed many <strong>evasion techniques</strong> to bypass IDS/IPS detection.</p><h3>Common IDS/IPS Evasion Techniques</h3><h4>1. Protocol-Level Evasion</h4><p>Attackers exploit weaknesses in how IDS reconstructs network traffic.<br> They use:</p><ul><li><strong>Fragmented packets</strong> that IDS cannot fully reassemble.</li><li><strong>Overlapping fragments</strong> with manipulated offsets.</li><li><strong>Invalid header combinations</strong> that confuse traffic analyzers.</li></ul><p><strong>Goal:</strong> make malicious payloads invisible or unreadable to the detection engine.</p><h4>2. Polymorphic Malware</h4><p>A polymorphic malware constantly changes its <strong>code structure or encryption keys</strong> each time it spreads.<br> As a result, it generates <strong>unique signatures</strong> for every instance, making traditional signature-based detection almost useless.</p><h4>3. Encryption</h4><p>When attackers use <strong>TLS, HTTPS, or VPN tunnels</strong>, the content of network traffic becomes <strong>encrypted</strong>.<br> IDS/IPS systems can still see the headers (source, destination, protocol) but cannot inspect payloads — meaning the malicious content stays hidden.</p><h4>4. Traffic Obfuscation</h4><p>Includes <strong>IP spoofing</strong>, <strong>protocol tunneling</strong>, and <strong>proxy redirection</strong> to disguise the origin or nature of the traffic.<br> For example, malware might tunnel data over DNS requests or ICMP packets to avoid inspection.</p><h4>5. Timing-Based Evasion</h4><p>Instead of sending a flood of packets at once, the attacker sends them <strong>slowly over time</strong> — or during off-peak hours — so the traffic blends into normal behavior.</p><h4>6. False Positive Flooding</h4><p>The attacker deliberately generates <strong>a large number of benign alerts</strong>.<br> Security analysts become overwhelmed, and real attacks go unnoticed.<br> This tactic targets the human factor rather than the detection algorithm.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87686f200cf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YARA: The Language of Malware Detection]]></title>
            <link>https://medium.com/@heyvazov15/yara-the-language-of-malware-detection-9832496c5423?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9832496c5423</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[yara]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 11:37:38 GMT</pubDate>
            <atom:updated>2025-10-31T11:37:38.617Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of cybersecurity, attackers are constantly evolving their techniques — changing file names, obfuscating payloads, and rewriting code to avoid detection. Traditional antivirus engines often fail to keep up with these rapidly shifting threats.</p><p>This is where <strong>YARA</strong> comes in — a lightweight but powerful tool that helps analysts identify, classify, and hunt for malware based on patterns, not just signatures.</p><h3>What Is YARA?</h3><p><strong>YARA</strong> stands for <em>“Yet Another Ridiculous Acronym”</em>, though its purpose is far from ridiculous. It’s a <strong>rule-based detection engine</strong> used by malware researchers, SOC analysts, and forensic investigators to <strong>describe malware families</strong> and <strong>identify patterns in files or memory</strong>.</p><p>Think of YARA rules as <strong>search templates for malware</strong> — they define how a malicious file “looks” on the inside rather than relying on a simple hash or filename.</p><p>Originally developed by <strong>Victor Alvarez</strong> at VirusTotal, YARA has become a standard part of digital forensics, incident response (DFIR), and threat intelligence workflows.</p><h3>How YARA Works</h3><p>At its core, YARA analyzes files using <strong>rules</strong> written by security professionals.<br> Each rule describes a set of features that define a specific threat — such as strings, byte patterns, or even logical relationships between multiple elements.</p><p>A YARA rule usually contains three main sections:</p><ol><li><strong>Meta Section</strong><br> Describes metadata like the author, version, or purpose of the rule.<br> (This helps organize large rule collections used by SOCs or malware labs.)</li><li><strong>Strings Section</strong><br> Contains the text, hexadecimal, or regular expression patterns that should be searched for within a file.</li><li><strong>Condition Section</strong><br> Defines when a match should trigger — for example, when <em>all</em> strings are found, or when a file exceeds a certain size.</li></ol><h3>Example of a Basic YARA Rule</h3><pre>rule Suspicious_Executable<br>{<br>    meta:<br>        author = &quot;Cyber Analyst&quot;<br>        description = &quot;Detects files with suspicious PE characteristics&quot;</pre><pre>    strings:<br>        $a = &quot;This program cannot be run in DOS mode&quot;<br>        $b = { 6A 40 68 00 30 00 00 6A 14 8D 91 }</pre><pre>    condition:<br>        all of them<br>}</pre><p><strong>Explanation:</strong></p><ul><li>The <strong>strings</strong> section defines what patterns YARA should look for — here, one ASCII string and one sequence of bytes</li><li>The <strong>condition</strong> specifies that <em>all</em> strings must appear in the target file for the rule to trigger.</li><li>If YARA finds both, it marks the file as suspicious — often the first step in deeper malware analysis.</li></ul><h3>Beyond the Basics: Advanced YARA Techniques</h3><p>While the example above is simple, YARA supports much more sophisticated logic. Analysts can combine rules, use Boolean operators, reference file sizes, and even include external modules for advanced analysis.</p><p>Here are a few capabilities that make YARA so powerful:</p><h3>1. Regular Expressions</h3><p>YARA can detect patterns that vary slightly — such as URLs, registry keys, or strings obfuscated with small changes.<br> Example:</p><pre>$c = /http[s]?:\/\/[a-z0-9_.-]+/</pre><h3>2. File Size and Type Conditions</h3><p>Analysts can ensure rules only apply to specific file types or size ranges to reduce false positives:</p><pre>condition:<br>    filesize &lt; 1MB and any of ($a, $b, $c)</pre><h3>3. Modules</h3><p>YARA has modules for analyzing different file formats, like <strong>PE</strong>, <strong>ELF</strong>, or <strong>Cuckoo sandbox reports</strong>.<br> These modules let analysts inspect imported functions, sections, and version info inside executables.</p><p>Example:</p><pre>import &quot;pe&quot;</pre><pre>condition:<br>    pe.imports(&quot;kernel32.dll&quot;, &quot;VirtualAlloc</pre><p>This rule looks for executables that call VirtualAlloc, a common API function used by malware to allocate memory for payloads.</p><h3>Why YARA Matters</h3><p>In modern cybersecurity operations, YARA sits between <strong>signature-based detection</strong> and <strong>behavioral analysis</strong>.<br> It provides a flexible middle ground: rules are <strong>customizable, human-readable</strong>, and easy to integrate into automation workflows.</p><p>Here’s why it’s so valuable:</p><ul><li><strong>Scalability:</strong> Analysts can scan thousands of files or memory images quickly for known indicators.</li><li><strong>Reusability:</strong> A single rule can be shared and reused across multiple tools and platforms.</li><li><strong>Contextual Power:</strong> Unlike simple hashes, YARA detects the <em>essence</em> of malware families — even when code is slightly changed.</li><li><strong>Integration:</strong> Works seamlessly with tools like <strong>VirusTotal</strong>, <strong>Wazuh</strong>, <strong>Velociraptor</strong>, <strong>MISP</strong>, and <strong>Autopsy</strong> for automated detection.</li></ul><h3>Real-World Use Cases</h3><ul><li><strong>Incident Response (IR):</strong> During a breach, responders use YARA to sweep systems for known threat signatures.</li><li><strong>Threat Hunting:</strong> SOC teams deploy YARA rules across endpoints or servers to proactively look for artifacts of APTs or ransomware.</li><li><strong>Malware Research:</strong> Reverse engineers use YARA to classify samples and link them to known threat groups.</li><li><strong>Digital Forensics:</strong> Investigators search memory dumps or disk images for embedded payloads or IOCs.</li></ul><h3>Example: Detecting Ransomware with YARA</h3><p>Here’s a simplified rule to detect files containing references to ransomware-like behavior:</p><pre>rule Possible_Ransomware<br>{<br>    meta:<br>        author = &quot;SOC Analyst&quot;<br>        description = &quot;Detects suspicious strings used in ransomware payloads&quot;</pre><pre>    strings:<br>        $encrypt = &quot;AES&quot; nocase<br>        $shadow = &quot;vssadmin delete shadows&quot; nocase<br>        $ext = &quot;.locked&quot; nocase</pre><pre>    condition:<br>        2 of ($encrypt, $shadow, $ext)<br>}</pre><p>This rule will trigger if at least two of the defined indicators — encryption usage, shadow copy deletion, or a ransomware file extension — appear in the same file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9832496c5423" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Address Translation (NAT) and Its Types]]></title>
            <link>https://medium.com/@heyvazov15/network-address-translation-nat-and-its-types-0eaa941f2ff9?source=rss-421b65e9552c------2</link>
            <guid isPermaLink="false">https://medium.com/p/0eaa941f2ff9</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[nat]]></category>
            <dc:creator><![CDATA[Huseyn Eyvazov]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 11:40:14 GMT</pubDate>
            <atom:updated>2025-10-30T11:40:14.760Z</atom:updated>
            <content:encoded><![CDATA[<p>Network Address Translation, or <strong>NAT</strong>, is one of the most essential technologies that allows private networks to connect to the public Internet safely and efficiently.<br> It hides internal IP addresses behind a single public one, reduces IPv4 exhaustion, and adds a layer of security by masking internal hosts.</p><p>Let’s go through how NAT works, its types, and the key mechanisms like port forwarding and NAT traversal</p><h3>What Is NAT?</h3><p>NAT works by modifying the <strong>IP address information inside packets</strong> as they pass through a router or firewall.<br> When a private device (like 192.168.1.10) sends a packet to the Internet, NAT replaces its source IP with a <strong>public IP address</strong> (like 203.0.113.5).<br> The router keeps a translation table so that when a response comes back, it knows which private device should receive it.</p><h3>Most Common Types of NAT</h3><h3>1. Static NAT (1:1 Mapping)</h3><p>In <strong>Static NAT</strong>, one private IP is permanently mapped to one public IP.<br> The mapping never changes — it’s fixed and predictable.</p><p><strong>Example:</strong></p><blockquote><em>Internal host </em><em>192.168.1.10 is always represented to the outside world as </em><em>203.0.113.10.</em></blockquote><p><strong>Pros:</strong></p><ul><li>Ideal for servers that must be reachable from the Internet (like a web or mail server).</li><li>Easy to configure and stable.</li></ul><p><strong>Cons:</strong></p><ul><li>Not scalable — every internal device needs its own public IP.</li><li>Wastes public addresses in large environments.</li></ul><h3>2. Dynamic NAT</h3><p>Dynamic NAT uses a <strong>pool of public IP addresses</strong> instead of a fixed mapping.<br> When an internal host initiates a connection, the router dynamically assigns one of the available public IPs from the pool.</p><p>Once the session ends, that public IP becomes available again for others to use.</p><p><strong>Example:</strong></p><blockquote><em>Intrnal IPs </em><em>192.168.1.10 and </em><em>192.168.1.11 may both go online, and the router assigns them addresses randomly from a pool like </em><em>203.0.113.10–203.0.113.20.</em></blockquote><p><strong>Pros:</strong></p><ul><li>More flexible than Static NAT.</li><li>Provides basic address hiding.</li></ul><p><strong>Cons:</strong></p><ul><li>Still limited by the size of the public IP pool.</li><li>Not ideal for inbound connections from the Internet.</li></ul><h3>Pre- and Post-Processing NAT</h3><p>Firewalls and routers can apply NAT at different stages of traffic handling.</p><h3>Pre-Processing NAT</h3><p>This type of NAT occurs <strong>before</strong> the firewall applies its security policies.<br> It means the IP addresses are translated first, and then the firewall rules are evaluated.</p><p><strong>Example:</strong></p><ul><li>You have a web server inside your network: 10.0.0.10.</li><li>From the Internet, it’s known as 203.0.113.5.</li><li>When an external client sends a request to 203.0.113.5, the NAT engine translates it to 10.0.0.10 <em>before</em> the firewall checks access rules.</li></ul><p><strong>Result:</strong><br> Firewall policies must be written using <strong>translated addresses</strong>, not the original ones.</p><h3>Post-Processing NAT</h3><p>Post-NAT happens <strong>after</strong> the firewall has made its decision to allow or deny the traffic.<br> It’s often used to adjust addresses for routing, VPN connections, or load balancing once the firewall has approved the session.</p><p><strong>Example:</strong></p><ul><li>A user connects through VPN.</li><li>The firewall first decides to allow the connection.</li><li>After that, Post-NAT changes the source or destination IP so the traffic can be properly routed to its final destination.</li></ul><p><strong>Usedin:</strong></p><ul><li>VPN tunnels</li><li>Return traffic correction</li><li>Load balancing environments</li></ul><h3>Port Forwarding (DNAT in Action)</h3><p><strong>Port forwarding</strong> is one of the most common real-world applications of NAT.<br> It allows external devices to access a specific service inside your private network.</p><p><strong>Example:</strong></p><blockquote><em>You want users on the Internet to access your local web server.<br> You create a NAT rule:<br> </em><em>85.120.10.5:8080 → 192.168.1.10:80</em></blockquote><p>Now, when someone connects to 85.120.10.5 on port 8080, the router forwards the traffic to your internal host 192.168.1.10 on port 80.</p><p>This is how home routers expose services like web servers, FTP, or remote desktop connections.</p><h3>NAT Traversal (NAT-T)</h3><p>Sometimes, NAT makes direct peer-to-peer communication difficult — for example, in VPNs, video calls, or online games.<br> <strong>NAT Traversal (NAT-T)</strong> solves this by allowing devices behind different NATs to connect <strong>directly</strong> to each other.</p><h3>How it works:</h3><ol><li>Both devices open <strong>outgoing connections</strong> to a public relay or STUN/TURN server (NAT always allows outbound traffic).</li><li>The server learns each device’s external IP and port.</li><li>The devices exchange this information through the server.</li><li>They start sending packets directly to each other — NAT recognizes the connection as part of an existing session and lets it pass.</li></ol><p>This technique, called <strong>hole punching</strong>, enables direct communication without manual port forwarding.</p><p><strong>Used in:</strong></p><ul><li>VPNs (IPSec with NAT-T, OpenVPN, WireGuard)</li><li>VoIP and video calls (Zoom, Skype, Telegram)</li><li>Online gaming and peer-to-peer apps</li></ul><p><strong>Important:</strong> NAT-T doesn’t “hack” or bypass NAT — it simply takes advantage of how NAT handles outgoing traffic.</p><h3>SNAT vs. DNAT</h3><p><strong>TypeFull NameWhat It ChangesCommon Use CaseSNAT</strong>Source NATSource IP address (private → public)When internal devices access the Internet<strong>DNAT</strong>Destination NATDestination IP address (public → private)When external users access internal servers (port forwarding)</p><h3>Example: SNAT</h3><ul><li>Internal host: 192.168.1.10 → Internet</li><li>NAT replaces source IP with 203.0.113.5 (router’s public IP)</li><li>External server only sees 203.0.113.5.</li></ul><h3>Example: DNAT</h3><ul><li>External client connects to 203.0.113.5:80</li><li>NAT replaces destination with internal web server 192.168.1.20:80</li><li>The internal host receives the request as if it was sent directly.</li></ul><h3>Final Thoughts</h3><p>NAT remains one of the cornerstones of modern networking.<br> It allows thousands of private devices to share a few public IPs, protects internal systems from direct exposure, and keeps communication efficient.</p><p>Understanding the difference between Static, Dynamic, SNAT, DNAT, and how Pre- and Post-NAT work is essential for anyone managing routers, firewalls, or VPNs.</p><p>In today’s hybrid networks — where cloud services, VPNs, and VoIP coexist — mastering NAT is not just a networking skill, it’s a <strong>security necessity</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0eaa941f2ff9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>