Skip to contentSkip to conversation

2nd Round AuditRules Questions

DISCUSSION Steve Grubb 1 participant 1 message Jan 20, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 4 lines · EST Joe Wulf

1. The rules for monitoring '/etc/passwd', '/etc/shadow', '/etc/group', '/etc/gshadow' exist. Shouldn't corresponding rules also exist for the same four files which also have a dash/hyphen appended to them (i.e. '/etc/passwd-', etc...)?

You can add them if you want to. But I'm not planning to add them to the audit repo. There are requirements around monitoring changes of security attributes. This is covered by auditing events hardwired in the utilities that update them such as shadow utils. However, an admin could also use vi or nano to directly edit the files. That is all the watch is for. The files with the '-' are not used for authentication or setting up any user subject binding.

Quoted 2 lines

2. By adding 'audit=1' to grub kernel boot param's---can I then safely eliminate this piece from all audit rules: '-F auid!=4294967295'?

It depends on your intent. But this has nothing to do with audit=1.

Quoted 1 line

Conversely, what harm would it do to 'just leave it'?

Your logs will be flooded by daemon activity instead of things that people do.

Quoted 2 lines

It would, in some cases, satisfy certain vulnerability scanning tools seeking exact syntax compliance, right?

I have no idea about what anyone would be compliant to. So, its hard to make a blanket statement. If you need to audit daemon activity and users, then yes you would want to remove the '-F auid!=4294967295'. But your logs will fill up much quicker.

-Steve

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit