$npx -y skills add meltedinhex/analyst-ai-pack --skill analyzing-banking-trojan-webinjectsAnalyzes banking trojan webinject configurations to extract targeted institutions,
| 1 | # Analyzing Banking Trojan Webinjects |
| 2 | |
| 3 | ## When to Use |
| 4 | |
| 5 | - You have a banking trojan webinject config (Zeus/Gozi/Dridex-style `set_url`/`data_before`/ |
| 6 | `data_inject` blocks) and want to extract targeted institutions and injected code. |
| 7 | - You are mapping the web-fraud workflow (form-grabbing, fake fields, MFA interception). |
| 8 | |
| 9 | **Do not use** this to deploy or test injects against live banking sites. This skill parses the |
| 10 | config statically and executes nothing. |
| 11 | |
| 12 | ## Prerequisites |
| 13 | |
| 14 | - The decoded webinject config text (decrypt the config first if needed). |
| 15 | |
| 16 | ## Safety & Handling |
| 17 | |
| 18 | - Treat injected JS/HTML as malicious; do not render it. Defang any exfil URLs. |
| 19 | |
| 20 | ## Workflow |
| 21 | |
| 22 | ### Step 1: Parse webinject blocks |
| 23 | |
| 24 | ```bash |
| 25 | python scripts/analyst.py parse webinjects.txt |
| 26 | ``` |
| 27 | |
| 28 | Parses `set_url`/`data_before`/`data_inject`/`data_after` blocks into structured entries with the |
| 29 | targeted URL pattern and the injected snippet. |
| 30 | |
| 31 | ### Step 2: Extract targets and exfil endpoints |
| 32 | |
| 33 | List targeted institution URL patterns and any exfil endpoints referenced by the injected code. |
| 34 | |
| 35 | ### Step 3: Classify the injection technique |
| 36 | |
| 37 | Identify form-grabbing, fake additional fields (SSN, PIN, card), and MFA/OTP interception from the |
| 38 | injected markup/JS. |
| 39 | |
| 40 | ### Step 4: Defang and report |
| 41 | |
| 42 | Defang URLs and summarize targeted banks and theft techniques. |
| 43 | |
| 44 | ## Validation |
| 45 | |
| 46 | - Each webinject block is parsed into target URL + injection. |
| 47 | - Exfil endpoints in injected code are extracted and defanged. |
| 48 | - Injection techniques are classified from the snippet content. |
| 49 | |
| 50 | ## Pitfalls |
| 51 | |
| 52 | - Encrypted/packed configs needing decryption before parsing. |
| 53 | - Wildcard URL patterns matching broadly — note the scope. |
| 54 | - Obfuscated injected JS hiding the true exfil endpoint. |
| 55 | |
| 56 | ## References |
| 57 | |
| 58 | - See [`references/api-reference.md`](references/api-reference.md) for the parser. |
| 59 | - ATT&CK T1185 and webinject format references (linked in frontmatter). |