Problem Statements Analysis

From what to build to how to build it — our platform helps you understand, plan, and solve SIH 2026 problem statements with complete insights into requirements, solution approaches, technology stacks, architecture, AI/ML, and implementation roadmaps.

Scroll down
01 / SIH 2026

PS: SIH26148

Creation of scripts/functions with new programming language to commence Computer & Network forensic analysis without triggering security solutions

Description: • Background Modern antivirus solutions restrict proprietary software from executing or creating custom scripts designed to analyze the system for deep forensic system analysis. They rely heavily on behavioral heuristics, static signature matching, common compiler outputs (like standard MSVC or GCC artifacts), typical API call sequences and kernel-level monitoring to intercept activities. However, a significant paradigm shift may occur when programmers adopt sophisticated software engineering practices-specifically continuous integration and continuous deployment (CI/CD). • Description Creating 'Next-Gen' programming language framework, named as 'JOCKY' using cross-platform compiler (windows & ubuntu) which enables systematic creation of scripts for analyzing malicious activities and also provide the complete digital forensics of the computer or network. By utilizing this specific new developed programming language, the framework will not be hindered by any of the existing anti-virus in the environment. This framework should include various scripts/functions which combined with automated polymorphic engines, custom encryption, and multi-vector in-memory execution via native components or Bring your own vulnerable driver (BYOVD) techniques. Framework also able to handle multiple system analysis simultaneously using central management interface. The traffic b/w management interface and client should be routed through trusted cloud infrastructure or content delivery networks (CDNs) using domain fronting or legitimate cloud APIs. • Expected Solution The scope of the problem is to create scripts/functions in the proprietary programming language (named JOCKY) which enables the user to detect the adversaries: 1. Independent programming Language - Programming language or custom Language-independent intermediate representation (LLVM) frontend alters basic control-flow graphs, token generation, and binary structures, rendering signature-based detection ineffective. 2. Polymorphism in scripts/function generated - Rather than manually packing a binary, the scripts/function in framework uses a continuous delivery pipeline. Every iteration automatically passes through integrated obfuscators, variable-encryption routines, and polymorphic engines. This ensures that every deployment instance possesses unique hashes, modified entry points, and altered import tables, neutralizing traditional file-reputation databases. 3. Living-off-the-Land & BYOVD Execution - The scripts/functions in framework should avoid standard, noisy API calls for core operations like persistence, privilege escalation, and network routing (SOCKS5). Instead, it relies on: A. In-Memory Execution: Utilizing multiple distinct file-less techniques (e.g., process hollowing, reflective DLL injection, API unhooking, direct system calls, or thread execution hijacking) to run secondary script entirely within the memory space of trusted processes. B. Kernel-Level Subversion: Detection of legitimate or vulnerable third-party drivers (BYOVD) to disable EDR callbacks or manipulate kernel structures directly, blinding security agents running in user or kernel space.
Organization: National Technical Research Organisation (NTRO)
Department: National Technical Research Organisation (NTRO)
Category: Software
Theme: Blockchain & Cybersecuritytd>
Youtube Link: Not provided
Dataset Link: Not provided
Contact info: Not provided

1. Executive Snapshot

The National Technical Research Organisation (NTRO) requires a stealthy, non-disruptive digital forensic acquisition and telemetry framework named 'JOCKY'. Modern Endpoint Detection and Response (EDR) and antivirus (AV) solutions heavily restrict proprietary forensic utilities by detecting behavioral heuristics, static signatures, standard MSVC/GCC compiler artifacts, known API call sequences, and kernel telemetry callbacks [PS]. When investigating a compromised or high-security host, standard forensic tools (e.g., FTK Imager, Velociraptor, OSQuery) can alert active adversaries or trigger security software that kills the process or blocks acquisition [PS, RESEARCHED]. To overcome these limitations, JOCKY combines a Domain-Specific Language (DSL) transpiler/compiler with custom LLVM Intermediate Representation (IR) obfuscation passes, an automated polymorphic CI/CD build engine, in-memory living-off-the-land execution primitives, driver-level physical memory access (BYOVD interaction), and CDN/Cloud API domain-fronted telemetry channels [PS]. This dossier outlines a comprehensive technical architecture, trade-off evaluation, and implementation roadmap designed for a 4-6 student team to build and demonstrate a functional prototype at the Smart India Hackathon 2026.

Metadata Field Value / Description
PS Number SIH26148
Title Creation of scripts/functions with new programming language to commence Computer & Network forensic analysis without triggering security solutions
Organization National Technical Research Organisation (NTRO)
Department National Technical Research Organisation (NTRO)
Category Software
Theme Blockchain & Cybersecurity
Deadline 30 September 2026
Ideas Counter 0/500

Fundamental System Objective:
To develop a cross-platform (Windows & Ubuntu) forensic compilation and telemetry framework ('JOCKY') that uses custom LLVM IR passes, automated polymorphic CI/CD pipelines, in-memory execution, and domain-fronted Cloud C2 transport to conduct simultaneous, undetected digital forensic triage across remote hosts without triggering AV/EDR alerts [PS].

2. Problem Deconstruction

