YARA rule 'agent_skill_credential_exfiltration_webhook': AI agent skill credential harvesting followed by webhook or external exfiltration [agent_skills]
Critical
- Category
- YARA Match
- Content
import requests import argparse import sys import os def send_file(file_path): token = os.environ.get("TELEGRAM_BOT_TOKEN") chat_id = os.environ.get("TELEGRAM_CHAT_ID") if not token or not chat_id: print("Error: TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID must be set as environment variables.") sys.exit(1) if not os.path.exists(file_path): print(f"Error: File {file_path} not found.") sys.exit(1) if not file_path.endswith('.md'): print(f"Error: {file_path} is not a valid Markdown (.md) file.") sys.exit(1) url = f"https://api.telegram.org/bot{token}/sendDocument" try: with open(file_path, 'rb') as f: files = {'document': f} data = {'chat_id': chat_id} response = requests.post(url- Confidence
- 85% confidence
- Finding
- YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
