Adversaries with a sufficient level of access may create a local system or domain account. Such accounts may be used for persistence that do not require persistent remote access tools to be deployed on the system.The
net user
commands can be used to create a local or domain account.
useradd -M -N -r -s /bin/bash -c "#{comment}" #{username}
useradd -o -u 0 -g 0 -M -d /root -s /bin/bash #{username}
/var/log/secure with "useradd" and "userdel"
index=main source="/var/log/secure" eventtype=useradd | table user,host,src, UID, GID
index=linux source="/var/log/secure" eventtype=userdel delete| table user,host
Root Account Creation: index=linux source="/var/log/secure" eventtype=useradd UID=0 OR GID=0