The problem statement provided by NTRO decomposes into five core explicit and functional requirements [PS]:

  • Requirement 1: Independent Programming Language / LLVM IR Frontend [PS]

    • Source Text: "1. Independent programming Language - Programming language or custom Language-independent intermediate representation (LLVM) frontend alters basic control-flow graphs, token generation, and binary structures, rendering signature-based detection ineffective."
    • Interpretation: JOCKY must feature a custom Domain-Specific Language (DSL) or compiler frontend targeting LLVM IR. The compilation stage must alter control-flow graphs (CFG), substitute instructions, inject opaque predicates, and randomize token generation to strip standard compiler signatures (MSVC/GCC) [INFERENCE].
    • Implementation Implication: Implement a JOCKY DSL parser that emits valid C/LLVM IR code, which is then transformed using custom or customized LLVM obfuscation passes (e.g., Obfuscator-LLVM architecture) before emitting machine code [INFERENCE].
    • Confidence Tag: [PS]
  • Requirement 2: Polymorphic CI/CD Build Engine [PS]

    • Source Text: "2. Polymorphism in scripts/function generated - Rather than manually packing a binary, the scripts/function in framework uses a continuous delivery pipeline. Every iteration automatically passes through integrated obfuscators, variable-encryption routines, and polymorphic engines. This ensures that every deployment instance possesses unique hashes, modified entry points, and altered import tables, neutralizing traditional file-reputation databases."
    • Interpretation: Every time a forensic script is compiled and deployed, an automated pipeline must dynamically mutate the output binary, generating a unique cryptographic file hash (SHA-256), randomized entry points, dynamic import tables, and encrypted variable strings [INFERENCE].
    • Implementation Implication: Create an automated build wrapper (CI/CD pipeline runner) that injects randomized decryption keys, junk code routines, and dynamic PE/ELF header modifiers prior to agent deployment [INFERENCE].
    • Confidence Tag: [PS]
  • Requirement 3A: Living-off-the-Land & In-Memory Execution [PS]

    • Source Text: "3. Living-off-the-Land & BYOVD Execution ... A. In-Memory Execution: Utilizing multiple distinct file-less techniques (e.g., process hollowing, reflective DLL injection, API unhooking, direct system calls, or thread execution hijacking) to run secondary script entirely within the memory space of trusted processes."
    • Interpretation: Forensic collection modules must execute entirely filelessly in RAM to avoid dropping temporary .exe or .so files to disk. The agent must bypass user-mode EDR hooks by restoring clean API headers or issuing indirect system calls (syscall / sysenter) [INFERENCE].
    • Implementation Implication: Build an in-memory execution payload utilizing indirect syscalls (SysWhispers pattern on Windows) and memfd_create / reflective loading on Linux to execute secondary triage modules inside trusted process memory [INFERENCE].
    • Confidence Tag: [PS]
  • Requirement 3B: Kernel-Level Subversion & Driver Abstraction (BYOVD) [PS]

    • Source Text: "B. Kernel-Level Subversion: Detection of legitimate or vulnerable third-party drivers (BYOVD) to disable EDR callbacks or manipulate kernel structures directly, blinding security agents running in user or kernel space."
    • Interpretation: The framework must possess driver-level capabilities to inspect kernel memory structures (EPROCESS, callback routines) or leverage existing signed drivers to extract physical RAM and system artifacts without triggering EDR kernel callbacks (PspCreateProcessNotifyRoutine, ObRegisterCallbacks) [INFERENCE].
    • Implementation Implication: Develop a driver abstraction interface that inventories installed signed drivers against known driver databases (e.g., LOLDrivers) to safely read physical memory and kernel structures [INFERENCE].
    • Confidence Tag: [PS]
  • Requirement 4: Central Management Interface & Domain-Fronted CDN Transport [PS]

    • Source Text: "Framework also able to handle multiple system analysis simultaneously using central management interface. The traffic b/w management interface and client should be routed through trusted cloud infrastructure or content delivery networks (CDNs) using domain fronting or legitimate cloud APIs."
    • Interpretation: A central web interface must orchestrate concurrent forensic jobs across multiple endpoints. C2 command-and-telemetry traffic must blend in with legitimate enterprise HTTPS traffic by utilizing CDN edge proxies, Cloudflare Workers/Fastly, or cloud storage APIs (Azure Blob/AWS S3) with host-header obfuscation [INFERENCE].
    • Implementation Implication: Build a Go/React web console with WebSockets, integrated with a serverless edge proxy (e.g., Cloudflare Workers / Nginx proxy) acting as a domain-fronting redirector [INFERENCE].
    • Confidence Tag: [PS]
  • Requirement 5: Cross-Platform Compiler (Windows & Ubuntu) [PS]

    • Source Text: "...using cross-platform compiler (windows & ubuntu) which enables systematic creation of scripts..."
    • Interpretation: The toolchain and compiled forensic agents must natively target both Windows 10/11 (x86_64 PE) and Ubuntu Linux 20.04/22.04/24.04 (x86_64 ELF) [INFERENCE].
    • Implementation Implication: Configure LLVM cross-compilation backends targeting x86_64-pc-windows-msvc and x86_64-unknown-linux-gnu [INFERENCE].
    • Confidence Tag: [PS]

3. Stakeholders & User Needs

Stakeholder Group Operational Goal Current Pain Point System Requirement for JOCKY
NTRO Incident Response (IR) Teams Perform deep digital forensic collection (memory, logs, active network connections) on compromised state endpoints without alerting adversaries [PS]. Standard commercial forensic tools (FTK Imager, Velociraptor) trigger EDR heuristic alerts or get killed by active malware hooks [PS, RESEARCHED]. Stealthy, signature-less in-memory agent that extracts artifacts without dropping files or triggering user-mode API hooks [PS].
SOC / Central Command Administrators Coordinate concurrent forensic triage across hundreds of distributed endpoints simultaneously [PS]. Manual workstation analysis is slow and noisy; standard remote scripts generate conspicuous OS event log entries [KNOWN]. Centralized management dashboard supporting multi-host dispatch, job queueing, and encrypted CDN-fronted telemetry exfiltration [PS].
Forensic Script Developers Write custom forensic checks (e.g., parsing specific registry keys, process memory strings, cron jobs) without re-engineering low-level evasion routines [INFERENCE]. Writing low-level assembly, syscall wrappers, and obfuscation routines for every new forensic test is time-consuming and prone to errors [INFERENCE]. High-level JOCKY Domain-Specific Language (DSL) that abstracts OS queries while automatically compiling with LLVM obfuscation [PS].
Enterprise / Agency System Administrators Maintain enterprise infrastructure stability during active cyber incident investigations [INFERENCE]. Unvetted driver interactions or invasive scripts can cause Blue Screens of Death (BSOD) or crash critical servers [KNOWN]. Safe kernel driver validation, memory bounds checks, and graceful fallback mechanisms to guarantee 100% OS uptime [INFERENCE].

4. Requirements Traceability

