Security Analysis: Unknown Risk Present - Critical Areas to Investigate (Inconclusive) #208
eyeofastarte
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
AffinityScripts/AffinityLinuxInstaller.py. Found no evidence ofa virus and no malicious handling of the sudo password.
risk is unverified remote code execution via downloaded dependencies.
extractions and many binary/source downloads.
ship malware that static review of this repo cannot detect.
What was checked and looks OK
sudo/gpgvia stdin (never argv, never
shell=True), and is not logged, written todisk, or sent over the network.
Critical areas to investigate (ranked by leverage)
Wine build tarballs — highest risk.
ElementalWarrior-wine-*.tar.xzandKron4ek/Wine-Buildsare downloaded andextracted with no hash check, then run for every launch. A trojaned
wine/ntdll.sowould be invisible and persistent.Refs:
AffinityLinuxInstaller.py:4790,:11644-11662, extraction:11709+.Compile-and-run remote C#.
AffinityPatcher.cs/ReturnColorsfetched from raw GitHub orgit clone,built with
dotnet, and the produced.dllexecuted. Whoever controls thosefiles gets code execution.
Refs:
:15499-15500,:15569,:15634,:15787-15828.Third-party shim DLL loaded into every Affinity process.
wintypes_shim.dll.sofrom an external repo, dropped into the prefix andforce-loaded. Ideal payload location.
Ref:
:10664.Live assets fetched from
main.Icons and
wine-dark-theme.regpulled fromraw.githubusercontent.com/.../main/.A single malicious commit would hit all users immediately; a
.regmergedinto Wine is a subtle foothold.
Refs:
:6381,:11570,:12555.The Affinity
.exe/ AppImage.Repackaged binaries where malware is trivial to bundle and hard to spot.
Refs:
:8712,:16173.Areas not yet reviewed (open)
AffinityScripts/*.sh(same download-and-run pattern).winetrickscloned from upstream then executed (:9526).extractallcalls (not all usefilter="data").How anyone can verify (reproduce this analysis)
grep -noE "https?://[^\"' ]+" AffinityScripts/AffinityLinuxInstaller.py | sort -ugrep -niE "sha256|sha512|md5|gpg --verify|signature|hashlib" AffinityScripts/AffinityLinuxInstaller.pygrep -c "extractall\|zf.extract\|zip_ref.extract" AffinityScripts/AffinityLinuxInstaller.pyensure_patcher_files(:15490)and
build_affinity_patcher(:15734).(
ss -tnp,tcpdump) and new files during the process.Recommended mitigations
from live
main/latest.main.Bottom line
No proof of a virus, but unknown risk remains because the program runs
unverified third-party code. Until the critical areas above are audited and
integrity checks are added, consider the security posture unresolved.
All reactions