twpol.txt 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. ##############################################################################
  2. # ##
  3. ############################################################################## #
  4. # # #
  5. # This is the example Tripwire Policy file. It is intended as a place to # #
  6. # start creating your own custom Tripwire Policy file. Referring to it as # #
  7. # well as the Tripwire Policy Guide should give you enough information to # #
  8. # make a good custom Tripwire Policy file that better covers your # #
  9. # configuration and security needs. A text version of this policy file is # #
  10. # called twpol.txt. # #
  11. # # #
  12. # Note that this file is tuned to an 'everything' install of Red Hat Linux. # #
  13. # If run unmodified, this file should create no errors on database # #
  14. # creation, or violations on a subsiquent integrity check. However, it is # #
  15. # impossible for there to be one policy file for all machines, so this # #
  16. # existing one errs on the side of security. Your Linux configuration will # #
  17. # most likey differ from the one our policy file was tuned to, and will # #
  18. # therefore require some editing of the default Tripwire Policy file. # #
  19. # # #
  20. # The example policy file is best run with 'Loose Directory Checking' # #
  21. # enabled. Set LOOSEDIRECTORYCHECKING=TRUE in the Tripwire Configuration # #
  22. # file. # #
  23. # # #
  24. # Email support is not included and must be added to this file. # #
  25. # Add the 'emailto=' to the rule directive section of each rule (add a comma # #
  26. # after the 'severity=' line and add an 'emailto=' and include the email # #
  27. # addresses you want the violation reports to go to). Addresses are # #
  28. # semi-colon delimited. # #
  29. # ##
  30. ##############################################################################
  31. ##############################################################################
  32. # ##
  33. ############################################################################## #
  34. # # #
  35. # Global Variable Definitions # #
  36. # # #
  37. # These are defined at install time by the installation script. You may # #
  38. # Manually edit these if you are using this file directly and not from the # #
  39. # installation script itself. # #
  40. # ##
  41. ##############################################################################
  42. @@section GLOBAL
  43. TWROOT=/usr/sbin;
  44. TWBIN=/usr/sbin;
  45. TWPOL="/etc/tripwire";
  46. TWDB="/var/lib/tripwire";
  47. TWSKEY="/etc/tripwire";
  48. TWLKEY="/etc/tripwire";
  49. TWREPORT="/var/lib/tripwire/report";
  50. HOSTNAME=localhost;
  51. @@section FS
  52. SEC_CRIT = $(IgnoreNone)-SHa ; # Critical files that cannot change
  53. SEC_SUID = $(IgnoreNone)-SHa ; # Binaries with the SUID or SGID flags set
  54. SEC_BIN = $(ReadOnly) ; # Binaries that should not change
  55. SEC_CONFIG = $(Dynamic) ; # Config files that are changed infrequently but accessed often
  56. SEC_LOG = $(Growing) ; # Files that grow, but that should never change ownership
  57. SEC_INVARIANT = +tpug ; # Directories that should never change permission or ownership
  58. SIG_LOW = 33 ; # Non-critical files that are of minimal security impact
  59. SIG_MED = 66 ; # Non-critical files that are of significant security impact
  60. SIG_HI = 100 ; # Critical files that are significant points of vulnerability
  61. # Tripwire Binaries
  62. (
  63. rulename = "Tripwire Binaries",
  64. severity = $(SIG_HI)
  65. )
  66. {
  67. $(TWBIN)/siggen -> $(SEC_BIN) ;
  68. $(TWBIN)/tripwire -> $(SEC_BIN) ;
  69. $(TWBIN)/twadmin -> $(SEC_BIN) ;
  70. $(TWBIN)/twprint -> $(SEC_BIN) ;
  71. }
  72. # Tripwire Data Files - Configuration Files, Policy Files, Keys, Reports, Databases
  73. (
  74. rulename = "Tripwire Data Files",
  75. severity = $(SIG_HI)
  76. )
  77. {
  78. # NOTE: We remove the inode attribute because when Tripwire creates a backup,
  79. # it does so by renaming the old file and creating a new one (which will
  80. # have a new inode number). Inode is left turned on for keys, which shouldn't
  81. # ever change.
  82. # NOTE: The first integrity check triggers this rule and each integrity check
  83. # afterward triggers this rule until a database update is run, since the
  84. # database file does not exist before that point.
  85. $(TWDB) -> $(SEC_CONFIG) -i ;
  86. $(TWPOL)/tw.pol -> $(SEC_BIN) -i ;
  87. $(TWPOL)/tw.cfg -> $(SEC_BIN) -i ;
  88. $(TWLKEY)/$(HOSTNAME)-local.key -> $(SEC_BIN) ;
  89. $(TWSKEY)/site.key -> $(SEC_BIN) ;
  90. #don't scan the individual reports
  91. $(TWREPORT) -> $(SEC_CONFIG) (recurse=0) ;
  92. }
  93. # Tripwire HQ Connector Binaries
  94. #(
  95. # rulename = "Tripwire HQ Connector Binaries",
  96. # severity = $(SIG_HI)
  97. #)
  98. #{
  99. # $(TWBIN)/hqagent -> $(SEC_BIN) ;
  100. #}
  101. #
  102. # Tripwire HQ Connector - Configuration Files, Keys, and Logs
  103. ##############################################################################
  104. # ##
  105. ############################################################################## #
  106. # # #
  107. # Note: File locations here are different than in a stock HQ Connector # #
  108. # installation. This is because Tripwire 2.3 uses a different path # #
  109. # structure than Tripwire 2.2.1. # #
  110. # # #
  111. # You may need to update your HQ Agent configuation file (or this policy # #
  112. # file) to correct the paths. We have attempted to support the FHS standard # #
  113. # here by placing the HQ Agent files similarly to the way Tripwire 2.3 # #
  114. # places them. # #
  115. # ##
  116. ##############################################################################
  117. #(
  118. # rulename = "Tripwire HQ Connector Data Files",
  119. # severity = $(SIG_HI)
  120. #)
  121. #{
  122. # #############################################################################
  123. # ##############################################################################
  124. # # NOTE: Removing the inode attribute because when Tripwire creates a backup ##
  125. # # it does so by renaming the old file and creating a new one (which will ##
  126. # # have a new inode number). Leaving inode turned on for keys, which ##
  127. # # shouldn't ever change. ##
  128. # #############################################################################
  129. #
  130. # $(TWBIN)/agent.cfg -> $(SEC_BIN) -i ;
  131. # $(TWLKEY)/authentication.key -> $(SEC_BIN) ;
  132. # $(TWDB)/tasks.dat -> $(SEC_CONFIG) ;
  133. # $(TWDB)/schedule.dat -> $(SEC_CONFIG) ;
  134. #
  135. # # Uncomment if you have agent logging enabled.
  136. # #/var/log/tripwire/agent.log -> $(SEC_LOG) ;
  137. #}
  138. # Commonly accessed directories that should remain static with regards to owner and group
  139. (
  140. rulename = "Invariant Directories",
  141. severity = $(SIG_MED)
  142. )
  143. {
  144. / -> $(SEC_INVARIANT) (recurse = 0) ;
  145. /home -> $(SEC_INVARIANT) (recurse = 0) ;
  146. /etc -> $(SEC_INVARIANT) (recurse = 0) ;
  147. }
  148. ################################################
  149. # ##
  150. ################################################ #
  151. # # #
  152. # File System and Disk Administration Programs # #
  153. # ##
  154. ################################################
  155. (
  156. rulename = "File System and Disk Administraton Programs",
  157. severity = $(SIG_HI)
  158. )
  159. {
  160. /sbin/accton -> $(SEC_CRIT) ;
  161. /sbin/badblocks -> $(SEC_CRIT) ;
  162. /sbin/busybox -> $(SEC_CRIT) ;
  163. /sbin/busybox.anaconda -> $(SEC_CRIT) ;
  164. /sbin/convertquota -> $(SEC_CRIT) ;
  165. /sbin/dosfsck -> $(SEC_CRIT) ;
  166. /sbin/debugfs -> $(SEC_CRIT) ;
  167. /sbin/debugreiserfs -> $(SEC_CRIT) ;
  168. /sbin/dumpe2fs -> $(SEC_CRIT) ;
  169. /sbin/dump -> $(SEC_CRIT) ;
  170. /sbin/dump.static -> $(SEC_CRIT) ;
  171. # /sbin/e2fsadm -> $(SEC_CRIT) ; tune2fs?
  172. /sbin/e2fsck -> $(SEC_CRIT) ;
  173. /sbin/e2label -> $(SEC_CRIT) ;
  174. /sbin/fdisk -> $(SEC_CRIT) ;
  175. /sbin/fsck -> $(SEC_CRIT) ;
  176. /sbin/fsck.ext2 -> $(SEC_CRIT) ;
  177. /sbin/fsck.ext3 -> $(SEC_CRIT) ;
  178. /sbin/fsck.minix -> $(SEC_CRIT) ;
  179. /sbin/fsck.msdos -> $(SEC_CRIT) ;
  180. /sbin/fsck.vfat -> $(SEC_CRIT) ;
  181. /sbin/ftl_check -> $(SEC_CRIT) ;
  182. /sbin/ftl_format -> $(SEC_CRIT) ;
  183. /sbin/hdparm -> $(SEC_CRIT) ;
  184. #/sbin/lvchange -> $(SEC_CRIT) ;
  185. #/sbin/lvcreate -> $(SEC_CRIT) ;
  186. #/sbin/lvdisplay -> $(SEC_CRIT) ;
  187. #/sbin/lvextend -> $(SEC_CRIT) ;
  188. #/sbin/lvmchange -> $(SEC_CRIT) ;
  189. #/sbin/lvmcreate_initrd -> $(SEC_CRIT) ;
  190. #/sbin/lvmdiskscan -> $(SEC_CRIT) ;
  191. #/sbin/lvmsadc -> $(SEC_CRIT) ;
  192. #/sbin/lvmsar -> $(SEC_CRIT) ;
  193. #/sbin/lvreduce -> $(SEC_CRIT) ;
  194. #/sbin/lvremove -> $(SEC_CRIT) ;
  195. #/sbin/lvrename -> $(SEC_CRIT) ;
  196. #/sbin/lvscan -> $(SEC_CRIT) ;
  197. /sbin/mkbootdisk -> $(SEC_CRIT) ;
  198. /sbin/mkdosfs -> $(SEC_CRIT) ;
  199. /sbin/mke2fs -> $(SEC_CRIT) ;
  200. /sbin/mkfs -> $(SEC_CRIT) ;
  201. /sbin/mkfs.bfs -> $(SEC_CRIT) ;
  202. /sbin/mkfs.ext2 -> $(SEC_CRIT) ;
  203. /sbin/mkfs.minix -> $(SEC_CRIT) ;
  204. /sbin/mkfs.msdos -> $(SEC_CRIT) ;
  205. /sbin/mkfs.vfat -> $(SEC_CRIT) ;
  206. /sbin/mkinitrd -> $(SEC_CRIT) ;
  207. #/sbin/mkpv -> $(SEC_CRIT) ;
  208. /sbin/mkraid -> $(SEC_CRIT) ;
  209. /sbin/mkreiserfs -> $(SEC_CRIT) ;
  210. /sbin/mkswap -> $(SEC_CRIT) ;
  211. #/sbin/mtx -> $(SEC_CRIT) ;
  212. /sbin/pam_console_apply -> $(SEC_CRIT) ;
  213. /sbin/parted -> $(SEC_CRIT) ;
  214. /sbin/pcinitrd -> $(SEC_CRIT) ;
  215. #/sbin/pvchange -> $(SEC_CRIT) ;
  216. #/sbin/pvcreate -> $(SEC_CRIT) ;
  217. #/sbin/pvdata -> $(SEC_CRIT) ;
  218. #/sbin/pvdisplay -> $(SEC_CRIT) ;
  219. #/sbin/pvmove -> $(SEC_CRIT) ;
  220. #/sbin/pvscan -> $(SEC_CRIT) ;
  221. /sbin/quotacheck -> $(SEC_CRIT) ;
  222. /sbin/quotaon -> $(SEC_CRIT) ;
  223. /sbin/raidstart -> $(SEC_CRIT) ;
  224. /sbin/reiserfsck -> $(SEC_CRIT) ;
  225. /sbin/resize2fs -> $(SEC_CRIT) ;
  226. /sbin/resize_reiserfs -> $(SEC_CRIT) ;
  227. /sbin/restore -> $(SEC_CRIT) ;
  228. /sbin/restore.static -> $(SEC_CRIT) ;
  229. /sbin/scsi_info -> $(SEC_CRIT) ;
  230. /sbin/sfdisk -> $(SEC_CRIT) ;
  231. /sbin/stinit -> $(SEC_CRIT) ;
  232. #/sbin/tapeinfo -> $(SEC_CRIT) ;
  233. /sbin/tune2fs -> $(SEC_CRIT) ;
  234. /sbin/unpack -> $(SEC_CRIT) ;
  235. /sbin/update -> $(SEC_CRIT) ;
  236. #/sbin/vgcfgbackup -> $(SEC_CRIT) ;
  237. #/sbin/vgcfgrestore -> $(SEC_CRIT) ;
  238. #/sbin/vgchange -> $(SEC_CRIT) ;
  239. #/sbin/vgck -> $(SEC_CRIT) ;
  240. #/sbin/vgcreate -> $(SEC_CRIT) ;
  241. #/sbin/vgdisplay -> $(SEC_CRIT) ;
  242. #/sbin/vgexport -> $(SEC_CRIT) ;
  243. #/sbin/vgextend -> $(SEC_CRIT) ;
  244. #/sbin/vgimport -> $(SEC_CRIT) ;
  245. #/sbin/vgmerge -> $(SEC_CRIT) ;
  246. #/sbin/vgmknodes -> $(SEC_CRIT) ;
  247. #/sbin/vgreduce -> $(SEC_CRIT) ;
  248. #/sbin/vgremove -> $(SEC_CRIT) ;
  249. #/sbin/vgrename -> $(SEC_CRIT) ;
  250. #/sbin/vgscan -> $(SEC_CRIT) ;
  251. #/sbin/vgsplit -> $(SEC_CRIT) ;
  252. /bin/chgrp -> $(SEC_CRIT) ;
  253. /bin/chmod -> $(SEC_CRIT) ;
  254. /bin/chown -> $(SEC_CRIT) ;
  255. /bin/cp -> $(SEC_CRIT) ;
  256. /bin/cpio -> $(SEC_CRIT) ;
  257. /bin/mount -> $(SEC_CRIT) ;
  258. /bin/umount -> $(SEC_CRIT) ;
  259. /bin/mkdir -> $(SEC_CRIT) ;
  260. /bin/mknod -> $(SEC_CRIT) ;
  261. /bin/mktemp -> $(SEC_CRIT) ;
  262. /bin/rm -> $(SEC_CRIT) ;
  263. /bin/rmdir -> $(SEC_CRIT) ;
  264. /bin/touch -> $(SEC_CRIT) ;
  265. }
  266. ##################################
  267. # ##
  268. ################################## #
  269. # # #
  270. # Kernel Administration Programs # #
  271. # ##
  272. ##################################
  273. (
  274. rulename = "Kernel Administration Programs",
  275. severity = $(SIG_HI)
  276. )
  277. {
  278. /sbin/adjtimex -> $(SEC_CRIT) ;
  279. /sbin/ctrlaltdel -> $(SEC_CRIT) ;
  280. /sbin/depmod -> $(SEC_CRIT) ;
  281. /sbin/insmod -> $(SEC_CRIT) ;
  282. /sbin/insmod.static -> $(SEC_CRIT) ;
  283. /sbin/insmod_ksymoops_clean -> $(SEC_CRIT) ;
  284. /sbin/klogd -> $(SEC_CRIT) ;
  285. /sbin/ldconfig -> $(SEC_CRIT) ;
  286. /sbin/minilogd -> $(SEC_CRIT) ;
  287. /sbin/modinfo -> $(SEC_CRIT) ;
  288. #/sbin/nuactlun -> $(SEC_CRIT) ;
  289. #/sbin/nuscsitcpd -> $(SEC_CRIT) ;
  290. /sbin/pivot_root -> $(SEC_CRIT) ;
  291. /sbin/sndconfig -> $(SEC_CRIT) ;
  292. /sbin/sysctl -> $(SEC_CRIT) ;
  293. }
  294. #######################
  295. # ##
  296. ####################### #
  297. # # #
  298. # Networking Programs # #
  299. # ##
  300. #######################
  301. (
  302. rulename = "Networking Programs",
  303. severity = $(SIG_HI)
  304. )
  305. {
  306. /etc/sysconfig/network-scripts/ifdown -> $(SEC_CRIT) ;
  307. /etc/sysconfig/network-scripts/ifdown-cipcb -> $(SEC_CRIT) ;
  308. /etc/sysconfig/network-scripts/ifdown-ippp -> $(SEC_CRIT) ;
  309. /etc/sysconfig/network-scripts/ifdown-ipv6 -> $(SEC_CRIT) ;
  310. /etc/sysconfig/network-scripts/ifdown-isdn -> $(SEC_CRIT) ;
  311. /etc/sysconfig/network-scripts/ifdown-post -> $(SEC_CRIT) ;
  312. /etc/sysconfig/network-scripts/ifdown-ppp -> $(SEC_CRIT) ;
  313. /etc/sysconfig/network-scripts/ifdown-sit -> $(SEC_CRIT) ;
  314. /etc/sysconfig/network-scripts/ifdown-sl -> $(SEC_CRIT) ;
  315. /etc/sysconfig/network-scripts/ifup -> $(SEC_CRIT) ;
  316. /etc/sysconfig/network-scripts/ifup-aliases -> $(SEC_CRIT) ;
  317. /etc/sysconfig/network-scripts/ifup-cipcb -> $(SEC_CRIT) ;
  318. /etc/sysconfig/network-scripts/ifup-ippp -> $(SEC_CRIT) ;
  319. /etc/sysconfig/network-scripts/ifup-ipv6 -> $(SEC_CRIT) ;
  320. /etc/sysconfig/network-scripts/ifup-isdn -> $(SEC_CRIT) ;
  321. /etc/sysconfig/network-scripts/ifup-plip -> $(SEC_CRIT) ;
  322. /etc/sysconfig/network-scripts/ifup-plusb -> $(SEC_CRIT) ;
  323. /etc/sysconfig/network-scripts/ifup-post -> $(SEC_CRIT) ;
  324. /etc/sysconfig/network-scripts/ifup-ppp -> $(SEC_CRIT) ;
  325. /etc/sysconfig/network-scripts/ifup-routes -> $(SEC_CRIT) ;
  326. /etc/sysconfig/network-scripts/ifup-sit -> $(SEC_CRIT) ;
  327. /etc/sysconfig/network-scripts/ifup-sl -> $(SEC_CRIT) ;
  328. /etc/sysconfig/network-scripts/ifup-wireless -> $(SEC_CRIT) ;
  329. /etc/sysconfig/network-scripts/network-functions -> $(SEC_CRIT) ;
  330. /etc/sysconfig/network-scripts/network-functions-ipv6 -> $(SEC_CRIT) ;
  331. /bin/ping -> $(SEC_CRIT) ;
  332. /sbin/agetty -> $(SEC_CRIT) ;
  333. /sbin/arp -> $(SEC_CRIT) ;
  334. /sbin/arping -> $(SEC_CRIT) ;
  335. /sbin/dhcpcd -> $(SEC_CRIT) ;
  336. /sbin/ether-wake -> $(SEC_CRIT) ;
  337. #/sbin/getty -> $(SEC_CRIT) ;
  338. /sbin/ifcfg -> $(SEC_CRIT) ;
  339. /sbin/ifconfig -> $(SEC_CRIT) ;
  340. /sbin/ifdown -> $(SEC_CRIT) ;
  341. /sbin/ifenslave -> $(SEC_CRIT) ;
  342. /sbin/ifport -> $(SEC_CRIT) ;
  343. /sbin/ifup -> $(SEC_CRIT) ;
  344. /sbin/ifuser -> $(SEC_CRIT) ;
  345. /sbin/ip -> $(SEC_CRIT) ;
  346. /sbin/ip6tables -> $(SEC_CRIT) ;
  347. /sbin/ipchains -> $(SEC_CRIT) ;
  348. /sbin/ipchains-restore -> $(SEC_CRIT) ;
  349. /sbin/ipchains-save -> $(SEC_CRIT) ;
  350. /sbin/ipfwadm -> $(SEC_CRIT) ;
  351. /sbin/ipmaddr -> $(SEC_CRIT) ;
  352. /sbin/iptables -> $(SEC_CRIT) ;
  353. /sbin/iptables-restore -> $(SEC_CRIT) ;
  354. /sbin/iptables-save -> $(SEC_CRIT) ;
  355. /sbin/iptunnel -> $(SEC_CRIT) ;
  356. /sbin/ipvsadm -> $(SEC_CRIT) ;
  357. /sbin/ipvsadm-restore -> $(SEC_CRIT) ;
  358. /sbin/ipvsadm-save -> $(SEC_CRIT) ;
  359. /sbin/ipx_configure -> $(SEC_CRIT) ;
  360. /sbin/ipx_interface -> $(SEC_CRIT) ;
  361. /sbin/ipx_internal_net -> $(SEC_CRIT) ;
  362. /sbin/iwconfig -> $(SEC_CRIT) ;
  363. /sbin/iwgetid -> $(SEC_CRIT) ;
  364. /sbin/iwlist -> $(SEC_CRIT) ;
  365. /sbin/iwpriv -> $(SEC_CRIT) ;
  366. /sbin/iwspy -> $(SEC_CRIT) ;
  367. /sbin/mgetty -> $(SEC_CRIT) ;
  368. /sbin/mingetty -> $(SEC_CRIT) ;
  369. /sbin/nameif -> $(SEC_CRIT) ;
  370. /sbin/netreport -> $(SEC_CRIT) ;
  371. /sbin/plipconfig -> $(SEC_CRIT) ;
  372. /sbin/portmap -> $(SEC_CRIT) ;
  373. /sbin/ppp-watch -> $(SEC_CRIT) ;
  374. #/sbin/rarp -> $(SEC_CRIT) ;
  375. /sbin/route -> $(SEC_CRIT) ;
  376. /sbin/slattach -> $(SEC_CRIT) ;
  377. /sbin/tc -> $(SEC_CRIT) ;
  378. #/sbin/uugetty -> $(SEC_CRIT) ;
  379. /sbin/vgetty -> $(SEC_CRIT) ;
  380. /sbin/ypbind -> $(SEC_CRIT) ;
  381. }
  382. ##################################
  383. # ##
  384. ################################## #
  385. # # #
  386. # System Administration Programs # #
  387. # ##
  388. ##################################
  389. (
  390. rulename = "System Administration Programs",
  391. severity = $(SIG_HI)
  392. )
  393. {
  394. /sbin/chkconfig -> $(SEC_CRIT) ;
  395. /sbin/fuser -> $(SEC_CRIT) ;
  396. /sbin/halt -> $(SEC_CRIT) ;
  397. /sbin/init -> $(SEC_CRIT) ;
  398. /sbin/initlog -> $(SEC_CRIT) ;
  399. /sbin/install-info -> $(SEC_CRIT) ;
  400. /sbin/killall5 -> $(SEC_CRIT) ;
  401. #/sbin/linuxconf -> $(SEC_CRIT) ;
  402. #/sbin/linuxconf-auth -> $(SEC_CRIT) ;
  403. /sbin/pam_tally -> $(SEC_CRIT) ;
  404. /sbin/pwdb_chkpwd -> $(SEC_CRIT) ;
  405. #/sbin/remadmin -> $(SEC_CRIT) ;
  406. /sbin/rescuept -> $(SEC_CRIT) ;
  407. /sbin/rmt -> $(SEC_CRIT) ;
  408. /sbin/rpc.lockd -> $(SEC_CRIT) ;
  409. /sbin/rpc.statd -> $(SEC_CRIT) ;
  410. /sbin/rpcdebug -> $(SEC_CRIT) ;
  411. /sbin/service -> $(SEC_CRIT) ;
  412. /sbin/setsysfont -> $(SEC_CRIT) ;
  413. /sbin/shutdown -> $(SEC_CRIT) ;
  414. /sbin/sulogin -> $(SEC_CRIT) ;
  415. /sbin/swapon -> $(SEC_CRIT) ;
  416. /sbin/syslogd -> $(SEC_CRIT) ;
  417. /sbin/unix_chkpwd -> $(SEC_CRIT) ;
  418. /bin/pwd -> $(SEC_CRIT) ;
  419. /bin/uname -> $(SEC_CRIT) ;
  420. }
  421. ########################################
  422. # ##
  423. ######################################## #
  424. # # #
  425. # Hardware and Device Control Programs # #
  426. # ##
  427. ########################################
  428. (
  429. rulename = "Hardware and Device Control Programs",
  430. severity = $(SIG_HI)
  431. )
  432. {
  433. /bin/setserial -> $(SEC_CRIT) ;
  434. /bin/sfxload -> $(SEC_CRIT) ;
  435. /sbin/blockdev -> $(SEC_CRIT) ;
  436. /sbin/cardctl -> $(SEC_CRIT) ;
  437. /sbin/cardmgr -> $(SEC_CRIT) ;
  438. /sbin/cbq -> $(SEC_CRIT) ;
  439. /sbin/dump_cis -> $(SEC_CRIT) ;
  440. /sbin/elvtune -> $(SEC_CRIT) ;
  441. /sbin/hotplug -> $(SEC_CRIT) ;
  442. /sbin/hwclock -> $(SEC_CRIT) ;
  443. /sbin/ide_info -> $(SEC_CRIT) ;
  444. #/sbin/isapnp -> $(SEC_CRIT) ;
  445. #/sbin/kbdrate -> $(SEC_CRIT) ;
  446. /sbin/losetup -> $(SEC_CRIT) ;
  447. /sbin/lspci -> $(SEC_CRIT) ;
  448. /sbin/lspnp -> $(SEC_CRIT) ;
  449. /sbin/mii-tool -> $(SEC_CRIT) ;
  450. /sbin/pack_cis -> $(SEC_CRIT) ;
  451. #/sbin/pnpdump -> $(SEC_CRIT) ;
  452. /sbin/probe -> $(SEC_CRIT) ;
  453. #/sbin/pump -> $(SEC_CRIT) ;
  454. /sbin/setpci -> $(SEC_CRIT) ;
  455. /sbin/shapecfg -> $(SEC_CRIT) ;
  456. }
  457. ###############################
  458. # ##
  459. ############################### #
  460. # # #
  461. # System Information Programs # #
  462. # ##
  463. ###############################
  464. (
  465. rulename = "System Information Programs",
  466. severity = $(SIG_HI)
  467. )
  468. {
  469. /sbin/consoletype -> $(SEC_CRIT) ;
  470. /sbin/kernelversion -> $(SEC_CRIT) ;
  471. /sbin/runlevel -> $(SEC_CRIT) ;
  472. }
  473. ####################################
  474. # ##
  475. #################################### #
  476. # # #
  477. # Application Information Programs # #
  478. # ##
  479. ####################################
  480. (
  481. rulename = "Application Information Programs",
  482. severity = $(SIG_HI)
  483. )
  484. {
  485. /sbin/genksyms -> $(SEC_CRIT) ;
  486. #/sbin/genksyms.old -> $(SEC_CRIT) ;
  487. /sbin/rtmon -> $(SEC_CRIT) ;
  488. }
  489. ##########################
  490. # ##
  491. ########################## #
  492. # # #
  493. # Shell Related Programs # #
  494. # ##
  495. ##########################
  496. (
  497. rulename = "Shell Related Programs",
  498. severity = $(SIG_HI)
  499. )
  500. {
  501. /sbin/getkey -> $(SEC_CRIT) ;
  502. /sbin/nash -> $(SEC_CRIT) ;
  503. /sbin/sash -> $(SEC_CRIT) ;
  504. }
  505. ################
  506. # ##
  507. ################ #
  508. # # #
  509. # OS Utilities # #
  510. # ##
  511. ################
  512. (
  513. rulename = "Operating System Utilities",
  514. severity = $(SIG_HI)
  515. )
  516. {
  517. /bin/arch -> $(SEC_CRIT) ;
  518. /bin/ash -> $(SEC_CRIT) ;
  519. /bin/ash.static -> $(SEC_CRIT) ;
  520. /bin/aumix-minimal -> $(SEC_CRIT) ;
  521. /bin/basename -> $(SEC_CRIT) ;
  522. /bin/cat -> $(SEC_CRIT) ;
  523. #/bin/consolechars -> $(SEC_CRIT) ;
  524. /bin/cut -> $(SEC_CRIT) ;
  525. /bin/date -> $(SEC_CRIT) ;
  526. /bin/dd -> $(SEC_CRIT) ;
  527. /bin/df -> $(SEC_CRIT) ;
  528. /bin/dmesg -> $(SEC_CRIT) ;
  529. /bin/doexec -> $(SEC_CRIT) ;
  530. /bin/echo -> $(SEC_CRIT) ;
  531. /bin/ed -> $(SEC_CRIT) ;
  532. /bin/egrep -> $(SEC_CRIT) ;
  533. /bin/false -> $(SEC_CRIT) ;
  534. /bin/fgrep -> $(SEC_CRIT) ;
  535. /bin/gawk -> $(SEC_CRIT) ;
  536. /bin/gawk-3.1.0 -> $(SEC_CRIT) ;
  537. /bin/gettext -> $(SEC_CRIT) ;
  538. /bin/grep -> $(SEC_CRIT) ;
  539. /bin/gunzip -> $(SEC_CRIT) ;
  540. /bin/gzip -> $(SEC_CRIT) ;
  541. /bin/hostname -> $(SEC_CRIT) ;
  542. /bin/igawk -> $(SEC_CRIT) ;
  543. /bin/ipcalc -> $(SEC_CRIT) ;
  544. /bin/kill -> $(SEC_CRIT) ;
  545. /bin/ln -> $(SEC_CRIT) ;
  546. /bin/loadkeys -> $(SEC_CRIT) ;
  547. /bin/login -> $(SEC_CRIT) ;
  548. /bin/ls -> $(SEC_CRIT) ;
  549. /bin/mail -> $(SEC_CRIT) ;
  550. /bin/more -> $(SEC_CRIT) ;
  551. /bin/mt -> $(SEC_CRIT) ;
  552. /bin/mv -> $(SEC_CRIT) ;
  553. /bin/netstat -> $(SEC_CRIT) ;
  554. /bin/nice -> $(SEC_CRIT) ;
  555. /bin/pgawk -> $(SEC_CRIT) ;
  556. /bin/ps -> $(SEC_CRIT) ;
  557. /bin/rpm -> $(SEC_CRIT) ;
  558. /bin/sed -> $(SEC_CRIT) ;
  559. /bin/sleep -> $(SEC_CRIT) ;
  560. /bin/sort -> $(SEC_CRIT) ;
  561. /bin/stty -> $(SEC_CRIT) ;
  562. /bin/su -> $(SEC_CRIT) ;
  563. /bin/sync -> $(SEC_CRIT) ;
  564. /bin/tar -> $(SEC_CRIT) ;
  565. /bin/true -> $(SEC_CRIT) ;
  566. /bin/usleep -> $(SEC_CRIT) ;
  567. /bin/vi -> $(SEC_CRIT) ;
  568. /bin/zcat -> $(SEC_CRIT) ;
  569. /bin/zsh -> $(SEC_CRIT) ;
  570. /bin/zsh-4.0.2 -> $(SEC_CRIT) ;
  571. /sbin/sln -> $(SEC_CRIT) ;
  572. /usr/bin/vimtutor -> $(SEC_CRIT) ;
  573. }
  574. ##############################
  575. # ##
  576. ############################## #
  577. # # #
  578. # Critical Utility Sym-Links # #
  579. # ##
  580. ##############################
  581. (
  582. rulename = "Critical Utility Sym-Links",
  583. severity = $(SIG_HI)
  584. )
  585. {
  586. #/sbin/askrunlevel -> $(SEC_CRIT) ;
  587. /sbin/clock -> $(SEC_CRIT) ;
  588. #/sbin/fixperm -> $(SEC_CRIT) ;
  589. /sbin/fsck.reiserfs -> $(SEC_CRIT) ;
  590. #/sbin/fsconf -> $(SEC_CRIT) ;
  591. /sbin/ipfwadm-wrapper -> $(SEC_CRIT) ;
  592. /sbin/kallsyms -> $(SEC_CRIT) ;
  593. /sbin/ksyms -> $(SEC_CRIT) ;
  594. /sbin/lsmod -> $(SEC_CRIT) ;
  595. #/sbin/mailconf -> $(SEC_CRIT) ;
  596. /sbin/mkfs.reiserfs -> $(SEC_CRIT) ;
  597. #/sbin/modemconf -> $(SEC_CRIT) ;
  598. /sbin/modprobe -> $(SEC_CRIT) ;
  599. /sbin/mount.ncp -> $(SEC_CRIT) ;
  600. /sbin/mount.ncpfs -> $(SEC_CRIT) ;
  601. /sbin/mount.smb -> $(SEC_CRIT) ;
  602. /sbin/mount.smbfs -> $(SEC_CRIT) ;
  603. #/sbin/netconf -> $(SEC_CRIT) ;
  604. /sbin/pidof -> $(SEC_CRIT) ;
  605. /sbin/poweroff -> $(SEC_CRIT) ;
  606. /sbin/quotaoff -> $(SEC_CRIT) ;
  607. /sbin/raid0run -> $(SEC_CRIT) ;
  608. /sbin/raidhotadd -> $(SEC_CRIT) ;
  609. /sbin/raidhotgenerateerror -> $(SEC_CRIT) ;
  610. /sbin/raidhotremove -> $(SEC_CRIT) ;
  611. /sbin/raidstop -> $(SEC_CRIT) ;
  612. /sbin/rdump -> $(SEC_CRIT) ;
  613. /sbin/rdump.static -> $(SEC_CRIT) ;
  614. /sbin/reboot -> $(SEC_CRIT) ;
  615. /sbin/rmmod -> $(SEC_CRIT) ;
  616. /sbin/rrestore -> $(SEC_CRIT) ;
  617. /sbin/rrestore.static -> $(SEC_CRIT) ;
  618. /sbin/swapoff -> $(SEC_CRIT) ;
  619. /sbin/telinit -> $(SEC_CRIT) ;
  620. #/sbin/userconf -> $(SEC_CRIT) ;
  621. #/sbin/uucpconf -> $(SEC_CRIT) ;
  622. #/sbin/vregistry -> $(SEC_CRIT) ;
  623. /bin/awk -> $(SEC_CRIT) ;
  624. /bin/bash2 -> $(SEC_CRIT) ;
  625. /bin/bsh -> $(SEC_CRIT) ;
  626. /bin/csh -> $(SEC_CRIT) ;
  627. /bin/dnsdomainname -> $(SEC_CRIT) ;
  628. /bin/domainname -> $(SEC_CRIT) ;
  629. /bin/ex -> $(SEC_CRIT) ;
  630. /bin/gtar -> $(SEC_CRIT) ;
  631. /bin/nisdomainname -> $(SEC_CRIT) ;
  632. /bin/red -> $(SEC_CRIT) ;
  633. /bin/rvi -> $(SEC_CRIT) ;
  634. /bin/rview -> $(SEC_CRIT) ;
  635. /bin/view -> $(SEC_CRIT) ;
  636. /bin/ypdomainname -> $(SEC_CRIT) ;
  637. }
  638. #########################
  639. # ##
  640. ######################### #
  641. # # #
  642. # Temporary directories # #
  643. # ##
  644. #########################
  645. (
  646. rulename = "Temporary directories",
  647. recurse = false,
  648. severity = $(SIG_LOW)
  649. )
  650. {
  651. /usr/tmp -> $(SEC_INVARIANT) ;
  652. /var/tmp -> $(SEC_INVARIANT) ;
  653. /tmp -> $(SEC_INVARIANT) ;
  654. }
  655. ###############
  656. # ##
  657. ############### #
  658. # # #
  659. # Local files # #
  660. # ##
  661. ###############
  662. (
  663. rulename = "User binaries",
  664. severity = $(SIG_MED)
  665. )
  666. {
  667. /sbin -> $(SEC_BIN) (recurse = 1) ;
  668. /usr/bin -> $(SEC_BIN) (recurse = 1) ;
  669. /usr/sbin -> $(SEC_BIN) (recurse = 1) ;
  670. /usr/local/bin -> $(SEC_BIN) (recurse = 1) ;
  671. }
  672. (
  673. rulename = "Shell Binaries",
  674. severity = $(SIG_HI)
  675. )
  676. {
  677. /bin/bash -> $(SEC_BIN) ;
  678. /bin/ksh -> $(SEC_BIN) ;
  679. # /bin/psh -> $(SEC_BIN) ; # No longer used?
  680. # /bin/Rsh -> $(SEC_BIN) ; # No longer used?
  681. /bin/sh -> $(SEC_BIN) ;
  682. # /bin/shell -> $(SEC_SUID) ; # No longer used?
  683. # /bin/tsh -> $(SEC_BIN) ; # No longer used?
  684. /bin/tcsh -> $(SEC_BIN) ;
  685. /sbin/nologin -> $(SEC_BIN) ;
  686. }
  687. (
  688. rulename = "Security Control",
  689. severity = $(SIG_HI)
  690. )
  691. {
  692. /etc/group -> $(SEC_CRIT) ;
  693. /etc/security -> $(SEC_CRIT) ;
  694. #/var/spool/cron/crontabs -> $(SEC_CRIT) ; # Uncomment when this file exists
  695. }
  696. #(
  697. # rulename = "Boot Scripts",
  698. # severity = $(SIG_HI)
  699. #)
  700. #{
  701. # /etc/rc -> $(SEC_CONFIG) ;
  702. # /etc/rc.bsdnet -> $(SEC_CONFIG) ;
  703. # /etc/rc.dt -> $(SEC_CONFIG) ;
  704. # /etc/rc.net -> $(SEC_CONFIG) ;
  705. # /etc/rc.net.serial -> $(SEC_CONFIG) ;
  706. # /etc/rc.nfs -> $(SEC_CONFIG) ;
  707. # /etc/rc.powerfail -> $(SEC_CONFIG) ;
  708. # /etc/rc.tcpip -> $(SEC_CONFIG) ;
  709. # /etc/trcfmt.Z -> $(SEC_CONFIG) ;
  710. #}
  711. (
  712. rulename = "Login Scripts",
  713. severity = $(SIG_HI)
  714. )
  715. {
  716. /etc/bashrc -> $(SEC_CONFIG) ;
  717. /etc/csh.cshrc -> $(SEC_CONFIG) ;
  718. /etc/csh.login -> $(SEC_CONFIG) ;
  719. /etc/inputrc -> $(SEC_CONFIG) ;
  720. # /etc/tsh_profile -> $(SEC_CONFIG) ; #Uncomment when this file exists
  721. /etc/profile -> $(SEC_CONFIG) ;
  722. }
  723. # Libraries
  724. (
  725. rulename = "Libraries",
  726. severity = $(SIG_MED)
  727. )
  728. {
  729. /usr/lib -> $(SEC_BIN) ;
  730. /usr/local/lib -> $(SEC_BIN) ;
  731. }
  732. ######################################################
  733. # ##
  734. ###################################################### #
  735. # # #
  736. # Critical System Boot Files # #
  737. # These files are critical to a correct system boot. # #
  738. # ##
  739. ######################################################
  740. (
  741. rulename = "Critical system boot files",
  742. severity = $(SIG_HI)
  743. )
  744. {
  745. /boot -> $(SEC_CRIT) ;
  746. #/sbin/devfsd -> $(SEC_CRIT) ;
  747. /sbin/grub -> $(SEC_CRIT) ;
  748. /sbin/grub-install -> $(SEC_CRIT) ;
  749. /sbin/grub-md5-crypt -> $(SEC_CRIT) ;
  750. /sbin/installkernel -> $(SEC_CRIT) ;
  751. /sbin/lilo -> $(SEC_CRIT) ;
  752. /sbin/mkkerneldoth -> $(SEC_CRIT) ;
  753. !/boot/System.map ;
  754. !/boot/module-info ;
  755. /usr/share/grub/i386-redhat/e2fs_stage1_5 -> $(SEC_CRIT) ;
  756. /usr/share/grub/i386-redhat/fat_stage1_5 -> $(SEC_CRIT) ;
  757. /usr/share/grub/i386-redhat/ffs_stage1_5 -> $(SEC_CRIT) ;
  758. /usr/share/grub/i386-redhat/minix_stage1_5 -> $(SEC_CRIT) ;
  759. /usr/share/grub/i386-redhat/reiserfs_stage1_5 -> $(SEC_CRIT) ;
  760. /usr/share/grub/i386-redhat/stage1 -> $(SEC_CRIT) ;
  761. /usr/share/grub/i386-redhat/stage2 -> $(SEC_CRIT) ;
  762. /usr/share/grub/i386-redhat/vstafs_stage1_5 -> $(SEC_CRIT) ;
  763. # other boot files may exist. Look for:
  764. #/ufsboot -> $(SEC_CRIT) ;
  765. }
  766. ##################################################
  767. ###################################################
  768. # These files change every time the system boots ##
  769. ##################################################
  770. (
  771. rulename = "System boot changes",
  772. severity = $(SIG_HI)
  773. )
  774. {
  775. !/var/run/ftp.pids-all ; # Comes and goes on reboot.
  776. !/root/.enlightenment ;
  777. /dev/log -> $(SEC_CONFIG) ;
  778. /dev/cua0 -> $(SEC_CONFIG) ;
  779. # /dev/printer -> $(SEC_CONFIG) ; # Uncomment if you have a printer device
  780. /dev/console -> $(SEC_CONFIG) -u ; # User ID may change on console login/logout.
  781. /dev/tty1 -> $(SEC_CONFIG) ; # tty devices
  782. /dev/tty2 -> $(SEC_CONFIG) ; # tty devices
  783. /dev/tty3 -> $(SEC_CONFIG) ; # are extremely
  784. /dev/tty4 -> $(SEC_CONFIG) ; # variable
  785. /dev/tty5 -> $(SEC_CONFIG) ;
  786. /dev/tty6 -> $(SEC_CONFIG) ;
  787. /dev/urandom -> $(SEC_CONFIG) ;
  788. /dev/initctl -> $(SEC_CONFIG) ;
  789. /var/lock/subsys -> $(SEC_CONFIG) ;
  790. /var/lock/subsys/amd -> $(SEC_CONFIG) ;
  791. /var/lock/subsys/anacron -> $(SEC_CONFIG) ;
  792. /var/lock/subsys/apmd -> $(SEC_CONFIG) ;
  793. /var/lock/subsys/arpwatch -> $(SEC_CONFIG) ;
  794. /var/lock/subsys/atd -> $(SEC_CONFIG) ;
  795. /var/lock/subsys/autofs -> $(SEC_CONFIG) ;
  796. /var/lock/subsys/bcm5820 -> $(SEC_CONFIG) ;
  797. /var/lock/subsys/bgpd -> $(SEC_CONFIG) ;
  798. /var/lock/subsys/bootparamd -> $(SEC_CONFIG) ;
  799. /var/lock/subsys/canna -> $(SEC_CONFIG) ;
  800. /var/lock/subsys/crond -> $(SEC_CONFIG) ;
  801. /var/lock/subsys/cWnn -> $(SEC_CONFIG) ;
  802. /var/lock/subsys/dhcpd -> $(SEC_CONFIG) ;
  803. /var/lock/subsys/firewall -> $(SEC_CONFIG) ;
  804. /var/lock/subsys/freeWnn -> $(SEC_CONFIG) ;
  805. /var/lock/subsys/gated -> $(SEC_CONFIG) ;
  806. /var/lock/subsys/gpm -> $(SEC_CONFIG) ;
  807. /var/lock/subsys/httpd -> $(SEC_CONFIG) ;
  808. /var/lock/subsys/identd -> $(SEC_CONFIG) ;
  809. /var/lock/subsys/innd -> $(SEC_CONFIG) ;
  810. /var/lock/subsys/ipchains -> $(SEC_CONFIG) ;
  811. /var/lock/subsys/iptables -> $(SEC_CONFIG) ;
  812. /var/lock/subsys/ipvsadm -> $(SEC_CONFIG) ;
  813. /var/lock/subsys/irda -> $(SEC_CONFIG) ;
  814. /var/lock/subsys/iscsi -> $(SEC_CONFIG) ;
  815. /var/lock/subsys/isdn -> $(SEC_CONFIG) ;
  816. /var/lock/subsys/junkbuster -> $(SEC_CONFIG) ;
  817. /var/lock/subsys/kadmin -> $(SEC_CONFIG) ;
  818. /var/lock/subsys/keytable -> $(SEC_CONFIG) ;
  819. /var/lock/subsys/kprop -> $(SEC_CONFIG) ;
  820. /var/lock/subsys/krb524 -> $(SEC_CONFIG) ;
  821. /var/lock/subsys/krb5kdc -> $(SEC_CONFIG) ;
  822. /var/lock/subsys/kudzu -> $(SEC_CONFIG) ;
  823. /var/lock/subsys/kWnn -> $(SEC_CONFIG) ;
  824. /var/lock/subsys/ldap -> $(SEC_CONFIG) ;
  825. /var/lock/subsys/linuxconf -> $(SEC_CONFIG) ;
  826. /var/lock/subsys/lpd -> $(SEC_CONFIG) ;
  827. /var/lock/subsys/mars_nwe -> $(SEC_CONFIG) ;
  828. /var/lock/subsys/mcserv -> $(SEC_CONFIG) ;
  829. /var/lock/subsys/mysqld -> $(SEC_CONFIG) ;
  830. /var/lock/subsys/named -> $(SEC_CONFIG) ;
  831. /var/lock/subsys/netfs -> $(SEC_CONFIG) ;
  832. /var/lock/subsys/network -> $(SEC_CONFIG) ;
  833. /var/lock/subsys/nfs -> $(SEC_CONFIG) ;
  834. /var/lock/subsys/nfslock -> $(SEC_CONFIG) ;
  835. /var/lock/subsys/nscd -> $(SEC_CONFIG) ;
  836. /var/lock/subsys/ntpd -> $(SEC_CONFIG) ;
  837. /var/lock/subsys/ospf6d -> $(SEC_CONFIG) ;
  838. /var/lock/subsys/ospfd -> $(SEC_CONFIG) ;
  839. /var/lock/subsys/pcmcia -> $(SEC_CONFIG) ;
  840. /var/lock/subsys/portmap -> $(SEC_CONFIG) ;
  841. /var/lock/subsys/postgresql -> $(SEC_CONFIG) ;
  842. /var/lock/subsys/pxe -> $(SEC_CONFIG) ;
  843. /var/lock/subsys/radvd -> $(SEC_CONFIG) ;
  844. /var/lock/subsys/random -> $(SEC_CONFIG) ;
  845. /var/lock/subsys/rarpd -> $(SEC_CONFIG) ;
  846. /var/lock/subsys/reconfig -> $(SEC_CONFIG) ;
  847. /var/lock/subsys/rhnsd -> $(SEC_CONFIG) ;
  848. /var/lock/subsys/ripd -> $(SEC_CONFIG) ;
  849. /var/lock/subsys/ripngd -> $(SEC_CONFIG) ;
  850. /var/lock/subsys/routed -> $(SEC_CONFIG) ;
  851. /var/lock/subsys/rstatd -> $(SEC_CONFIG) ;
  852. /var/lock/subsys/rusersd -> $(SEC_CONFIG) ;
  853. /var/lock/subsys/rwalld -> $(SEC_CONFIG) ;
  854. /var/lock/subsys/rwhod -> $(SEC_CONFIG) ;
  855. /var/lock/subsys/sendmail -> $(SEC_CONFIG) ;
  856. /var/lock/subsys/smb -> $(SEC_CONFIG) ;
  857. /var/lock/subsys/snmpd -> $(SEC_CONFIG) ;
  858. /var/lock/subsys/squid -> $(SEC_CONFIG) ;
  859. /var/lock/subsys/sshd -> $(SEC_CONFIG) ;
  860. /var/lock/subsys/syslog -> $(SEC_CONFIG) ;
  861. /var/lock/subsys/tux -> $(SEC_CONFIG) ;
  862. /var/lock/subsys/tWnn -> $(SEC_CONFIG) ;
  863. /var/lock/subsys/ups -> $(SEC_CONFIG) ;
  864. /var/lock/subsys/vncserver -> $(SEC_CONFIG) ;
  865. /var/lock/subsys/wine -> $(SEC_CONFIG) ;
  866. /var/lock/subsys/xfs -> $(SEC_CONFIG) ;
  867. /var/lock/subsys/xinetd -> $(SEC_CONFIG) ;
  868. /var/lock/subsys/ypbind -> $(SEC_CONFIG) ;
  869. /var/lock/subsys/yppasswdd -> $(SEC_CONFIG) ;
  870. /var/lock/subsys/ypserv -> $(SEC_CONFIG) ;
  871. /var/lock/subsys/ypxfrd -> $(SEC_CONFIG) ;
  872. /var/lock/subsys/zebra -> $(SEC_CONFIG) ;
  873. /var/run -> $(SEC_CONFIG) ;
  874. /var/log -> $(SEC_CONFIG) ;
  875. /etc/ioctl.save -> $(SEC_CONFIG) ;
  876. /etc/issue.net -> $(SEC_CONFIG) -i ; # Inode number changes
  877. /etc/issue -> $(SEC_CONFIG) ;
  878. /etc/mtab -> $(SEC_CONFIG) -i ; # Inode number changes on any mount/unmount
  879. /lib/modules -> $(SEC_CONFIG) ;
  880. /etc/.pwd.lock -> $(SEC_CONFIG) ;
  881. # /lib/modules/preferred -> $(SEC_CONFIG) ; #Uncomment when this file exists
  882. }
  883. # These files change the behavior of the root account
  884. (
  885. rulename = "Root config files",
  886. severity = 100
  887. )
  888. {
  889. /root -> $(SEC_CRIT) ; # Catch all additions to /root
  890. /root/.Xresources -> $(SEC_CONFIG) ;
  891. /root/.bashrc -> $(SEC_CONFIG) ;
  892. /root/.bash_profile -> $(SEC_CONFIG) ;
  893. /root/.bash_logout -> $(SEC_CONFIG) ;
  894. /root/.cshrc -> $(SEC_CONFIG) ;
  895. /root/.tcshrc -> $(SEC_CONFIG) ;
  896. #/root/Mail -> $(SEC_CONFIG) ;
  897. #/root/mail -> $(SEC_CONFIG) ;
  898. #/root/.amandahosts -> $(SEC_CONFIG) ;
  899. #/root/.addressbook.lu -> $(SEC_CONFIG) ;
  900. #/root/.addressbook -> $(SEC_CONFIG) ;
  901. /root/.bash_history -> $(SEC_CONFIG) ;
  902. #/root/.elm -> $(SEC_CONFIG) ;
  903. /root/.esd_auth -> $(SEC_CONFIG) ;
  904. /root/.gnome_private -> $(SEC_CONFIG) ;
  905. /root/.gnome-desktop -> $(SEC_CONFIG) ;
  906. /root/.gnome -> $(SEC_CONFIG) ;
  907. /root/.ICEauthority -> $(SEC_CONFIG) ;
  908. #/root/.mc -> $(SEC_CONFIG) ;
  909. #/root/.pinerc -> $(SEC_CONFIG) ;
  910. #/root/.sawfish -> $(SEC_CONFIG) ;
  911. /root/.Xauthority -> $(SEC_CONFIG) -i ; # Changes Inode number on login
  912. #/root/.xauth -> $(SEC_CONFIG) ;
  913. #/root/.xsession-errors -> $(SEC_CONFIG) ;
  914. }
  915. ################################
  916. # ##
  917. ################################ #
  918. # # #
  919. # Critical configuration files # #
  920. # ##
  921. ################################
  922. (
  923. rulename = "Critical configuration files",
  924. severity = $(SIG_HI)
  925. )
  926. {
  927. #/etc/conf.linuxconf -> $(SEC_BIN) ;
  928. /etc/crontab -> $(SEC_BIN) ;
  929. /etc/cron.hourly -> $(SEC_BIN) ;
  930. /etc/cron.daily -> $(SEC_BIN) ;
  931. /etc/cron.weekly -> $(SEC_BIN) ;
  932. /etc/cron.monthly -> $(SEC_BIN) ;
  933. /etc/default -> $(SEC_BIN) ;
  934. /etc/fstab -> $(SEC_BIN) ;
  935. /etc/exports -> $(SEC_BIN) ;
  936. /etc/group- -> $(SEC_BIN) ; # changes should be infrequent
  937. /etc/host.conf -> $(SEC_BIN) ;
  938. /etc/hosts.allow -> $(SEC_BIN) ;
  939. /etc/hosts.deny -> $(SEC_BIN) ;
  940. /etc/httpd/conf -> $(SEC_BIN) ; # changes should be infrequent
  941. /etc/protocols -> $(SEC_BIN) ;
  942. /etc/services -> $(SEC_BIN) ;
  943. /etc/rc.d/init.d -> $(SEC_BIN) ;
  944. /etc/rc.d -> $(SEC_BIN) ;
  945. /etc/mail.rc -> $(SEC_BIN) ;
  946. /etc/modules.conf -> $(SEC_BIN) ;
  947. /etc/motd -> $(SEC_BIN) ;
  948. /etc/named.conf -> $(SEC_BIN) ;
  949. /etc/passwd -> $(SEC_CONFIG) ;
  950. /etc/passwd- -> $(SEC_CONFIG) ;
  951. /etc/profile.d -> $(SEC_BIN) ;
  952. /var/lib/nfs/rmtab -> $(SEC_BIN) ;
  953. /usr/sbin/fixrmtab -> $(SEC_BIN) ;
  954. /etc/rpc -> $(SEC_BIN) ;
  955. /etc/sysconfig -> $(SEC_BIN) ;
  956. /etc/samba/smb.conf -> $(SEC_CONFIG) ;
  957. #/etc/gettydefs -> $(SEC_BIN) ;
  958. /etc/nsswitch.conf -> $(SEC_BIN) ;
  959. /etc/yp.conf -> $(SEC_BIN) ;
  960. /etc/hosts -> $(SEC_CONFIG) ;
  961. /etc/xinetd.conf -> $(SEC_CONFIG) ;
  962. /etc/inittab -> $(SEC_CONFIG) ;
  963. /etc/resolv.conf -> $(SEC_CONFIG) ;
  964. /etc/syslog.conf -> $(SEC_CONFIG) ;
  965. }
  966. ####################
  967. # ##
  968. #################### #
  969. # # #
  970. # Critical devices # #
  971. # ##
  972. ####################
  973. (
  974. rulename = "Critical devices",
  975. severity = $(SIG_HI),
  976. recurse = false
  977. )
  978. {
  979. /dev/kmem -> $(Device) ;
  980. /dev/mem -> $(Device) ;
  981. /dev/null -> $(Device) ;
  982. /dev/zero -> $(Device) ;
  983. /proc/devices -> $(Device) ;
  984. /proc/net -> $(Device) ;
  985. /proc/sys -> $(Device) ;
  986. /proc/cpuinfo -> $(Device) ;
  987. /proc/modules -> $(Device) ;
  988. /proc/mounts -> $(Device) ;
  989. /proc/dma -> $(Device) ;
  990. /proc/filesystems -> $(Device) ;
  991. /proc/pci -> $(Device) ;
  992. /proc/interrupts -> $(Device) ;
  993. /proc/driver/rtc -> $(Device) ;
  994. /proc/ioports -> $(Device) ;
  995. /proc/scsi -> $(Device) ;
  996. /proc/kcore -> $(Device) ;
  997. /proc/self -> $(Device) ;
  998. /proc/kmsg -> $(Device) ;
  999. /proc/stat -> $(Device) ;
  1000. /proc/ksyms -> $(Device) ;
  1001. /proc/loadavg -> $(Device) ;
  1002. /proc/uptime -> $(Device) ;
  1003. /proc/locks -> $(Device) ;
  1004. /proc/version -> $(Device) ;
  1005. /proc/mdstat -> $(Device) ;
  1006. /proc/meminfo -> $(Device) ;
  1007. /proc/cmdline -> $(Device) ;
  1008. /proc/misc -> $(Device) ;
  1009. }
  1010. # Rest of critical system binaries
  1011. (
  1012. rulename = "OS executables and libraries",
  1013. severity = $(SIG_HI)
  1014. )
  1015. {
  1016. /bin -> $(SEC_BIN) ;
  1017. /lib -> $(SEC_BIN) ;
  1018. }
  1019. #=============================================================================
  1020. #
  1021. # Copyright 2000 Tripwire, Inc. Tripwire is a registered trademark of Tripwire,
  1022. # Inc. in the United States and other countries. All rights reserved.
  1023. #
  1024. # Linux is a registered trademark of Linus Torvalds.
  1025. #
  1026. # UNIX is a registered trademark of The Open Group.
  1027. #
  1028. #=============================================================================
  1029. #
  1030. # Permission is granted to make and distribute verbatim copies of this document
  1031. # provided the copyright notice and this permission notice are preserved on all
  1032. # copies.
  1033. #
  1034. # Permission is granted to copy and distribute modified versions of this
  1035. # document under the conditions for verbatim copying, provided that the entire
  1036. # resulting derived work is distributed under the terms of a permission notice
  1037. # identical to this one.
  1038. #
  1039. # Permission is granted to copy and distribute translations of this document
  1040. # into another language, under the above conditions for modified versions,
  1041. # except that this permission notice may be stated in a translation approved by
  1042. # Tripwire, Inc.
  1043. #
  1044. # DCM