Proposed System Feature Justifying Requirement Number Source Text Reference Confidence Tag
JOCKY Language Lexer, Parser & C/LLVM Transpiler Requirement 1 "Independent programming Language or custom Language-independent intermediate representation (LLVM) frontend..." [PS]
LLVM Obfuscation Pass (Control-Flow Flattening, String Encryption) Requirement 1 "...alters basic control-flow graphs, token generation, and binary structures..." [PS]
Polymorphic CI/CD Build Engine (Dynamic Hash & Entry Point Modification) Requirement 2 "...continuous delivery pipeline... every deployment instance possesses unique hashes, modified entry points, and altered import tables..." [PS]
In-Memory Loader (Indirect Syscalls & API Unhooking Module) Requirement 3A "...utilizing multiple distinct file-less techniques (process hollowing, API unhooking, direct system calls)..." [PS]
Kernel Abstraction & Driver Scanner (BYOVD Interface) Requirement 3B "Detection of legitimate or vulnerable third-party drivers (BYOVD) to disable EDR callbacks or manipulate kernel structures..." [PS]
Central C2 Management Dashboard & Task Queue Requirement 4 "...handle multiple system analysis simultaneously using central management interface." [PS]
CDN Domain-Fronting & Cloud API Telemetry Proxy Requirement 4 "...traffic b/w management interface and client should be routed through trusted cloud infrastructure or content delivery networks (CDNs)..." [PS]
Dual Target Compilation Toolchain (PE & ELF Support) Requirement 5 "...using cross-platform compiler (windows & ubuntu)..." [PS]

5. Constraints & Environment Realities

  • Operating System Diversity: Target host environments are restricted to Windows 10/11 Enterprise (x86_64) and Ubuntu Linux 20.04/22.04/24.04 LTS (x86_64) [PS].
  • Active EDR & AV Monitoring: Target hosts are assumed to run aggressive commercial EDR suites (e.g., Microsoft Defender for Endpoint, CrowdStrike Falcon) that inspect API calls, monitor Event Tracing for Windows (ETW), and audit loaded drivers [KNOWN, RESEARCHED].
  • Network & Egress Restrictions: Enterprise network perimeters deploy Next-Generation Firewalls (NGFW), SSL/TLS inspection proxies, and strict egress domain whitelists [KNOWN].
  • Privilege Execution Model: Forensic memory acquisition requires elevated administrative rights (NT AUTHORITY\SYSTEM on Windows or root on Ubuntu) [KNOWN]. However, execution must not disrupt running services or induce kernel panics [INFERENCE].
  • Resource Constraints: Triage scripts must run with minimal CPU and RAM overhead (<1% CPU utilization, <20 MB RAM) to prevent triggering resource-monitoring behavioral alerts [INFERENCE].

6. Research Questions

  1. How do custom LLVM IR passes alter static signatures and Control-Flow Graphs (CFG) to neutralize modern AV/EDR static disassembly engines? [RESEARCHED]
  2. What specific API unhooking and indirect syscall mechanisms (e.g., SysWhispers3 architecture) effectively bypass user-mode EDR hooks on modern Windows 11 without triggering ETW-TI (Threat Intelligence)? [RESEARCHED]
  3. How can domain fronting or serverless edge proxies (Cloudflare Workers, Fastly, AWS API Gateway) be implemented to route encrypted telemetry traffic through legitimate enterprise-trusted domains? [RESEARCHED]
  4. What are the safe operational patterns for leveraging signed administrative or third-party drivers for physical memory acquisition without causing host Blue Screens of Death (BSOD)? [RESEARCHED]
  5. What is the most practical architecture for a 4-6 student team to implement a custom DSL compiler frontend targeting LLVM within a hackathon timeframe? [INFERENCE]

7. Data Requirements & Sources

Data Type Purpose Ideal Real-World Source Hackathon Substitute Acquisition Method Availability Privacy Sensitivity Confidence
Process & Memory State Data Identify active processes, injected threads, unbacked executable memory, and hidden DLLs OS Kernel Memory (EPROCESS / PEB on Windows, /proc on Linux) Local Virtual Machine RAM & process listings Direct Kernel/User Memory Read APIs & Syscalls High High (Contains process RAM) [KNOWN]
Driver & Kernel Callback Registry Identify installed kernel drivers and active security hooks (PspCreateProcessNotifyRoutine) Windows Kernel Memory (ntoskrnl.exe), LOLDrivers Database Simulated registry of driver hashes & local system driver inventory Native OS APIs / Driver IOCTLs High Medium [RESEARCHED]
Forensic Disk Artifacts Extract Event Logs, Prefetch, MFT records, persistence keys, and /etc/crontab NTFS File System, Windows Registry, Linux /var/log Local system event logs & synthetic test artifact files Low-level disk/file parsing routines High High (System logs) [KNOWN]
Encrypted C2 Telemetry Stream Transmit command payloads, task status, and compressed forensic summaries Encrypted HTTPS stream over CDN Edge Proxy JSON payload over local WebSockets / Mock CDN Proxy AES-256-GCM Encrypted WebSocket/REST Protocol High High (Exfiltrated evidence) [INFERENCE]

8. Existing Solutions & Gap Analysis

  • Velociraptor (by Rapid7)

    • Description: Advanced open-source digital forensics and incident response (DFIR) agent utilizing VQL (Velociraptor Query Language) for endpoint collection [RESEARCHED].
    • Strengths: Highly powerful query language, central server orchestration, extensive community artifact library [RESEARCHED].
    • Weaknesses: Standard agent binary is heavily signatured by EDRs; uses standard Win32 API calls that fire behavioral heuristic alerts during acquisition [RESEARCHED].
    • Relevance: Benchmark for central management and forensic query design.
    • Gap Remaining: Lacks compiler-level LLVM obfuscation, polymorphic binary regeneration, indirect syscall execution, and domain-fronted transport [INFERENCE].
    • Source: Velociraptor Documentation [RESEARCHED]. Confidence: [RESEARCHED].
  • OSQuery (by Sophos / Linux Foundation)

    • Description: Operating system instrumentation framework that exposes system state as a relational SQL database [RESEARCHED].
    • Strengths: Standardized SQL syntax, cross-platform support (Windows, Linux, macOS) [RESEARCHED].
    • Weaknesses: Heavy memory footprint, static executable signature, no capability to execute filelessly or bypass user-mode/kernel EDR hooks [RESEARCHED].
    • Relevance: Reference model for operating system data abstraction.
    • Gap Remaining: Designed for continuous corporate compliance, not stealthy incident response on compromised or actively monitored endpoints [INFERENCE].
    • Source: OSQuery Github [RESEARCHED]. Confidence: [RESEARCHED].
  • Commercial Forensics Suites (FTK Imager, EnCase, Volatility)

    • Description: Enterprise and law enforcement forensic acquisition utilities [KNOWN].
    • Strengths: Deep evidence acquisition, court-admissible forensic image standards [KNOWN].
    • Weaknesses: Large, heavy executables; drop temporary files to disk; easily detected and blocked by EDR software; no automated polymorphic build pipeline [INFERENCE].
    • Relevance: Gold standard for evidence completeness.
    • Gap Remaining: Completely unsuited for covert forensic acquisition in hostile environments where security software or attackers actively monitor file drops [PS, INFERENCE].
    • Source: General DFIR Domain Knowledge [KNOWN]. Confidence: [KNOWN].

