Habr•August 15, 2026•🇷🇺Translated from Russian

GitHub Copilot Traffic Analysis via MITM Proxy Exposes Prompt Context Handling and Local SQLite Session Storage

A security researcher conducted an in-depth analysis of GitHub Copilot by routing all network traffic from Visual Studio Code through an mitmproxy instance configured as a man-in-the-middle proxy.

The study began with the observation that Copilot rapidly consumes monthly request quotas, prompting an investigation into its internal communication patterns. Because Visual Studio Code and Copilot are built on Electron, the researcher first mapped the application’s network architecture, distinguishing between Chromium-based renderer processes and Node.js HTTP requests.

Proxy Setup and Traffic Interception

After installing mitmproxy via Homebrew and configuring VS Code proxy settings (Http Proxy, Strict SSL disabled, Proxy Support set to override), the researcher launched mitmweb to capture live requests. Additional steps included restarting the Extension Host process to ensure fresh connections were routed through the proxy.

Traffic analysis showed multiple request categories even before any code was typed: authentication and session management via OAuth, configuration and policy retrieval, MCP registry access, repository and session context, model discovery, and recent repository listings.

Model Intent Routing and Prompt Construction

In Auto mode, Copilot sends each prompt to the /models/session/intent endpoint for classification into categories such as code-gen, debugging, or tool-use. The resulting classification determines which model handles the request.

Inline suggestion requests were observed to include the current file path and content from recently edited files. When a fake secret was placed in a .env file, the secret appeared in prompts generated while editing an unrelated pyproject.toml file, demonstrating that context collection is not limited to the file where suggestions are enabled.

Local Session History and Chronicle Tool

Many requests referenced a tool named session_store_sql that can execute read-only SQLite queries against a local database called session-store.db. The database stores session summaries, user prompts, LLM responses, repositories, branches, and checkpoints.

When the researcher asked Copilot what work had been done the previous week, the model first attempted an invalid query, performed schema introspection, and then successfully retrieved records from the local store using the Copilot Chronicle skill.

The findings illustrate how GitHub Copilot maintains persistent local state and incorporates broad context into prompts sent to remote models.

Related articles

BoletimSec•AI Security

CrowdStrike Joins Anthropic Critical Infrastructure Defense Program as Founding Partner

CrowdStrike has become a founding partner in Anthropic's critical infrastructure defense program, which applies artificial intelligence to protect energy, water, manufacturing, and transportation systems. The partnership was announced on October 8 and brings together 11 founding partners, including Nozomi Networks, Rockwell Automation, and Palo Alto Networks. The initiative combines access to Claude models, dedicated engineers, and threat research aimed at security providers and industrial equipment manufacturers. CrowdStrike contributes its Falcon platform, delivering security data, threat intelligence, and attacker behavior history through Falcon for XIoT, which unifies visibility across industrial and IT assets. The program builds on the existing integration of Claude within CrowdStrike's Charlotte AI assistant. Initial focus remains on identifying defensive methods that work safely and effectively in industrial settings without positioning AI as a complete solution.

BoletimSec•AI Security

Small and Medium Businesses Accelerate Cybersecurity Investments as AI-Powered Attacks Rise

Owners of small and medium enterprises have begun treating cybersecurity as a core business priority rather than an afterthought. The rise of artificial intelligence has made it easier to develop and launch web platforms, mobile applications, and digital services without large teams, but this expansion has also triggered a surge in automated AI-driven attacks and data leaks affecting companies of every size. The outdated assumption that smaller operations are too insignificant to target no longer holds, as AI-powered scans probe the internet for any available vulnerability around the clock. When breaches occur, consequences extend beyond technical damage to include LGPD fines, operational downtime, and lasting loss of customer trust built over years. In response, entrepreneurs are focusing investments on three main areas: web application firewalls, recurring AI-assisted pentesting, and autonomous security operations centers. Solutions from Cloudflare, HackerSec, and SentinelOne are frequently adopted because they offer robust protection without requiring dedicated in-house security staff. This shift marks a broader change in mindset, where security is now viewed as an essential component of sustainable growth rather than a cost to be deferred until after an incident.

Habr•AI Security

Locally Downloaded AI Models and LoRA Adapters Can Steal Passwords, Keys and Funds

Security researcher working on distributed multimodal AI systems warns that locally run models and community-shared LoRA adapters cannot be trusted by default. The post highlights concrete risks of credential theft, private key extraction and financial loss that go beyond theoretical concerns. As the number of downloaded models, fine-tuned adapters and compute nodes grows, the attack surface expands significantly. Malicious or compromised components can silently exfiltrate sensitive data without obvious signs during normal operation. The author draws from personal experience and published research to illustrate these threats in practical scenarios involving local AI deployments.

AntiMalware•AI Security

Positive Technologies to Explore AI Attacks and Autonomous SOC Advances at PSD 2026

Positive Technologies will host Positive Security Day 2026 in Moscow on October 15-16, focusing on how artificial intelligence is reshaping cybersecurity. The event will highlight new product developments in MaxPatrol O2 and the company's push toward an autonomous SOC. Attendees will examine Security Lakehouse as a method for handling large volumes of security data to train models. Practical sessions will allow participants to attack AI technologies, investigate incidents, and disassemble products with engineers. The business program will address how organizations can automate security without creating new risks that require manual explanations after incidents. The conference takes place at the Mechta complex in Gorky Park and offers both in-person and online participation.