<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku" -->

---
title: Compromised Flutter package on pub.dev contains XCSSET...
description: Aikido Security discovered a variant of XCSSET malware inside universal_file_viewer, a Flutter package on pub.dev with roughly 500 downloads. The maintainer's...
canonical: https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Compromised Flutter package on pub.dev contains XCSSET malware | daily.dev
og:description: Aikido Security discovered a variant of XCSSET malware inside universal_file_viewer, a Flutter package on pub.dev with roughly 500 downloads. The maintainer's...
og:url: https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku
og:image: https://api.daily.dev/og/posts/rEh2oJJKu.png
og:image:alt: Compromised Flutter package on pub.dev contains XCSSET malware
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Compromised Flutter package on pub.dev contains XCSSET malware

**[Aikido Security](https://daily.dev/sources/aikido-security)** · 9 min read · 5 upvotes · 0 comments

## Summary

Aikido Security discovered a variant of XCSSET malware inside universal_file_viewer, a Flutter package on pub.dev with roughly 500 downloads. The maintainer's macOS machine was infected, and the worm spread itself into the example/ directory build files (Android Gradle, Xcode, git hooks) when a new version was published. The core library code is clean; the malicious files only trigger if someone clones the repo and builds the example app locally, not through normal pubspec.yaml dependency use. XCSSET propagates via android_finder, git_finder, and replicator_finder modules, hides persistence by replacing the Launchpad Dock tile, and runs a range of theft modules targeting Chrome, Safari, Firefox, Telegram, Notes/Reminders/Calendar, clipboard, and system settings, exfiltrating data encrypted with AES-256-CBC. C2 domains and file-level indicators of compromise are provided.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.aikido.dev/blog/compromised-flutter-package-on-pub-dev-contains-xcsset-malware>

## Questions this post answers

### What is the XCSSET malware found in the universal_file_viewer Flutter package on pub.dev?

XCSSET is a macOS worm that was found injected into version 0.1.5 of the universal_file_viewer package on pub.dev, the first known compromised package on that registry. The infection lives only in the package's example/ directory, which ships in the tarball but is never compiled when the package is used as a normal pubspec.yaml dependency, so most consumers are unaffected. The risk applies to anyone who clones the repository and builds the example app locally, since infected build.gradle.kts, iOS pbxproj, and macOS pbxproj files each trigger a build hook contacting a Russian C2 domain.

_Track supply chain malware findings like this XCSSET pub.dev case through daily.dev before pulling example code from a repo._

### How does XCSSET spread between Android, Xcode, and git projects on an infected machine?

XCSSET uses three worm modules: android_finder injects a malicious preBuild hook into every Android Gradle project on the machine, replicator_finder injects a Run Script build phase into every Xcode project, and git_finder writes a malicious pre-commit hook into every .git repository, firing on every commit. Each module scans the home directory for matching build files and cleans up prior infections before re-injecting, so any developer who builds or commits to an infected project also gets infected.

_Developers auditing build pipelines for worm-style propagation can follow security writeups like this one on daily.dev._

### How does XCSSET achieve persistence that survives a macOS reboot?

The persist module downloads dockutil from its command-and-control server, ad-hoc signs it, and builds a fake app bundle whose Info.plist is patched with CFBundleDisplayName set to Launchpad and CFBundleIdentifier set to com.apple.launchpad.launcher. It then swaps the real Launchpad tile in the Dock for this fake bundle, so every time the user clicks Launchpad after a reboot, the malicious chain re-triggers while the real Launchpad still opens normally, leaving no trace in standard persistence locations.

_Stay ahead of stealthy macOS persistence techniques like this Launchpad hijack by following security research on daily.dev._

## Similar posts on daily.dev

- [Operation FlutterBridge: macOS Malvertising Campaign Spreads New FlutterShell Backdoor](https://daily.dev/posts/operation-flutterbridge-macos-malvertising-campaign-spreads-new-fluttershell-backdoor-zz5mkjsnr) · Unit 42 · 0 upvotes · 0 comments
- [Laravel Lang packages hijacked to deploy credential-stealing malware](https://daily.dev/posts/laravel-lang-packages-hijacked-to-deploy-credential-stealing-malware-tennbnuyq) · BleepingComputer · 0 upvotes · 0 comments
- [Your CLAUDE.md File Is Now a Malware Delivery Mechanism](https://daily.dev/posts/your-claude-md-file-is-now-a-malware-delivery-mechanism-1cm6dlqyv) · Medium · 1 upvotes · 0 comments

---

Tags: [#cyber](https://daily.dev/tags/cyber), [#malware](https://daily.dev/tags/malware), [#flutter](https://daily.dev/tags/flutter)

[View this post on daily.dev](https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Compromised Flutter package on pub.dev contains XCSSET malware","url":"https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku"},"datePublished":"2026-09-08T16:34:07.055Z","dateModified":"2026-09-14T08:36:10.563Z","description":"Aikido Security discovered a variant of XCSSET malware inside universal_file_viewer, a Flutter package on pub.dev with roughly 500 downloads. The maintainer's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43d0ad169bed0f3104b39b8621f58f08?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43d0ad169bed0f3104b39b8621f58f08?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Aikido Security","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Aikido Security","logo":"https://media.daily.dev/image/upload/s--vJDqDYv_--/f_auto,q_auto/v1774959928/logos/aikido-security?_a=BAMAMiWQ0","url":"https://daily.dev/sources/aikido-security"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cyber,malware,flutter","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Aikido Security","item":"https://daily.dev/sources/aikido-security"},{"@type":"ListItem","position":3,"name":"Compromised Flutter package on pub.dev contains XCSSET malware"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/compromised-flutter-package-on-pub-dev-contains-xcsset-malware-reh2ojjku#faq","mainEntity":[{"@type":"Question","name":"What is the XCSSET malware found in the universal_file_viewer Flutter package on pub.dev?","acceptedAnswer":{"@type":"Answer","text":"XCSSET is a macOS worm that was found injected into version 0.1.5 of the universal_file_viewer package on pub.dev, the first known compromised package on that registry. The infection lives only in the package's example/ directory, which ships in the tarball but is never compiled when the package is used as a normal pubspec.yaml dependency, so most consumers are unaffected. The risk applies to anyone who clones the repository and builds the example app locally, since infected build.gradle.kts, iOS pbxproj, and macOS pbxproj files each trigger a build hook contacting a Russian C2 domain. Track supply chain malware findings like this XCSSET pub.dev case through daily.dev before pulling example code from a repo."}},{"@type":"Question","name":"How does XCSSET spread between Android, Xcode, and git projects on an infected machine?","acceptedAnswer":{"@type":"Answer","text":"XCSSET uses three worm modules: android_finder injects a malicious preBuild hook into every Android Gradle project on the machine, replicator_finder injects a Run Script build phase into every Xcode project, and git_finder writes a malicious pre-commit hook into every .git repository, firing on every commit. Each module scans the home directory for matching build files and cleans up prior infections before re-injecting, so any developer who builds or commits to an infected project also gets infected. Developers auditing build pipelines for worm-style propagation can follow security writeups like this one on daily.dev."}},{"@type":"Question","name":"How does XCSSET achieve persistence that survives a macOS reboot?","acceptedAnswer":{"@type":"Answer","text":"The persist module downloads dockutil from its command-and-control server, ad-hoc signs it, and builds a fake app bundle whose Info.plist is patched with CFBundleDisplayName set to Launchpad and CFBundleIdentifier set to com.apple.launchpad.launcher. It then swaps the real Launchpad tile in the Dock for this fake bundle, so every time the user clicks Launchpad after a reboot, the malicious chain re-triggers while the real Launchpad still opens normally, leaving no trace in standard persistence locations. Stay ahead of stealthy macOS persistence techniques like this Launchpad hijack by following security research on daily.dev."}}]}
```