9. Candidate Solution Approaches

Approach 1: Custom JOCKY Lexer/Parser with Full LLVM IR Frontend & Native C2 Stack

  • Mechanism: Build a custom Domain-Specific Language frontend from scratch using ANTLR4 or Rust. The parser directly generates LLVM IR bitcode. Apply custom LLVM IR passes (control-flow flattening, instruction substitution, opaque predicates). Cross-compile to native PE/ELF binaries within a custom CI/CD runner [INFERENCE].
  • Problem Fit: 100% direct alignment with explicit problem description [PS].
  • Accuracy Potential: High (direct binary generation with exact control over instruction generation) [INFERENCE].
  • Data Requirements: Low (compiles scripts directly into native bytecode) [INFERENCE].
  • Complexity: Extremely High (building a complete language compiler frontend to raw LLVM IR is a multi-month engineering effort) [INFERENCE].
  • Explainability: High (language semantics strictly defined by grammar) [INFERENCE].
  • Cost: Low (open-source LLVM ecosystem) [INFERENCE].
  • Scalability: High [INFERENCE].
  • Hackathon Feasibility: Low-Medium (high risk of getting bogged down in compiler parsing bugs, leaving insufficient time for evasion and C2 features) [INFERENCE].
  • Production Feasibility: Very High [INFERENCE].

Approach 2: Embedded Interpreter Engine (Lua / Python) with Runtime String Obfuscation

  • Mechanism: Write forensic triage scripts in Lua or Python. Pack the scripts inside a pre-compiled, lightweight interpreter executable. Apply runtime XOR string encryption and dynamic memory unpacking [INFERENCE].
  • Problem Fit: Poor (fails the explicit requirement for an independent compiler frontend/LLVM IR control-flow graph mutation) [PS].
  • Accuracy Potential: Medium [INFERENCE].
  • Data Requirements: Low [INFERENCE].
  • Complexity: Low [INFERENCE].
  • Explainability: High [INFERENCE].
  • Cost: Low [INFERENCE].
  • Scalability: Medium (interpreter overhead on endpoint) [INFERENCE].
  • Hackathon Feasibility: High (easy to build quickly) [INFERENCE].
  • Production Feasibility: Low (embedded interpreters are easily detected by modern EDR memory scanners inspecting executable heap regions) [INFERENCE].

Approach 3: JOCKY Transpiler (DSL -> C/C++) + Clang/Obfuscator-LLVM (OLLVM) Toolchain + Go/React C2 (RECOMMENDED)

  • Mechanism: Design the JOCKY DSL grammar and build a fast Transpiler (in Python/Rust) that converts .jocky scripts into modular C/C++ source code. Pass the generated C code through Clang/OLLVM with automated obfuscation flags (-mllvm -fla for Control-Flow Flattening, -mllvm -sub for Instruction Substitution, dynamic string encryption). Build native binaries filelessly loaded via indirect syscalls (SysWhispers3 pattern). Tunnel telemetry through Cloudflare Worker domain fronting proxies to a Go central C2 server [INFERENCE].
  • Problem Fit: Excellent alignment (delivers compiler-level LLVM IR obfuscation while keeping the frontend parser tractable for a student team) [INFERENCE].
  • Accuracy Potential: High [INFERENCE].
  • Data Requirements: Low [INFERENCE].
  • Complexity: Medium-High (manageable division of labor for a 4-6 student team) [INFERENCE].
  • Explainability: High [INFERENCE].
  • Cost: Low (100% open-source software and free-tier cloud edge proxies) [INFERENCE].
  • Scalability: High [INFERENCE].
  • Hackathon Feasibility: Very High (allows the team to deliver a fully functional, end-to-end working pipeline within 36 hours) [INFERENCE].
  • Production Feasibility: High [INFERENCE].

10. Recommended Approach & Why

The recommended solution is Approach 3 (JOCKY Transpiler to C/C++ + LLVM IR Obfuscation Pass + Polymorphic Engine + In-Memory Evasion Loader + CDN Domain-Fronted C2) [INFERENCE].

Why Alternatives Were Rejected:

  • Approach 1 (Full LLVM IR Frontend from scratch): Rejected due to extreme implementation risk during a hackathon. Writing a custom AST-to-LLVM-IR emitter consumes excessive development time that must be dedicated to core evasion, BYOVD abstraction, and C2 telemetry features [INFERENCE].
  • Approach 2 (Embedded Interpreter): Strictly rejected because it violates explicit Requirement #1 (LLVM IR control-flow graph mutation) and fails against modern EDR memory scanning heuristics [PS, INFERENCE].

Why Approach 3 Wins: Transpiling the JOCKY DSL to clean C/C++ source code allows the system to seamlessly tap into the full, production-grade LLVM compiler suite (clang, llvm-opt, OLLVM passes). It achieves authentic Control-Flow Graph (CFG) flattening, token alteration, and binary structure randomization at the intermediate representation level while ensuring the student team can realistically build, test, and demonstrate the entire system [INFERENCE].

11. Technical Architecture

+-----------------------------------------------------------------------------------+
|                        CENTRAL MANAGEMENT INTERFACE (C2)                          |
|  [ React.js / Tailwind Admin Dashboard ] <---> [ Go / FastHTTP Core C2 Server ]   |
|  - Real-Time Artifact Viewer & Matrix          - Task Queue & Agent Orchestration|
|  - JOCKY Script Editor & Compiler Trigger     - Encrypted SQLite / SQLCipher DB  |
+-----------------------------------------------------------------------------------+
                                         |
                       CDN & CLOUD INFRASTRUCTURE (C2 TRANSPORT)
   [ Cloudflare Workers / Fastly Edge CDN Proxy / AWS API Gateway Domain Fronting ]
   - Hides backend origin server IP address
   - Valid SNI Header ("trusted-cdn.com") / Rewritten HTTP Host ("c2-backend.internal")
                                         |
