offensive-tools/cryptography/sagemath/SKILL.md
Auth/lab ref: Computer algebra and number-theory environment for cryptanalysis scripting.
npx skillsauth add aeondave/malskill sagemathInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Sage is the go-to environment for mathematical cryptanalysis and attack modeling. Use it when standard scripting is not enough for algebraic structures and lattice workflows.
GF, extension fields).matrix, LLL) for partial leakage recovery.# REPL
sage
# Run .sage script
sage solver.sage
# Run Python file with Sage runtime
sage -python solver.py
# Jupyter with Sage kernel
sage -n jupyter
GF, rings, curves, matrices).pwntools or service scripts for secret recovery.From real-world cryptanalysis work, common patterns include:
from sage.all import * alongside pwntools remote interaction.LLL()..sage solvers combining bitwise transforms, polynomial operations over GF(2^N), and iterative remote interaction rounds.references/python-sage-scripts.md — authoritative patterns for .sage and sage -python workflows, imports, interoperability, and pitfalls.references/cryptanalysis-patterns.md — practical cryptanalysis templates (GF, EC, lattice, polynomial elimination) grounded in real solver style.development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.