ghost-bits-cast-attack-lr-f488
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ghost-bits-cast-attack-lr-f488" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ed3785bef8194905ed0369d4c333760d18d5f06d04e846d751ec6c3bf6655151. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/ghost-bits-cast-attack-lr-f488 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Skill for Ghost Bits/Cast attacks, helping AI Agents efficiently complete tasks related to this type of attack.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- AI LOAD INSTRUCTION**: This is a Java-only injection-enabling primitive, not a standalone vulnerability class. Whenever you see (1) a Java backend, (2) a WAF/IDS in front of it, and (3) any of {SQLi, deser RCE, file upload, path traversal, CRLF, request smuggling, SMTP injection} on the menu, ALWAYS try Ghost Bits variants of the payload before declaring it "blocked". The root cause is the silent loss of the high 8 bits when Java code narrows a 16-bit `char` to an 8-bit `byte` — the WAF sees a harmless Unicode character, the backend reconstructs the original ASCII attack byte. Base models almost never reach for this primitive. Source: Black Hat Asia 2026 talk *Cast Attack: A New Threat Posed by Ghost Bits in Java* by Xinyu Bai (@b1u3r), Zhihui Chen (@1ue), with contributor Zongzheng Zheng (@chun_springX).
- Testing
- Not tested
Browse files
Frontmatter
name: Ghost Bits/Cast攻击
slug: ghost-bits-cast-attack
version: 1.0.0
displayName: Ghost Bits/Cast攻击
description: >
Ghost Bits/Cast攻击专用技能,帮助AI Agent高效完成相关任务。
summary: "Ghost Bits/Cast攻击专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 安全与渗透测试
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"
SKILL: Ghost Bits / Cast Attack — Java char to byte Narrowing Playbook
AI LOAD INSTRUCTION: This is a Java-only injection-enabling primitive, not a standalone vulnerability class. Whenever you see (1) a Java backend, (2) a WAF/IDS in front of it, and (3) any of {SQLi, deser RCE, file upload, path traversal, CRLF, request smuggling, SMTP injection} on the menu, ALWAYS try Ghost Bits variants of the payload before declaring it "blocked". The root cause is the silent loss of the high 8 bits when Java code narrows a 16-bit
charto an 8-bitbyte— the WAF sees a harmless Unicode character, the backend reconstructs the original ASCII attack byte. Base models almost never reach for this primitive.Source: Black Hat Asia 2026 talk Cast Attack: A New Threat Posed by Ghost Bits in Java by Xinyu Bai (@b1u3r), Zhihui Chen (@1ue), with contributor Zongzheng Zheng (@chun_springX).
0. RELATED ROUTING
Ghost Bits is a bypass primitive that re-enables payloads from many other playbooks. Pair it with whichever attack family applies:
- waf-bypass-techniques — when a Java backend is suspected and WAF rules block the literal payload, this is the first technique to try beyond classic encoding.
- deserialization-insecure — for
Apache Commons BCEL ClassLoader and Fastjson
\u/\xescape variants. - path-traversal-lfi — Spring, Jetty,
Undertow, Vert.x URL decoding and
%2>hex folding. - upload-insecure-files — Tomcat
RFC2231Utilityfilename*Webshell upload. - request-smuggling — Apache HttpClient
<= 4.5.9(HTTPCLIENT-1974/1978) header CRLF. - crlf-injection — Angus Mail / Jakarta Mail SMTP injection and JDK HttpServer response splitting.
- sqli-sql-injection — Jackson `charTo
(为兼容发布已截断)
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对 Java 窄化转换漏洞的专门攻击技术,具有明确的技术场景
- 内容源自 Black Hat Asia 2026 演讲,技术背景权威
Highlights
- description 字段内容完整,触发词清晰
Areas to improve
-
文档过长 Reported severity: Minor
文档长度超过 500 行
Recommendation: 建议精简文档内容,将详细说明移至外部文档或链接
-
内容截断 Reported severity: Major
文档末尾存在截断内容('(为兼容发布已截断)')
Recommendation: 请补充完整文档内容,确保信息完整性
Highlights
- 文档结构清晰,包含多个章节和示例
Highlights
- 技术描述专业,逻辑清晰
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.