+-----------------------------------------------------------------------------------+
|                           POLYMORPHIC CI/CD PIPELINE                              |
|  [ JOCKY DSL Script (.jocky) ] ---> [ JOCKY Transpiler ] ---> [ C/C++ Source Code ]|
|                                                                        |          |
|  [ Clang / Obfuscator-LLVM Compiler Backend ] <--- [ Dynamic Seed Generator ] <----+
|   * Control-Flow Graph Flattening (-mllvm -fla)                                   |
|   * Variable & String Encryption Routines (-mllvm -so)                            |
|   * Instruction Substitution (-mllvm -sub) & PE/ELF Header Randomization         |
|  [ Output: Unique PE Binary (Windows) / Unique ELF Binary (Ubuntu) ]              |
+-----------------------------------------------------------------------------------+
                                         |
                       DEPLOYMENT & STEALTH AGENT EXECUTION
                                         |
+-----------------------------------------------------------------------------------+
|                             TARGET ENDPOINT (CLIENT)                              |
|  WINDOWS 10/11 (x86_64)                          UBUNTU LINUX 20.04+ (x86_64)     |
|  +------------------------------------+          +-------------------------------+|
|  | User-Mode Execution Engine         |          | User-Mode Execution Engine    ||
|  | - Indirect Syscalls (SysWhispers3) |          | - Direct Linux Syscalls       ||
|  | - API Unhooking (Fresh ntdll reload)|         | - memfd_create Fileless Exec  ||
|  | - Reflective Memory Injection      |          | - /proc/maps & RAM Parsing    ||
|  +------------------------------------+          +-------------------------------+|
|  | Kernel Subversion / Driver Module  |          | Kernel Subversion / Module    ||
|  | - LOLDrivers Hash Scanner          |          | - Kernel Symbol & Module Scan ||
|  | - Physical Memory IOCTL Wrapper    |          | - Direct /dev/mem Abstraction ||
|  +------------------------------------+          +-------------------------------+|
+-----------------------------------------------------------------------------------+

Detailed Data-Flow Narrative

  1. Script Authoring & Compilation Trigger: An incident responder logs into the Central Management Interface and authors or selects a JOCKY script (memory_triage.jocky). The operator selects target hosts (Windows and Ubuntu) and clicks "Deploy Mission" [INFERENCE].
  2. Transpilation & LLVM Mutation: The C2 backend invokes the JOCKY Transpiler, converting DSL code into modular C functions. A dynamic seed generator produces fresh cryptographic keys and junk code parameters. The C code is passed into the Clang/OLLVM compiler, which executes control-flow flattening, instruction substitution, and string encryption at the LLVM IR stage [INFERENCE].
  3. Polymorphic Artifact Emission: The compiler outputs uniquely hashed cross-platform binaries (PE for Windows, ELF for Ubuntu) with randomized entry points, modified import tables, and unique SHA-256 hashes [INFERENCE].
  4. CDN Domain-Fronted Transmission: The compiled payload is dispatched through the C2 transport layer. The connection utilizes TLS SNI headers matching a highly trusted domain (e.g., cdn.cloudflare.com) while internal HTTP Host headers direct the request through edge serverless workers to the target agent [RESEARCHED, INFERENCE].
  5. In-Memory Endpoint Execution: On the target host, the agent receives the payload. On Windows, it performs API unhooking by reading a clean copy of ntdll.dll from disk to strip user-mode EDR hooks, then executes the triage payload filelessly in memory using indirect syscalls [RESEARCHED, INFERENCE]. On Ubuntu, it utilizes memfd_create to execute the payload directly from anonymous RAM [INFERENCE].
  6. Kernel & Memory Artifact Extraction: The payload executes forensic collection: reading process memory structures, parsing loaded modules, enumerating handles, and interfacing with authorized memory drivers [INFERENCE].
  7. Encrypted Telemetry Exfiltration: Gathered forensic artifacts are compressed using Zstandard, encrypted with AES-256-GCM, and sent back through the domain-fronted CDN proxy to the Central C2 server for analyst visualization [INFERENCE].

12. Technology Stack

Layer Selected Technology Why Selected Alternative Considered Why Alternative Rejected
JOCKY Transpiler Python 3.12 (Lark Parser) / Rust Rapid AST generation, clean grammar definition, fast transpilation to C code [INFERENCE]. Flex / Bison (C++) Steeper learning curve and higher code verbosity for a 36-hour hackathon [INFERENCE].
Compiler Backend & Obfuscation Clang + Obfuscator-LLVM (OLLVM) Industry standard compiler framework; native LLVM IR pass plugins for CFG flattening and instruction substitution [RESEARCHED]. GCC Plugins GCC lacks modular IR pass abstraction as flexible as LLVM [RESEARCHED].
Endpoint Evasion Runtime C / C++ with SysWhispers3 Enables indirect system calls (syscall), stripping EDR API hooks and preventing user-mode telemetry generation [RESEARCHED]. Standard Win32 API (OpenProcess, VirtualAllocEx) Standard Win32 APIs fire immediate EDR behavioral detection flags [RESEARCHED].
Central C2 Backend Go (Golang) + Gin / FastHTTP Extremely high concurrency, built-in goroutines for parallel agent connections, compiles to single static binary [INFERENCE]. Node.js / Express Slower execution for heavy concurrent binary compilation tasks [INFERENCE].
C2 Dashboard Frontend React.js + Tailwind CSS + Vite High-performance reactive UI for real-time forensic visualization and mission tracking [INFERENCE]. Angular Unnecessary framework complexity for a rapid hackathon build [INFERENCE].
Transport & CDN Proxy Cloudflare Workers / Fastly CDN Enables HTTPS Host-header domain fronting and legitimate serverless API proxying [RESEARCHED]. Direct IP Egress Direct IP connection to C2 server is easily blocked by enterprise firewalls [RESEARCHED].
Database SQLite + SQLCipher Encryption Zero-configuration, file-based encrypted database for storing task queues and forensic evidence [INFERENCE]. PostgreSQL Overkill setup overhead for a hackathon prototype [INFERENCE].

