NEWSFEVER
Technology worth discussing24 / 7 · RU + EN
Back to feedCybersecurity

Job-offer ZIP concealed a Git-based code execution trap

A Habr author described an archive whose local Git configuration could silently launch a remote-code downloader during certain repository operations.

Published: 14 Nov 2026, 06:00 UTC
A cutaway ZIP archive containing documents and a branching repository structure connected to an abstract server by a red line.
Conceptual illustration: a hidden code-execution mechanism inside an archive of work documents.

A Habr author reported receiving a LinkedIn collaboration offer from someone claiming to recruit for Cryptic Heaven. The sender provided a link to documents and a project, asking the recipient to complete a contract. The download, Contract-2026.zip, contained README.md, contract.docx and a .git directory. Its instructions directed the recipient to switch between three repository branches to review the documents and source code.

The author found a redirected hooks directory and a clean filter assigned to files through .git/info/attributes. A post-checkout hook ran git status, which could invoke the .git/ltr filter while checking for changes. The author confirmed that behavior using a harmless filter in a test repository. Delivering the complete .git directory was central to the setup: ordinary cloning does not copy the remote repository’s local configuration or ready-to-run local hooks.

The filter script started a background process designed to wait for a series of filter calls to finish, then download additional code and execute it through sh or PowerShell, depending on its operating-system detection. It returned file contents to Git unchanged. The ZIP alone did not establish what the downloaded code would do.

The described setup could also trigger if an editor or terminal prompt automatically ran git status. Opening README in VS Code would not guarantee execution: that depended on workspace trust, repository detection settings and the Git operations performed. Simply extracting the archive did not activate the hooks or filters. The author also emphasized that finding a downloader did not prove a successful infection; establishing that would require determining whether the filter ran and what code the server supplied.

Original source: habr.com ↗

Comments on source platforms

Rank is the maximum of the latest discussion counts. These are source metrics.

Хабр