Loading
  • Home
  • Blog
  • Resume
  • GitHub

Maisie is a researcher, this is her website

Fig 1.1 — At investment banks, my work ranged from research to diagnosing problems in high-frequency trading systems to keep equity and commodity quotes accurate. The windows show a Bloomberg Terminal's Global Macro Movers (GMM <GO>) function, alongside a price chart and realized volatility surface for crude oil contracts. I explain how I built this here.

Maisie is a researcher, this is her website

tools — radare2 — 96×26
maisie@mbp ~/tools % unzip -qoj gdsecurityprovider.aar '*arm64*.so'
maisie@mbp ~/tools % radare2 -A -w libgdsecurityprovider.so
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[0x00002c40]> s sym.gd_attest_verify
[0x00003a10]> pd 16
;-- sym.gd_attest_verify:
0x00003a10fd7bbea9stp x29, x30, [sp, -0x20]!
0x00003a14fd030091mov x29, sp
0x00003a18f35301a9stp x19, x20, [sp, 0x10]
0x00003a1cf30300aamov x19, x0 ; ctx
0x00003a20601a40b9ldr w0, [x19, 0x18] ; manifest_len
0x00003a2401ffff97bl sym.gd_verify_manifest
0x00003a281f000071cmp w0, 0
,==<0x00003a2cc0000054b.eq 0x3a44 ; invalid -> reject
| 0x00003a3020008052mov w0, 1 ; TRUST_OK
| 0x00003a34601e00b9str w0, [x19, 0x1c]
| 0x00003a38f35341a9ldp x19, x20, [sp, 0x10]
| 0x00003a3cfd7bc2a8ldp x29, x30, [sp], 0x20
| 0x00003a40c0035fd6ret
`-->0x00003a44e00313aamov x0, x19
0x00003a4855fdff97bl sym.gd_log_reject
0x00003a4c00008052mov w0, 0 ; TRUST_FAIL
[0x00003a10]> s 0x00003a2c
[0x00003a2c]> pd 1
0x00003a2cc0000054b.eq 0x3a44
[0x00003a2c]> wx c1
[0x00003a2c]> pd 1
0x00003a2cc1000054b.ne 0x3a44
tools — -zsh — 96×26
maisie@mbp ~/tools % binwalk gdsecurityprovider.aar
 
DECIMALHEXADECIMALDESCRIPTION
--------------------------------------------------------------------------------
00x0Zip archive data, at least v2.0 to extract, name: AndroidManifest.xml
11880x4A4Zip archive data, at least v2.0 to extract, name: classes.jar
1984640x30740Zip archive data, at least v2.0 to extract, name: jni/arm64-v8a/libgdsecurityprovider.so
3198760x4E184End of Zip archive, footer length: 22
 
maisie@mbp ~/tools % binwalk -A libgdsecurityprovider.so | more
 
DECIMALHEXADECIMALDESCRIPTION
--------------------------------------------------------------------------------
148640x3A10ARM64 instructions, function prologue
152200x3B74ARM64 instructions, function prologue
 

Fig 2.1 — At Grab, I checked third-party binaries shipped in the company's mobile apps. Here, I use radare2 to examine an anti-tamper check. When verification fails (w0 == 0), the B.EQ at 0x3a2c jumps to the reject/log path at 0x3a44. Changing 0x540000c0 → 0x540000c1 turns B.EQ into B.NE. After this one-byte patch, a failed verification reaches TRUST_OK and bypasses the check.

tip: click a window and type — try help, ls, pd 8, binwalk gdsecurityprovider.aar

Maisie is a researcher, this is her website

IDA - CSAgent.sys.i64  (070242d1703d89b10ce3cc53e6e295cf07dbc2c1e4b3481156fb2530251444c8)
A▲● ▶❚❚■ ▾
Library function Regular function Instruction Data Unexplored External symbol Lumina function
▤ IDA View-A≡ Strings◉ Hex View-1◆ Local Types☰ Imports☰ Exports
Functions
Graph overview
cmp ecx, 6 jnz loc_6A69776F6F0A
loc_6A756E65: mov rdx, [r13+0] mov r9d, r10d cmp dword ptr [rdx], 4 mov rax, [rdx+8] mov r8, [rax+r11*8] ; R11: 0x14 ; RAX: buffer w/ pointers (though at 0x14 addr is foo'barred) ; R8: unmapped invalid memory addr (e.g. 0xffff9c8e`0000008a) ; RAX: ptr buf, 0x14 bad ; R8: unmapped addr jnz short loc_1400E14E8 ; (likely) take; take
loc_6A69776F6F0A: mov r9d, r10d mov rdx, [r13+0] cmp dword ptr [rdx], 4 mov rax, [rdx+8] jnz short loc_1400E1802
loc_1400E14E8: ; check R8 != NULL; R8 == 0? test r8, r8 jz short loc_1400E14F4 ; don't take; skip
test r8, r8 jz short loc_1400E14F4
mov r9d, [r8] ; Faulting Instruction: 0xffff9c8e`0000008a is not paged in, so; not paged in ✷✷✷✷✷
movzx r9d, word ptr [r8] jmp short loc_1400E14F0
loc_1400E14F4: mov [r13+8], r9d jmp loc_1400E1520
Output
100.00% (1694,3104) (867,7) 000E08D7 00000001400E14D7: sub_1400E11D0+307 (Synchronized with Hex View-1) AU: idle   Down   Disk: 148GB

Fig 3.1 — At Traveloka, I handled incidents including the CrowdStrike outage in 2024. The window shows CrowdStrike's kernel-mode driver (CSAgent.sys) disassembled in IDA Pro. An array access goes past its bounds (R8 = [RAX + R11*8], R11 = 0x14). This loads an unmapped kernel address into R8. Reading from that address causes a page fault and a ring-0 bugcheck.

Maisie is a researcher, this is her website

Rear of a silver Leica M8
100-05943/3
F2.01/60ISO 640
DEBUG
USB Mode
  • PTP
  • Mass Storage
  • Leica Custom
USB Connection
PTP
tools — m8tool — 88×24

Fig 4.1 — My interest in cameras led me to reverse engineer the Leica M8's Fujitsu Softune REALOS-based firmware. I found how to access the camera's diagnostic shell and identified two patched instructions in memory. One redirects DNG strip writes to the existing full-width copy routine; the other selects writer mode 0. The full explanation of the hack is here.

Maisie is a researcher, this is her website

IDA - flatkc.i64  (bda990e54c82ac14078a1da4c9cafab2)
A▲● ▶❚❚■▾
Library functionRegular functionInstructionDataUnexploredExternal symbolLumina function
▤ IDA View-A≡ Pseudocode-A◉ Hex View-1◆ Local Types☰ Imports☰ Exports
Functions
ƒsub_FFFFFFFF81710334
ƒsub_FFFFFFFF81710483
ƒsub_FFFFFFFF817103F0
ƒrsa_parse_pub_key
ƒsha256
ƒmemcmp
ƒmachine_halt
ƒemergency_restart
ƒpanic
Names
byte_FFFFFFFF8179A1A0
byte_FFFFFFFF8179A2C0
__initramfs_start
__initramfs_end
void __fastcall sub_FFFFFFFF81710334(_BYTE *buf, __int64 len, _BYTE *key)
{
  int i, j;                    // S-box indices
  __int64 k;                   // byte offset in encrypted body
  unsigned __int8 S[256];      // permutation table
  unsigned __int8 si, sj, v8, v9, x, y, z;

  for ( i = 0; i < 256; ++i )
    S[i] = i;
  // Standard RC4 KSA; key length fixed to 32 bytes
  for ( i = 0, j = 0; i < 256; ++i )
  {
    j = (unsigned __int8)(j + S[i] + key[i & 0x1F]);
    si = S[i]; S[i] = S[j]; S[j] = si;
  }

  // PRGA: update and swap the S-box before each output byte
  i = 0; j = 0;
  for ( k = 0; k < len; ++k )
  {
    i  = (unsigned __int8)(i + 1);
    si = S[i];
    j  = (unsigned __int8)(j + si);
    sj = S[j];
    S[i] = sj; S[j] = si;

    // z is the ordinary RC4 byte; x and y whiten the output
    z  = S[(unsigned __int8)(sj + si)];
    x  = S[(unsigned __int8)(j + sj)];
    v8 = S[(unsigned __int8)((j >> 3) ^ (32 * i))];
    v9 = S[(unsigned __int8)((i >> 3) ^ (32 * j))];
    y  = S[(unsigned __int8)(v8 + v9) ^ 0xAA];
    buf[k] ^= x ^ (unsigned __int8)(y + z);
  }
}
Output
Input file: flatkc (x86-64) Input hash: bda990e54c82ac14078a1da4c9cafab2 Code xref: sub_FFFFFFFF81710483 → sub_FFFFFFFF81710334 Key: last 32 bytes of the recovered 256-byte RSA block.
100.00%  (81710334)   sub_FFFFFFFF81710334AU: idle   Down
fortios — -zsh — 96×26
~/fortios$ tree -a -L 1 ~/fortios/fs
/home/user/fortios/fs
├── bin
├── boot
├── boot.msg
├── cmdb
├── config
├── datafs.tar.gz
├── datafs.tar.gz.chk.bak
├── .db
├── .db.x
├── dhcp6s_db.bak
├── dhcpddb.bak
├── dhcp_ipmac.dat.bak
├── etc
├── extlinux.conf
├── filechecksum
├── flatkc
├── flatkc.chk
├── ldlinux.c32
├── ldlinux.sys
├── lib
├── log
├── lost+found
├── rootfs.gz
├── rootfs.gz.chk
└── web-ui
 
~/fortios$ cd fs
~/fortios/fs$ python3 ../decrypt_fortios.py | grep -v '^ '
Parsing the RSA public key...
Recovering the wrapped payload (m = c^e mod n)...
Reading and verifying firmware body...
Decrypting the filesystem with the RC4 variant...
Done — written to rootfs_decrypted.gz

Fig 5.1 — At STANDCON 2026 in Singapore, I showed how reverse engineering firmware and breaking its encryption can help with forensics on network appliances. One example was decrypting FortiOS 8 firmware, which uses a custom encryption scheme. The full writeup is here.