13. AI/ML Justification

System AI Analysis

  • Is AI/ML required for Core Compilation, Obfuscation, or Endpoint Payload Execution? NO. Core compilation, LLVM IR control-flow flattening, polymorphic seed generation, and in-memory syscall execution are 100% deterministic software engineering operations [INFERENCE]. Introducing AI at the compilation or execution layer would introduce non-deterministic latency and binary instability [INFERENCE].
  • Where CAN AI be selectively applied? AI/ML is strictly restricted to the Central Management Dashboard level for post-acquisition forensic telemetry analysis [INFERENCE]:
    1. Exact Problem AI Solves: Automated triage and anomaly scoring of extracted process memory descriptors and driver signatures [INFERENCE].
    2. Input: Raw JSON telemetry (process list, memory region permissions, loaded drivers).
    3. Output: Anomaly Score (0-100) flagging potential unbacked executable memory regions or suspicious kernel drivers.
    4. Why Rule Engine Cannot Solve Fully: Rule engines miss novel, unlisted memory injection patterns that anomalous behavioral models catch [INFERENCE].
    5. Data Required: Baseline dataset of clean process memory maps vs infected RAM dumps [KNOWN].
    6. Evaluation Metric: Precision and Recall on benchmark forensic memory datasets [INFERENCE].
    7. Failure Mode: False positive flags a legitimate OS driver; investigator manually reviews raw artifact.
    8. Requires Training? Pre-trained lightweight Isolation Forest model [INFERENCE].
    9. Requires Fine-tuning / RAG / Vision / Speech? No [INFERENCE].
    10. Human Oversight: 100% human-in-the-loop; AI provides recommendations only [INFERENCE].

14. Data Architecture & Offline/Low-Network Design

Database Schema (SQLite / SQLCipher)

  • agents: agent_id (UUID), hostname (TEXT), os_type (TEXT), ip_address (TEXT), status (ENUM), last_seen (TIMESTAMP)
  • missions: mission_id (UUID), jocky_script_hash (TEXT), target_os (TEXT), created_at (TIMESTAMP)
  • tasks: task_id (UUID), mission_id (UUID), agent_id (UUID), status (PENDING, EXECUTING, COMPLETED, FAILED)
  • artifacts: artifact_id (UUID), task_id (UUID), artifact_type (MEMORY, DRIVER, LOG), data_json (BLOB), collected_at (TIMESTAMP)

Local Endpoint Storage & Buffering

  • Extracted telemetry is stored in an encrypted RAM ring-buffer in user memory [INFERENCE].
  • No raw forensic data is written unencrypted to disk [INFERENCE].

Synchronization & Retry Strategy

  • If network connection to the CDN edge proxy drops, the agent caches telemetry in encrypted RAM [INFERENCE].
  • The agent retries connection using exponential backoff with randomized jitter (e.g., 5s, 15s, 45s, 120s) [INFERENCE].

Bandwidth Reduction

  • Telemetry payloads are compressed using Zstandard (Zstd) compression prior to encryption, achieving ~70% size reduction on JSON/text forensic logs [INFERENCE].

15. Security, Privacy & Governance

  • Sensitive & Personal Data Protection: Extracted forensic evidence (process memory, user session data) is encrypted in transit using TLS 1.3 + AES-256-GCM, and at rest using SQLCipher [INFERENCE].
  • Authentication & Access Control: C2 dashboard requires multi-factor authentication (MFA) and Role-Based Access Control (RBAC). Agent check-ins require HMAC-SHA256 signature verification to prevent rogue agent registration or C2 hijacking [INFERENCE].
  • Dual-Use Evasion Safeguards: JOCKY provides powerful EDR bypass capabilities. To prevent unauthorized operational misuse, all compiled binaries are hardcoded with an agency-specific public key and will only execute commands cryptographically signed by the agency's private key [INFERENCE].
  • System Stability & Liability Controls: Driver interactions and kernel memory reads carry inherent BSOD risks. The framework includes mandatory kernel build verification and memory boundary validation before issuing IOCTLs [INFERENCE].

16. MVP Scope (Hackathon Build)

In Scope

  • JOCKY DSL Transpiler: A functional parser built in Python that translates a .jocky forensic script into modular C source code [ASSUMPTION].
  • LLVM Obfuscation Integration: Clang/OLLVM build pipeline applying Control-Flow Flattening (-mllvm -fla), instruction substitution, and string obfuscation [ASSUMPTION].
  • Polymorphic Build Pipeline: Automated CI/CD script that injects randomized decryption seeds and generates unique SHA-256 hashes per compilation [ASSUMPTION].
  • User-Mode Evasion Runtime: Windows C execution module implementing API unhooking (ntdll reload) and indirect syscalls (SysWhispers3 pattern) [ASSUMPTION].
  • Dual Target Compilation: Functional cross-compilation emitting Windows .exe binaries and Ubuntu ELF binaries [ASSUMPTION].
  • Central C2 Web Dashboard: Go backend + React frontend displaying real-time agent registration, script dispatch, and forensic result tables [ASSUMPTION].
  • CDN Domain Fronting Simulation: Telemetry routed through Cloudflare Worker edge proxy with host header modification [ASSUMPTION].

Described Only / Out of Scope

  • Exploitation of unvetted kernel zero-days or destructive EDR-killer driver modifications (simulated via safe physical memory read driver IOCTLs) [ASSUMPTION].
  • Enterprise deployment across tens of thousands of concurrent active nodes [ASSUMPTION].
  • Hardware-level PCIe Direct Memory Access (DMA) hardware attack cards [ASSUMPTION].

17. Live Demo Simulation Plan

To convince SIH judges without relying on live government networks or risky zero-day driver exploits, the team will present a fully transparent, functional live demonstration using two local target Virtual Machines [ASSUMPTION]:

  • Target VM 1: Windows 11 Enterprise running active Microsoft Defender AV/EDR [ASSUMPTION].
  • Target VM 2: Ubuntu 22.04 LTS [ASSUMPTION].
  • C2 Infrastructure: Local Go C2 Server connected to a live Cloudflare Worker domain-fronting edge proxy [ASSUMPTION].

