Skip to content

Instantly share code, notes, and snippets.

View timb-machine's full-sized avatar

Tim Brown timb-machine

View GitHub Profile
@timb-machine
timb-machine / A comparitive look at ATT&CK for ICS "contributors" by sector and region
Created April 30, 2026 06:43
A comparitive look at ATT&CK for ICS "contributors" by sector and region
105 region/russia/current.md
87 industry/militarydefencsearmed/current.md
85 industry/creditfinancbanktradingstocksforexpayment/current.md
80 industry/transportrailtraincarvehicleroadautomotivboattankerplaneairport/current.md
69 region/americaunitedstates/current.md
66 industry/watergaselectricutilit/current.md
64 industry/servicISPMSPprovid/current.md
61 industry/govern/current.md
60 industry/retailcommerc/current.md
60 industry/foodmealrestauranthospitalitycatering/current.md
@timb-machine
timb-machine / Can ChatGPT solve NCSC's hard problems?
Created April 25, 2026 21:02
Can ChatGPT solve NCSC's hard problems?
prompt: NCSC has a research problem book. Once such problem is the following:
CC2 - How do we make system security assessments more data driven?
Subquestions:
How do we make system security assessments more data driven?
Strands or sub-problems
Why this is important
@timb-machine
timb-machine / What ATT&CK techniques does ChatGPT think are applicable to a payment gateway?
Last active April 25, 2026 21:00
What ATT&CK techniques does ChatGPT think are applicable to a payment gateway?
prompt: what mitre att&ck techniques apply to payment gateway?
A payment gateway isn’t a single technique in MITRE ATT&CK terms—it’s an environment (web apps, APIs, databases, cloud infra, third-party integrations). So the relevant techniques are the ones attackers commonly use against those components. Here’s a grounded mapping of the most applicable ATT&CK techniques to a typical payment gateway stack:
---
## 🔐 Initial Access (how attackers get in)
* **T1190 – Exploit Public-Facing Application**
Payment gateways expose APIs and web endpoints → vulnerable endpoints are prime targets.
@timb-machine
timb-machine / ChatGPT producing vulnerable COBOL
Created April 12, 2026 21:10
ChatGPT producing vulnerable COBOL
Here’s a **realistic, educational example of a vulnerable COBOL pattern**. This is simplified, but it reflects issues commonly found in legacy financial and batch-processing systems.
---
## ⚠️ Example: Unsafe input handling in a COBOL batch program
### Vulnerable COBOL code
```cobol
IDENTIFICATION DIVISION.
@timb-machine
timb-machine / What does ChatGPT think a system of record is in the UK and US?
Created April 12, 2026 20:54
What does ChatGPT think a system of record is in the UK and US?
prompt: what's a common approach to systems of record in the UK?
In the UK (especially in banking, insurance, and government), “systems of record” (SoRs) are treated as **authoritative, tightly controlled data sources**—and the common approach is conservative: protect them heavily, change them slowly, and build flexibility *around* them rather than *inside* them.
Here’s how that typically looks in practice:
---
## 1. Core idea: stable “source of truth”
@timb-machine
timb-machine / How well does ChatGPT estimate it will do on a treasury app...
Created April 9, 2026 19:04
How well does ChatGPT estimate it will do on a treasury app...
prompt: what are the common treasury platforms in a bank?
Banks use a mix of specialized treasury platforms to manage liquidity, risk, funding, trading, and payments. While the exact stack varies by size and complexity, most banks rely on systems across these core categories:
---
## 🏦 1. Treasury Management Systems (TMS)
These are the backbone for managing cash, liquidity, funding, and financial risk.
@timb-machine
timb-machine / A pair of SFPs
Created April 3, 2026 22:01
A pair of SFPs
<---eth0/0/7--->:
Common information:
Transceiver Type :SFP/SFP+
Compliance :1000BASE-SX
Connector Type :LC
WaveLength(nm) :850
Transfer Distance(m) :0
Digital Diagnostic Monitoring :YES
Manufacture information:
Manu. Serial Number :CSGE1O50417
@timb-machine
timb-machine / XikeStor SKS8310-8X booting...
Created April 3, 2026 18:26
XikeStor SKS8310-8X booting...
U-Boot 2011.12.(3.6.11.55242) (Jun 10 2025 - 17:30:34)
Board: RTL9300 CPU:800MHz LX:175MHz DDR:400MHz
DRAM: 512 MB
SPI-F: MXIC/C22019/MMIO32-4/ModeC 1x32 MB (plr_flash_info @ 83fc1acc)
Loading(93) 65536B env. variables from offset 0x1c0000
boardId_init40
Net: Net Initialization Skipped
No ethernet found.
@timb-machine
timb-machine / UK indymedia interview at DefCon 2005 (published in HackThisZine (HTZ) #3)
Created March 28, 2026 07:55
UK indymedia interview at DefCon 2005 (published in HackThisZine (HTZ) #3)
(substr($url, 7), 0,
+; " . ace("\
\", "\ _SERVE
+) { OST $l
omme cat=
ept- te
n(\" cl
t: M ebKi
ko -u
gt nn
@timb-machine
timb-machine / dump-detections.py
Created January 28, 2026 14:06
dump-detections.py
#!/usr/local/python/bin/python3
from mitreattack.stix20 import MitreAttackData
import re
mitre_attack_data = MitreAttackData("enterprise-attack.json")
techniques = mitre_attack_data.get_techniques_by_platform("ESXi", remove_revoked_deprecated=True)
techniques_cache = {}
for technique in techniques:
techniques_cache[technique["id"]] = {}