# gaffe23/linux-inject

Tool for injecting a shared object into a Linux process

Repository: https://github.com/gaffe23/linux-inject
Canonical: https://ross.abutalabs.com/products/linux-inject
Language: C
License: NOASSERTION
License Family: other
Last push: 2022-02-23T12:39:01+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4219, "days_push": 1652, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1238, forks 259 (observed 2026-08-28T04:04:05.498552+00:00)

## What it is
A command-line tool written in C that injects a shared object (.so) into a running Linux process using ptrace(), analogous to CreateRemoteThread() DLL injection on Windows. It supports x86, x86_64, and ARM architectures and loads libraries via __libc_dlopen_mode() so targets don't need to be linked against libdl.

## Use cases
- inject a shared library into a running linux process
- linux equivalent of DLL injection like CreateRemoteThread
- load a .so into an already-running process with ptrace
- test process injection techniques on linux
- hook or extend a running process without restarting it
- security research on linux process manipulation

## When to choose
- you need to inject a shared object into a process that is already running
- you want a ptrace-based alternative to LD_PRELOAD
- you need injection support across x86, x86_64, and ARM linux
- the target process was not built with -ldl

## When to avoid
- you need injection on macOS, Windows, or other non-Linux platforms
- ptrace_scope restrictions cannot be disabled in your environment
- you want a maintained tool with active development and support
- you need stealthy injection that evades modern EDR monitoring

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, reverse-engineering, developer-tools
- domain: security, operating-systems, developer-tools
- platform: cli
- tags: process-injection, ptrace, shared-object-injection, penetration-testing, linux

## Member repositories
- gaffe23/linux-inject (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.498552+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:10:03.275040+00:00, confidence not recorded.
  - readme: https://github.com/gaffe23/linux-inject (fetched 2026-08-28T04:04:05.498552+00:00, sha 9bd3eed327ee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