Live Step-by-Step Execution Journey:

  1. Script Authoring: Operator opens the JOCKY Web Dashboard, creates a new triage mission, and writes a JOCKY script (triage_memory.jocky) to inspect unbacked executable memory and loaded drivers [ASSUMPTION].
  2. Compilation & Polymorphism: Operator clicks "Compile & Deploy". The live screen shows the JOCKY Transpiler converting the script to C, Clang applying LLVM IR control-flow flattening, and the polymorphic engine generating two unique binaries (PE and ELF) with distinct hashes [ASSUMPTION].
  3. Static EDR Bypass: The generated PE binary is saved to the Windows 11 VM desktop. Windows Defender static scan is triggered manually; Defender reports 0 Threats Found due to altered CFG and token structures [ASSUMPTION].
  4. Fileless In-Memory Execution: Payload executes on Windows 11. The demo demonstrates API unhooking and indirect syscall execution, filelessly harvesting memory structures without triggering Defender behavioral alerts [ASSUMPTION].
  5. CDN Telemetry Exfiltration: Wireshark capture on the network interface shows outgoing HTTPS traffic directed to cdn.cloudflare.com (SNI header). The Cloudflare Worker forwards the payload to the local C2 backend [ASSUMPTION].
  6. Real-Time Visualization: The Central Dashboard updates dynamically, populating the forensic matrix with parsed process maps and driver lists [ASSUMPTION].

18. Implementation Roadmap

Target Deadline: 30 September 2026 [PS]

[Oct 2025 - Nov 2025] Phase 1: DSL Grammar & Parser Construction
  ├── Define JOCKY EBNF Grammar
  └── Build Python/Lark Transpiler (JOCKY -> C)

[Dec 2025 - Feb 2026] Phase 2: LLVM Obfuscation & Evasion Engine
  ├── Configure Clang/OLLVM Passes (CFG Flattening, String Obfuscation)
  └── Implement Win32 SysWhispers3 Indirect Syscalls & API Unhooking

[Mar 2026 - Apr 2026] Phase 3: Polymorphic CI/CD & C2 Infrastructure
  ├── Build Go Core C2 Backend & React Dashboard
  └── Deploy Cloudflare Worker Domain Fronting Transport Proxy

[May 2026 - Jun 2026] Phase 4: Cross-Platform & Forensic Module Integration
  ├── Implement Ubuntu Linux memfd_create Fileless Execution
  └── Build Driver Abstraction & Physical Memory Parsing Routines

[Jul 2026 - Aug 2026] Phase 5: Security Hardening & EDR Testing
  ├── Benchmark against Windows Defender & EDR Trial Environments
  └── Optimize LLVM Pass Parameters & Reduce Payload Overhead

[Sept 2026] Phase 6: Final Demo Prep & Submission (Deadline: 30 Sept 2026)
  └── Finalize Live Demo Setup, Code Freeze, and Presentation Documentation

19. Testing & Validation Plan

  • Functional Testing: Validate that JOCKY DSL transpiles cleanly to C and compiles into valid PE and ELF binaries across MSVC/Clang and GCC/Clang [INFERENCE].
  • Evasion & Static Testing: Submit compiled JOCKY binaries to VirusTotal and local static scanners; verify 0 static signature detections [INFERENCE].
  • Behavioral & EDR Testing: Execute payloads on Windows 11 with active Defender/EDR heuristics enabled; verify API unhooking and indirect syscalls produce zero alert events [INFERENCE].
  • Performance & Footprint Testing: Measure CPU and RAM consumption during execution; target <1% CPU and <20 MB RAM footprint [INFERENCE].
  • Network & Transport Auditing: Perform Wireshark packet analysis on C2 traffic to confirm TLS 1.3 SNI domain fronting and AES-256-GCM payload encryption [INFERENCE].
  • Offline / Reconnection Testing: Sever host network interface mid-execution; verify telemetry caches in RAM and syncs upon network restoration [INFERENCE].

20. Risk Register

Risk Description Likelihood Impact Severity Mitigation Strategy
EDR Heuristics Flag In-Memory Direct Syscalls Medium High High Implement SysWhispers3 indirect syscalls with call-stack spoofing and dynamic syscall number resolution [RESEARCHED].
LLVM Obfuscation Pass Increases Binary Size Excessively High Medium Medium Fine-tune compilation flags; apply custom strip-symbols pass and custom packed stubs selectively [INFERENCE].
Domain Fronting Blocked by Strict CDN Policies High Medium Medium Fallback to Cloud API proxies (AWS S3 / Azure Blob API) or custom Serverless Worker edge proxies [RESEARCHED].
Kernel Memory Driver Interaction Causes BSOD Low High High Implement driver signature checks, OS build version verification, and safe read-only memory wrappers [INFERENCE].
CI/CD Compilation Build Time Exceeds Hackathon Limits Low High High Pre-compile LLVM toolchain docker container and cache common C library dependencies [INFERENCE].

21. Cost & Scalability

Hackathon Build

  • Hardware: Existing student development laptops ($0) [ASSUMPTION].
  • Software & Toolchains: Open-source LLVM/Clang, Go, React, Python ($0) [ASSUMPTION].
  • Cloud Infrastructure: Free-tier Cloudflare Workers & local VM testing ($0) [ASSUMPTION].
  • Total Hackathon Budget: $0 [ASSUMPTION].

Production System

  • Distributed C2 Infrastructure: Multi-region Kubernetes C2 cluster with enterprise CDN proxies ($500 - $2,000 / month) [INFERENCE].
  • Dedicated Build Infrastructure: High-core CI/CD build servers for rapid parallel LLVM compilation ($300 - $800 / month) [INFERENCE].
  • Hardware Security Modules (HSM): HSM-backed EV Code Signing Certificates for driver validation ($500 - $1,500 / year) [INFERENCE].

22. Differentiation

  • Targeted Alignment with Requirement 1: Unlike generic forensic utilities (Velociraptor, OSQuery) that rely on static compiler builds, JOCKY compiles scripts using custom LLVM IR Control-Flow Graph (CFG) flattening, completely neutralizing signature-based detection [PS, INFERENCE].
  • Targeted Alignment with Requirement 2: Integrates an automated polymorphic CI/CD pipeline that dynamic mutates entry points, encryption seeds, and import tables for every single deployment instance [PS, INFERENCE].
  • Targeted Alignment with Requirement 3: Combines user-mode API unhooking, indirect syscalls, and driver-level memory access to execute filelessly without triggering EDR telemetry hooks [PS, INFERENCE].
  • Targeted Alignment with Requirement 4: Tunnels command and telemetry traffic through trusted CDN edge proxies using domain fronting, rendering C2 channels indistinguishable from legitimate enterprise web traffic [PS, INFERENCE].

