YARA rule 'agent_skill_credential_exfiltration_webhook': AI agent skill credential harvesting followed by webhook or external exfiltration [agent_skills]
- Category
- YARA Match
- Confidence
- 85% confidence
- Finding
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
- Content
en格式:123456789:ABCdefGHIjklMNOpqrSTUvwxYZ
...
通过环境变量注入(禁止硬编码)
export TG_BOT_TOKEN="123456789:ABCdefGHIjklMNOpqrSTUvwxYZ"
text ### 第二步:选择更新处理策略 ```bash # 策略一:长轮询(开发环境推荐,无需公网IP) # 主动调用 getUpdates 拉取更新 # ... # 策略二:Webhook(生产环境推荐,实时性好) curl -X POST "https://api.telegram.org/bot${TG_BOT_TOKEN}/setWebhook" \ -d "url=https://your-domain.com/webhook" \ -d "secret_token=your_secret_token"第三步:实现命令路由
python import os import requests # ... TOKEN = os.environ["TG_BOT_TOKEN"] API = f"https://api.telegram.org/bot{TOKEN}" # ... def handle_update(update): message = update.get("message", {}) text = message.get("text", "") chat_id = message.get("chat", {}).get("id") # ... if text == "/start": reply = "欢迎使用!输入 /help 查看可用命令。" el
