Skip to content

pale-knight/redteam-skill / skills/edr-bypass

edr-bypass

Verified

Endpoint defense evasion after an operator-selected chain already has a valid execution path but AV/EDR/AMSI/WDAC/PPL/memory/kernel telemetry blocks the intended action. Originating modules include /web-attack /ad-attack /cloud-attack /k8s /cicd /service-attack /phishing /privesc-win /privesc-linux /creds /post /shell. Success is the blocked action becoming executable, then resume the originating module — not obtaining a shell here.

references/memory-execution.md

View on GitHub
# Memory Execution / Injection

不要默认:

```text
VirtualAllocEx → WriteProcessMemory → CreateRemoteThread
```

这条链在现代 EDR 上高度相关。根据 observed blocker 换 primitive。

成功:原先在内存/线程阶段被拦的 payload,现在跑到预期代码路径。然后回原 Attack 模块拿 shell/权限。

---

## 1. 先看拦在哪

```text
新 RWX 分配被拦            → 改 image-backed / RX 后写 / 先 RW 再 RX
WriteProcessMemory 被拦     → 用 NtWriteVirtualMemory syscall / section map
CreateRemoteThread 被拦     → APC / callback / 入口劫持 / 无新线程
执行后几秒被杀              → 内存扫描 / sleep 加密 / Caro-Kann 时序
```

---

## 2. Module stomping / image-backed

用已加载合法模块的 image-backed 区承载代码,减少匿名 RWX。

流程见 `process-execution.md`。注意:模块完整性、call-stack provenance 仍可能告警。

---

## 3. Entry Point Hijacking

```text
CREATE_SUSPENDED
→ 找目标 image 入口
→ 写入 stub / 改入口
→ ResumeThread
```

减少显式 remote thread。

---

## 4. Callback / APC / threadless

```c
EnumWindows((WNDENUMPROC)payload, 0);
QueueUserAPC((PAPCFUNC)payload, hThread, 0);
```

APC 目标线程必须能进入 alertable wait。Early Bird:挂起进程的主线程在 Resume 后第一次 alertable 时跑。

Threadless / 不新建线程的方案:覆盖合法函数入口或用回调。实现跟具体 PoC 走,不要现场发明。

---

## 5. Caro-Kann(memory-scan timing research)

官方思路:

```text
加密 payload 放在 RW
小 RX stub 先执行(扫描打在良性 stub 上)
delay
解密
RW→RX
跳到 payload
```

```bash
git clone https://github.com/S3cur3Th1sSh1t/Caro-Kann.git
cd Caro-Kann
# 交叉编译依赖以项目 README 为准
make
```

标为 **research / 环境门控**。不是通用注入替代。成功标准仍然是:原被拦 payload 现在执行。

---

## 6. 权限与目标进程

```text
注入其他进程:需要合适句柄权限,PPL 目标先看 credential-access-evasion / kernel
当前进程 self-inject:遥测通常更低,钓鱼/Web 落地优先 self-exec
```

远程注入被拦时,先改成当前进程执行(钓鱼 ClickFix、Web 的 dropper),不要死磕 lsass/csrss。

---

## 7. 成功判断

```text
Before: 同 payload 在内存/线程阶段被拦
After : payload 到达预期函数/回连
Cleanup: 结束测试进程;不要 stomped 系统进程长期运行
Resume: 原 Attack 模块
```
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall