Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
安全监控
|
107
非常简单:记录一切。等一下,我们不是知道记录
所有东西
有点难吗?好吧,也许事情没
那么简单。
实现合规可能是简单的,也可能是复杂的,但请记住,对于大多数控制来说,实现监控是
确保事情按照你所希望那样运行的好方法。
10.2
 用户
、
命令以及文件系统审计
auditd
是
Linux
审计系统
的用户空间接口,因为它是一个直接挂钩到
Linux
内核的组件,
所以它能够报告系统上发生的事件和操作。
Linux
审计系统是为安全用途而构建的,它与
其他子系统分离,因此即使在其他子系统无法工作(比如
syslog
)时,它也可以继续工作。
auditd
由于其高级别的可配置性,非常适合跟踪用户操作和其他事件。例如它可以报告以
下几种类型的事件。
•
所有
sudo
的执行、执行的命令以及由谁执行。
•
特定文件的访问或变更、什么时候以及由谁访问或变更。
•
用户身份验证的尝试和失败。
10.2.1
 配置并运行
auditd
现代
CentOS
和基于
Debian
的发行版通常已经运行了
auditd
。你可以在
/var/log/audit/audit.
log
中查看
auditd
正在记录的内容。默认情况下,
auditd
不会记录大量的日志(
sudo
、身份
验证尝试和其他一些事情)。你可以在
/etc/audit/rules.d/audit.rules
(
RedHat
)或
/etc/audit/
audit.rules
(
Debian
)中添加自己的自定义规则。例如,这里有一个规则,它将监控对
/etc/
myconfig.conf
的所有写访问:
-w /etc/myconfig.conf ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750