novaden

notes

159 items

What I know: how things work, plus the cheat sheets I keep open while working.

Logistic Regression notes 7 min 07 Nov 2026 How logistic regression turns a weighted sum into a class probability: the sigmoid, reading weights as odds, the decision boundary as a hyperplane, choosing a threshold, training with log loss, and the assumptions it needs, worked through a password-attack detector. Math for Machine Learning notes 12 min 07 Nov 2026 The notation and math that machine learning papers and courses assume: sums, logs and exponentials, vectors and norms, matrices and eigenvectors, sets, and probability, each with a worked example and where ML uses it. Supervised Learning notes 14 min 07 Nov 2026 How a supervised model is built and judged: features and labels, the training loop, prediction versus inference, accuracy, precision, recall and F1, validation sets, metrics for more than two classes, overfitting and underfitting, cross-validation, L1 and L2 regularization, and class imbalance, worked through a phishing URL classifier and NSL-KDD network connections. UnCrackable Level 1 Writeup notes 5 min 01 Nov 2026 Solving OWASP UnCrackable Level 1: the Java check decrypts a hardcoded AES key and ciphertext, the root check that closes the app on a rooted emulator, and the plaintext secret it compares against. MHL SecureNotes Lab Writeup notes 3 min 31 Oct 2026 Solving the Mobile Hacking Lab SecureNotes challenge: an exported content provider with no permission, a four-digit PIN used as the PBKDF2 input for an AES key, and an offline search that recovers the PIN and the flag. Saudi Cybersecurity Frameworks: NCA and SAMA notes 25 min 27 Oct 2026 The NCA and SAMA cybersecurity frameworks: who each applies to, how the ECC and SAMA CSF are structured, the control sets built on top of them, and what each requires for vulnerability assessment, penetration testing and code review. Android Debugging notes 4 min 27 Sept 2026 How a crash shows up in logcat and how to isolate it: the ring buffers, priority and tag filters, the clear-reproduce-read sequence, and reading the FATAL EXCEPTION trace down to the line that caused it. Deep Links and URL Schemes on Android notes 3 min 27 Sept 2026 Testing Android deep links: how intent filters declare them, how App Links verify ownership while custom schemes cannot, and how to craft URIs that expose handlers trusting attacker-controlled data. Exported Components and the IPC Attack Surface notes 5 min 27 Sept 2026 How to test an Android app's exported components: enumerate activities, services, broadcast receivers, and content providers from the manifest, then invoke each one with am or drozer and judge whether the functionality behind it should be reachable from outside. Local Storage on Android notes 3 min 27 Sept 2026 Testing Android on-disk storage beyond SharedPreferences: internal files, cache, SQLite and Room databases, and external storage, plus reading the sandbox back with run-as and adb. SharedPreferences on Android notes 3 min 27 Sept 2026 Testing Android SharedPreferences: the plaintext XML backing store, the mode flags, EncryptedSharedPreferences and DataStore, and reading the store back from a device. WebViews in Android Apps notes 4 min 27 Sept 2026 Testing Android WebViews: the JavaScript bridge, what content the WebView loads, file and content access, mixed content and certificate errors, and remote debugging, with the pass and fail conditions for each. DIVA Lab Writeups notes 16 min 27 Sept 2026 Writeups for the DIVA (Damn Insecure and Vulnerable App) Android labs: each solved lab gets a section with the task, the vulnerable code, the exploit, and the finding, covering Insecure Logging, the hardcoded vendor key, the third-party credentials stored plaintext in SharedPreferences, a SQLite database, a temp file, and external storage, a SQL injection, a WebView loading attacker content with JavaScript enabled, an implicitly exported activity that shows hardcoded API credentials, an exported activity that trusts a caller-supplied boolean to skip a PIN gate, an exported content provider that serves private notes without the PIN, a native JNI library that hides the Part 2 vendor key, and a native launch function that overflows a 40-byte stack buffer. MHL IOTConnect Lab Writeup notes 3 min 27 Sept 2026 Solving the Mobile Hacking Lab IOTConnect challenge: every signup is a guest and guests are locked out of the master switch in the UI, the receiver that actually enforces the PIN is reachable from outside the app, and a broadcast brute force turns on every device. Ansible Foundations notes 3 min 25 Sept 2026 What Ansible is, how playbooks, inventory, and roles fit together, what idempotence and handlers mean, and how check mode makes changes safe to preview. Reverse Shells on Android notes 2 min 21 Sept 2026 Reverse shells on Android: mksh has no /dev/tcp, toybox nc has no -e, so sh is piped between two nc connections, with 10.0.2.2 as the emulator's alias for the host. MHL Cyclic Scanner Lab Writeup notes 5 min 21 Sept 2026 Solving the Mobile Hacking Lab Cyclic Scanner challenge: a foreground service that walks shared storage every six seconds, a sha1sum command built by string concatenation into sh -c, the file name as the injection vector, and an adb quoting mistake that runs the payload as root before the app ever sees it. MHL Strings Lab Writeup notes 5 min 20 Sept 2026 Solving the Mobile Hacking Lab Strings challenge: an exported deep-link activity, a date-stamped preference that no code path writes, AES parameters pulled out of the dex string pool, and a native function that returns a decoy while the flag stays in RAM. Unpacking and Rebuilding with apktool notes 6 min 19 Sept 2026 apktool for Android: decoding an APK into a readable manifest, resources, and smali, patching what you find, rebuilding, signing, and getting the patched build installed. Decompiling with jadx notes 5 min 19 Sept 2026 jadx for Android: turning an APK's bytecode back into readable Java from the CLI and the GUI, searching the tree for secrets and weak crypto, what the error count means, and when to fall back to smali, native tools, or Frida. The OWASP MAS Project notes 2 min 19 Sept 2026 The OWASP Mobile Application Security (MAS) project: what MASVS, MASWE, MASTG, and the MAS Checklist each do, and the testing profiles that set the bar for an assessment. Static and Dynamic Analysis of Mobile Apps notes 3 min 18 Sept 2026 Static and dynamic analysis of mobile apps: what each one covers, where manual code review finds what scanners miss, and why web findings like CSRF and reflected XSS rarely apply to a mobile app. Android Debug Bridge (ADB) notes 4 min 15 Sept 2026 The command reference for adb: connecting, shells, file transfer, package management, starting components, logcat, dumpsys, and the port forwarding that every other tool depends on. Android Lab Setup notes 5 min 15 Sept 2026 Setting up the Android testing lab: Android Studio and the SDK, an emulator you can actually root, a writable system partition, and the physical-device path when the emulator will not do. Dynamic Instrumentation with Frida notes 5 min 15 Sept 2026 Frida for mobile app testing: how injection works, matching frida-server to the device, spawning and attaching, writing hooks to read and rewrite an app's behaviour at runtime, Objection for the common jobs, and Gadget when the device is not rooted.