Kullanıcıyı Gruptan Silme (Red Hat Enterprise Linux Server 5)

Microsoft.ACS.Linux.RHEL.5.Deleting.User.From.Group (Rule)

Gruptan kullanıcı silme olaylarını toplayan kural

Knowledge Base article:

Özet

Sistem günlük dosyalarında başarılı bir usermod komutu algılandı.

Nedenler

Sistemdeki bir gruptan bir kullanıcı silindi. Bu izleyici sistem yöneticilerinin hesap/kullanıcı oluşturma ve silme işlemlerini izleyebilmesini sağlar.

Çözümlemeler

Uyarının ve/veya çıktı verisi öğesinin açıklaması, karşılaşılan olayla ilgili bilgiler içerir. Aktivite şüpheli görünüyorsa, lütfen ilişkili olay ayrıntılarını ve bu olayın gerçekleştiği zaman olan diğer olayları kontrol edin.

Element properties:

TargetMicrosoft.ACS.Linux.RHEL.5.ACSEndPoint
CategoryEventCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Unix.SCXLog.Privileged.Datasource Default
WA WriteAction Microsoft.ACS.Unix.SecureEventLogWriter Default

Source Code:

<Rule ID="Microsoft.ACS.Linux.RHEL.5.Deleting.User.From.Group" Enabled="true" Target="Microsoft.ACS.Linux.RHEL.5.ACSEndPoint" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Privileged.Datasource">
<Host>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</Host>
<LogFile>/var/log/secure</LogFile>
<!-- [TYPE] Redhat5 UserDeleteFromGroup True -->
<!-- [INPUT] Oct 14 20:10:36 scxom64-rhel52-03 usermod[13154]: delete `tempuser' from group `tempgroup' -->
<!-- [EXPECTED] date="Oct 14 20:10:36"; hostname="scxom64-rhel52-03"; process="usermod"; processId="13154"; clientUser="tempuser"; groupName="tempgroup" -->
<RegExpFilter>\s+usermod\[[[:digit:]]+\]: delete `\S+' from group `\S+'</RegExpFilter>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="ACS.Unix!Microsoft.ACS.Unix.SecureEventLogWriter">
<RegExp>(?'date'\S+\s+\d+\s+\d+:\d+:\d+)\s+(?:\S+:)?(?'hostname'\S+)\s+(?'process'usermod)\[(?'processId'\d+)\]: delete `(?'clientUser'\S+)' from group `(?'groupName'\S+)'</RegExp>
<EventType>1</EventType>
<EventId>27005</EventId>
<BackrefOverrides>sessionName="User removed from group"</BackrefOverrides>
</WriteAction>
</WriteActions>
</Rule>