Suspicious 80% linux Download

marker-recovery.sh

Chrome cache data exfiltration

Shell command-substitution syntaxGrep extracts matching substrings only
SHA-2561e6e49527e64596dcedf135a57bc3e082624e3d9f999cbed2f305544831958a1

Evidence

Grep extracts matching substrings only line 1
1d="$HOME/Library/Caches/Google/Chrome/Default/Cache/Cache_Data"; m='AABB''CCDDEEFF'; f=$(find "$d" -maxdepth 1 -type f -exec grep -aFl "$m" {} + | while IFS= read -r x; do [ "$(LC_ALL=C grep -aobF "$m" "$x" | sed -n '2p')" ] && { printf '%s\n' "$x"; break; }; done); [ -n "$f" ] || { echo 'marker pair not found' >&2; exit 1; }; set -- $(LC_ALL=C grep -aobF "$m" "$f" | sed -n '1,2{s/:.*//p;}'); start=$(($1+${#m})); count=$(($2-start)); [ "$count" -ge 0 ] && [ "$count" -le 4096 ] || { echo 'invalid marker range' >&2; exit 1; }; dd if="$f" bs=1 skip="$start" count="$count" status=none && printf '\n'

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.