Welcome to the Software-Supply-Chain-Malware-Analysis repository! This collection showcases hands-on malware research involving malicious npm packages, software supply-chain threats, Windows malware reverse engineering, Linux ransomware, incident response, and IoT botnet analysis.
These projects document my use of static and dynamic analysis techniques to identify malicious execution chains, persistence mechanisms, credential theft, command-and-control activity, ransomware behavior, obfuscation, and software supply-chain compromise. The repository also includes defensive recommendations using YARA, Sigma, OpenGrep, MITRE ATT&CK, endpoint monitoring, and CI/CD security controls.
Malicious npm Package Analysis
View Project Report
Analyzed three npm packages from a malicious software-package dataset:
0xmisoke@1.0.04m-clean-shopify-app@9.0.4@crowdstrike/tailwind-toucan-base@5.0.2
Identified suspicious and malicious behaviors including:
- Malicious
preinstallandpostinstalllifecycle scripts - Automated system-information collection
- Credential and secret harvesting
- GitHub and npm token discovery
- AWS and GCP credential targeting
- Child-process execution
- Potential CI/CD runner compromise
- Dependency-chain and package-installation abuse
Performed the analysis in a controlled offline malware-analysis virtual machine without installing or executing the packages.
Analysis Techniques: PowerShell searching, package metadata review, JavaScript inspection, lifecycle-script analysis, and MITRE ATT&CK mapping.
Evidence and Output: Screenshots, package structures, detection tables, source-code findings, and defensive recommendations are included in the project report.
Staged npm Malware Triage
View Project Report
Analyzed three additional malicious or suspicious npm packages:
boost-chii-90s@1.1.5emittery-up@0.8.2winutils-fetch@2.0.0
Identified advanced software supply-chain behaviors including:
- Encrypted remote-payload retrieval
- AES-256-CBC payload decryption
- Dynamic JavaScript execution through
vm.Script - Obfuscated Python loaders using Base64 and zlib
- Blockchain-based payload delivery
- Detached Node.js process execution
- Trojanized legitimate-looking libraries
- npm
postinstallabuse - Secondary-package staging
- Self-referential and suspicious dependency chains
Developed detection recommendations for identifying packages that combine remote network access, decryption, decoding, obfuscation, and dynamic execution.
Detection Engineering: OpenGrep patterns, YARA indicators, lifecycle-script monitoring, and CI/CD package-security controls.
Evidence and Output: Package findings, execution-chain descriptions, indicators, and detection recommendations are included in the report.
MedusaLocker Ransomware Analysis
View Full Analysis
MedusaLocker Technical Summary
View Technical Summary
Conducted a comprehensive analysis of a Linux-based MedusaLocker ransomware sample targeting Linux servers and ESXi-style infrastructure.
Examined:
- ELF executable structure
- File headers, sections, and segments
- Static and dynamic malware behavior
- High-entropy file encryption
- System recovery inhibition
- Process and file-system activity
- Anti-analysis behavior
- Direct system-call execution
- Obfuscated stack strings
- Linux persistence mechanisms
- Security-tool and service interference
- Ransomware indicators of compromise
Mapped observed behavior to MITRE ATT&CK and developed YARA and Sigma detections based on structural and behavioral characteristics.
Analysis Techniques: File hashing, threat-intelligence correlation, ELF analysis, behavioral analysis, persistence review, and detection-rule development.
Evidence and Output: VirusTotal results, MalwareBazaar intelligence, binary-structure screenshots, behavioral evidence, YARA rules, and Sigma analysis are included in the reports.
Malware Analysis and Incident-Response Report
View Project Report
Developed an enterprise-style incident-response report for a simulated ransomware event involving Lecture2.exe.
The investigation identified:
- A deceptive Windows Update disguise
- A false 16-bit incompatibility message
- Suspicious Microsoft-themed network traffic
- Extensive registry modification
- Malware persistence
- Unauthorized file and process activity
- Potential endpoint detection evasion
- Suspicious HTTP POST and DNS behavior
Created an operational ransomware-response playbook covering:
- Incident identification and scoping
- Endpoint isolation
- Evidence preservation
- Indicator blocking
- Credential rotation
- Malware eradication
- System recovery
- Legal and stakeholder communication
- Lessons learned
- Future EDR and infrastructure hardening
Analysis and Response Frameworks: CISA StopRansomware guidance, malware triage, static analysis, behavioral evidence review, containment, eradication, and recovery planning.
Evidence and Output: Indicators, analysis screenshots, containment decisions, recovery procedures, and communications guidance are included in the report.
IDA Pro Disassembly Report
View Project Report
Used IDA Pro to reverse engineer a Windows malware sample and examine its internal functions, imports, strings, and network behavior.
Identified:
DllMainand the malware entry flow- Networking imports such as
gethostbyname - Repeated DNS-resolution calls
- Hard-coded domain references
- Socket-related functions
- Operating-system checks
- Command-execution strings
cmd.exe /creferences- Code associated with remote-shell functionality
- Function parameters and local variables
- Cross-references between imported APIs and calling functions
Analysis Techniques: Disassembly review, function graph analysis, strings analysis, imports inspection, cross-reference tracing, and network-function mapping.
Evidence and Output: IDA Pro screenshots, function addresses, call references, strings, and code-flow findings are included in the report.
IDA Pro Disassembly: Malicious Malware
View Project Report
Reverse engineered malware behavior involving persistence, payload extraction, network communication, and denial-of-service functionality.
Identified:
- Windows service persistence through
MalService - Mutex-based single-instance execution using
HGL345 - Host-based and network-based indicators
- Suspicious HTTP communications
- Custom user-agent behavior
- Delayed execution using waitable timers
- Multithreaded request generation
- Potential denial-of-service functionality
- Embedded resource extraction
- Dropped
msgina32.dllpayload - GINA DLL registry persistence
- Automatic malicious DLL loading after reboot
Analysis Techniques: Import analysis, strings review, function tracing, resource inspection, registry-persistence analysis, and indicator development.
Evidence and Output: Persistence artifacts, mutex indicators, URLs, user-agent strings, embedded resources, and IDA Pro screenshots are included in the report.
Mirai Malware Report
View Project Report
Performed a defensive static source-code audit of the Mirai IoT botnet in a controlled lab environment.
The malware was not compiled, deployed, or executed.
Analyzed Mirai components including:
main.cscanner.ctable.ckiller.cresolv.cattack_udp.cattack_tcp.cattack_app.c
Examined:
- Bot initialization and lifecycle
- Internet-wide scanning behavior
- Telnet-based propagation
- Default credential abuse
- Username and password tables
- Configuration obfuscation
- DNS resolution
- Command-and-control support
- Process and port competition removal
- UDP denial-of-service attacks
- TCP denial-of-service attacks
- HTTP application-layer attacks
- Persistent control-loop behavior
Mapped Mirai behaviors to MITRE ATT&CK and documented prevention, detection, and remediation recommendations for each major tactic and technique.
Analysis Techniques: Static source-code review, function-flow tracing, credential-table analysis, botnet architecture review, attack-module inspection, and MITRE ATT&CK mapping.
Evidence and Output: Source-code screenshots, architecture explanations, function analysis, ATT&CK mappings, and defensive recommendations are included in the report.
Developed and recommended detection logic for behaviors observed across the malware samples, including:
- Malicious npm lifecycle scripts
- Remote-payload downloads
- Dynamic JavaScript execution
eval,Function, andvm.Scriptusage- Node.js
child_processexecution - Credential and environment-variable access
- Encoded and compressed payloads
- Suspicious blockchain RPC infrastructure
- Windows service persistence
- Mutex indicators
- Malicious registry changes
- Ransomware file and process behavior
- Linux persistence
- IoT scanning and credential abuse
Detection methods include:
- YARA rules for malware strings and binary characteristics
- Sigma rules for host and event-log activity
- OpenGrep rules for malicious source-code patterns
- SIEM monitoring recommendations
- Endpoint detection and response controls
- CI/CD package scanning
- Build-runner network restrictions
- Dependency allowlisting
- Secret isolation and token protection
Malware Analysis: IDA Pro, Detect It Easy, VirusTotal, MalwareBazaar
Languages and Formats: JavaScript, Python, C, C++, C#, PowerShell, Windows PE, Linux ELF
Detection Engineering: YARA, Sigma, OpenGrep, MITRE ATT&CK
Software Supply-Chain Security: npm, package.json, lifecycle-script analysis, dependency inspection, CI/CD security
Analysis Environments: Offline malware-analysis virtual machines, Visual Studio Code, Notepad, PowerShell
Security Disciplines: Static analysis, dynamic analysis, reverse engineering, ransomware analysis, incident response, IoT malware analysis, threat intelligence, and detection engineering
All malware analysis documented in this repository was conducted in controlled, isolated, and authorized lab environments for educational and defensive-security research.
Malicious packages and binaries should never be installed, executed, or tested on production systems or networks. This repository does not provide active malware payloads or instructions for unauthorized deployment.
The content is intended to support malware detection, incident response, secure software development, and defensive cybersecurity research.