23. Future Scope

  • eBPF Engine for Ubuntu Linux: Extend Linux collection to utilize eBPF (Extended Berkeley Packet Filter) for zero-overhead, real-time kernel event tracing [INFERENCE].
  • Dynamic EDR Unhooking Matrix: Automatically detect proprietary EDR DLLs loaded in process memory (hooking.dll) and dynamically patch memory hooks at runtime [INFERENCE].
  • ARM64 Cross-Compilation: Expand LLVM target generation to support ARM64 architectures (Apple Silicon & Enterprise ARM Linux servers) [INFERENCE].

24. Assumptions & Open Items Log

Consolidated Assumptions

  • [ASSUMPTION] Transpiling JOCKY DSL scripts to C/C++ before invoking Clang/OLLVM is accepted as a valid implementation of a custom language frontend targeting LLVM IR.
  • [ASSUMPTION] Hackathon demonstration will utilize simulated CDN domain fronting via Cloudflare Workers and local Virtual Machines.
  • [ASSUMPTION] Driver interaction during the MVP will be demonstrated safely using administrative memory acquisition drivers or simulated IOCTL wrappers.

Consolidated Validation Items

  • [NEEDS VALIDATION] Exact EDR product suite deployed on target NTRO systems (e.g., Defender for Endpoint, CrowdStrike Falcon, SentinelOne) to tune specific unhooking strategies.
  • [NEEDS VALIDATION] Specific CDN egress policies of target organizational firewalls regarding TLS SNI host header inspection.

Final Recommendation

Adopt Approach 3 (JOCKY Transpiler to C/C++ with LLVM IR Obfuscation Pass, Polymorphic CI/CD Engine, In-Memory Evasion Loader, and Cloudflare Worker Domain-Fronted C2). This approach directly fulfills every requirement in the NTRO problem statement while remaining 100% buildable and demonstrable within the hackathon timeframe.

Recommended Stack

  • DSL Transpiler: Python 3.12 (Lark Parser)
  • Compiler Backend: Clang + Obfuscator-LLVM (OLLVM)
  • Evasion Runtime: C / C++ (SysWhispers3, PE/ELF Reflective Loader)
  • C2 Core Backend: Go (FastHTTP) + SQLCipher
  • Dashboard Frontend: React.js + Tailwind CSS
  • Transport Proxy: Cloudflare Workers / Fastly CDN

Biggest Dependency

The setup and cross-compilation target environment (x86_64-pc-windows-msvc and x86_64-unknown-linux-gnu) running within the automated CI/CD pipeline.

Biggest Risk

Modern EDR behavioral heuristics or ETW-TI (Threat Intelligence) detecting direct memory allocations, requiring robust indirect syscalls and call-stack spoofing.

Biggest Technical Challenge

Implementing clean LLVM IR transformation passes (Control-Flow Graph flattening and string encryption) without breaking the functional execution semantics of low-level C forensic extraction code.

First 5 Actions

  1. Construct a standardized Docker build container pre-configured with Clang, OLLVM passes, and dual PE/ELF cross-compilation targets.
  2. Formally define the JOCKY DSL grammar and build the transpiler prototype in Python.
  3. Write a baseline C module for memory artifact parsing and verify Clang IR obfuscation passes on it.
  4. Integrate SysWhispers3 indirect syscall generator and test execution against Windows Defender on a test VM.
  5. Implement the Go C2 server skeleton and Cloudflare Worker domain-fronting proxy script.

Validation Before Coding

  • Verify that Clang with OLLVM flags compiles C code into valid PE/ELF binaries that execute without crashing.
  • Confirm indirect syscall payloads execute cleanly on Windows 11 without triggering static AV or user-mode hooks.
  • Verify Cloudflare Worker correctly forwards HTTPS Host-header requests to the local C2 backend.

Buildability Score /100

88 / 100 (Highly buildable for a 4-6 student team using transpilation + LLVM toolchain + Go C2 stack).

Confidence

High (Backed by verified public security research on LLVM obfuscation passes, SysWhispers indirect syscalls, domain fronting, and DFIR architectures).

Research Sources

  1. Obfuscation vs the Optimizer: An LLVM Middle-End Arms Race

  2. Obfuscator-LLVM Framework Documentation

    • URL: https://github.com/MaxXor/obfuscator-llvm
    • Source Type: Open Source Software Repository
    • Supported Claim: Obfuscator-LLVM operates at the IR level, providing instruction substitution, bogus control flow, and control-flow flattening across x86/x64 architectures [RESEARCHED].
    • Reliability: High (Industry-standard open-source compiler obfuscation benchmark).
  3. Measuring CDNs Susceptible to Domain Fronting

    • URL: https://arxiv.org/pdf/2310.17851
    • Source Type: Academic Research Paper (ACM / arXiv)
    • Supported Claim: Domain fronting remains active across major CDN providers, disguising true HTTP endpoints behind trusted SNI domains [RESEARCHED].
    • Reliability: High (Peer-reviewed academic study).
  4. BYOVD EDR Evasion & Defensive Playbook

  5. Just-in-Time for Runtime Interpretation - Unmasking LLVM IR Based JIT Execution

02 / What our

DEVELOPERS SAY

" 30M+ Google Gemini tokens went into researching, analyzing, and understanding all 233 SIH problem statements to make them easier to explore and solve. "
Satyam Kumar
Satyam Kumar
CEO , Full Stack Developer
" The platform makes SIH problem statements much easier to understand. Having everything from the problem details to the procedure in one place. "
Rishabh Ranjan
Rishabh Ranjan
COO , Content Writer
" Oh, you got ads? Well, we need to make money too! But, you can use our platform to help you win SIH and take home the prize money. "
Himanshu Kumar
Himanshu Kumar
CMO , Product Reviewer
03 / Are You

READY TO
BUILD?

Get in touch if you need help bringing your ideas to life, or simply have an interesting idea you'd like to talk through. I'm always open to a conversation and exploring new possibilities together.