@ornikar/react-native-svg-transformer@1.0.10
Malicious code in @ornikar/react-native-svg-transformer (npm)
Analysis
@ornikar/react-native-svg-transformer@1.0.10 is a trojanized clone of the legitimate react-native-svg-transformer package. It preserves the real package's code as cover but adds a preinstall hook (setup.mjs) that downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun/releases/download/bun-v1.3.13/ and executes a 727KB heavily-obfuscated payload file (math_init.js) through it. The payload contains eval, Function constructor, and child_process calls with a custom string decoder, making its full behaviour opaque without runtime analysis. The package has no repository and no documented purpose for downloading and executing a separate runtime at install time.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:16 AM
- analyzed
- Aug 4, 2026, 11:23 AM
Related advisories
- @ornikar/prismic-components@0.0.8
- @ornikar/rollup-plugin-postcss@2.0.10
- @ornikar/browserslist-config@8.0.8
- @ornikar/postcss-config@9.1.7
- @ornikar/jest-config-react-native-web@12.0.8
- @ornikar/lerna-config@11.0.6
- @ornikar/renovate-config@9.0.8
- @ornikar/react-modern-calendar-datepicker@3.2.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.