/usr/share/doc/samhain/manual.html/stealthmode.html is in samhain 3.1.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Additional Features — Stealth</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="The Samhain Host Integrity Monitoring System"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Additional Features — Signed Configuration/Database Files"
HREF="signed-files.html"><LINK
REL="NEXT"
TITLE="Packing the executable"
HREF="packing-the-executable.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="./docbook.css"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><!--#if expr="! ($HTTP_USER_AGENT = /MSIE/)"--><!--#include virtual="/resources/ssi/header.html"--><!--#endif --><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Samhain Host Integrity Monitoring System</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="signed-files.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="packing-the-executable.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="STEALTHMODE"
></A
>Chapter 9. Additional Features — Stealth</H1
><P
> If an intruder does not know that
<SPAN
CLASS="APPLICATION"
>samhain</SPAN
> is running, s/he will make
no attempt to subvert it. Hence, you may consider to
run <SPAN
CLASS="APPLICATION"
>samhain</SPAN
> in
stealth mode, using some of the options discussed in this section.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="HIDING-THE-EXECUTABLE"
>9.1. Hiding the executable</A
></H1
><P
> <SPAN
CLASS="APPLICATION"
>samhain</SPAN
> may be compiled with
support for a stealth mode of
operation, meaning that the program can be run without any
obvious trace of its presence on disk. The following
compile-time options
are provided:</P
><P
> <B
CLASS="COMMAND"
>--enable-stealth=<TT
CLASS="REPLACEABLE"
><I
>xor_val</I
></TT
></B
>
provides the following measures:</P
><P
><P
></P
><OL
TYPE="1"
><LI
><P
> All embedded strings are obfuscated by XORing them with some
value <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>xor_val</I
></SPAN
> chosen at compile time.
The allowed range
for <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>xor_val</I
></SPAN
> is 128 to 255.
</P
></LI
><LI
><P
> The messages in the log file are obfuscated by XORing them with
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>xor_val</I
></SPAN
>.
The built-in routine for validating the log file
(<B
CLASS="COMMAND"
>samhain -L /path/to/logfile</B
>)
will handle this transparently. You may specify as path an
already existing binary file (e.g. an executable, or a JPEG image),
to which the log will get appended.
</P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Tip</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> Use
<B
CLASS="COMMAND"
>samhain -jL /path/to/logfile</B
> if you just want
to view rather
than verify the logfile.
</P
></TD
></TR
></TABLE
></DIV
></LI
><LI
><P
> Strings in the database file are obfuscated by XORing them with
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>xor_val</I
></SPAN
>. You may append the database file to some
binary file (e.g. an executable, or a JPEG image), if you like.
</P
></LI
><LI
><P
> The configuration file must be steganographically hidden in a
postscript image file (the image data must be uncompressed).
To create such a file from an existing image, you may use
e.g. the program <B
CLASS="COMMAND"
>convert</B
>, which is part of the
<SPAN
CLASS="APPLICATION"
>ImageMagick</SPAN
> package, such as
<B
CLASS="COMMAND"
>convert +compress <TT
CLASS="REPLACEABLE"
><I
>ima.jpg ima.ps</I
></TT
></B
>.
</P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Tip</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> <B
CLASS="COMMAND"
>make install</B
> will do this automatically
before installation.
</P
></TD
></TR
></TABLE
></DIV
><P
> To hide/extract the configuration data within/from the
postscript file, a utility program <B
CLASS="COMMAND"
>samhain_stealth</B
> is
provided. Use it without options to get help.
</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Note</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> If <B
CLASS="COMMAND"
>--enable-stealth</B
> is used together with
<B
CLASS="COMMAND"
>--with-gpg</B
>, then the config file must be signed
before hiding it (rather than signing the PS image file afterwards).
</P
></TD
></TR
></TABLE
></DIV
></LI
></OL
></P
><P
> <B
CLASS="COMMAND"
>--enable-micro-stealth=<TT
CLASS="REPLACEABLE"
><I
>xor_val</I
></TT
></B
>
is like <B
CLASS="COMMAND"
>--enable-stealth</B
>,
but uses a 'normal'
configuration file (not hidden steganographically).</P
><P
> <B
CLASS="COMMAND"
>--enable-nocl[=ARG]</B
>
will disables command line parsing. The optional argument is a 'magic'
word that will enable reading command-line arguments from
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>stdin</I
></SPAN
>.
If the first command-line argument is not the 'magic' word, all command
line arguments will be ignored. This allows to start the program with
completely arbitrary command-line arguments. </P
><P
> <B
CLASS="COMMAND"
>--enable-install-name=<TT
CLASS="REPLACEABLE"
><I
>NAME</I
></TT
></B
>
will rename every installed file from <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>samhain</I
></SPAN
>
to <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>NAME</I
></SPAN
> when doing
a <B
CLASS="COMMAND"
>make install</B
>
(standalone/client installation), and likewise
rename installed files from <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>yule</I
></SPAN
> to
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>NAME</I
></SPAN
> when doing
a <B
CLASS="COMMAND"
>make install</B
> (server installation). Also,
the boot scripts
will be updated accordingly. Files created by
<SPAN
CLASS="APPLICATION"
>samhain</SPAN
> (e.g. the database)
will also have <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>samhain</I
></SPAN
> replaced by
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>NAME</I
></SPAN
> in
their filenames. </P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Tip</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> The man pages have far too much specific information enabling an
intruder to infer the presence of samhain. There is no point in changing
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>samhain</I
></SPAN
> to <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>NAME</I
></SPAN
> there — this
would rather help an intruder to find out
what <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>NAME</I
></SPAN
> is.
You probably want to avoid installing man8/samhain.8 and
man5/samhainrc.5. </P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="KHIDE"
>9.1.1. Using kernel modules to hide samhain (Linux/ix86 only)</A
></H2
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Does NOT work on recent kernels</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> This module will not work on Linux 2.6.35 - and probably also not on slightly
earlier version - because the system call table is now write protected.
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Important</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> These modules modify the running kernel. Please read this section
carefully (in particular the caveats noted at the end), and test the
modules before installing. Without proper testing it may happen
that you need
to reboot into single user mode to remove the modules and to
make your system useable again ...
</P
></TD
></TR
></TABLE
></DIV
><P
> If the configure option <B
CLASS="COMMAND"
>--enable-khide=SYSTEM_MAP</B
>
is used, two (pre-2.6 kernel) or one (2.6 kernel) loadable
kernel module(s) will be built. These are named
<TT
CLASS="FILENAME"
>samhain_hide.o / samhain_erase.o</TT
> (pre-2.6) or
<TT
CLASS="FILENAME"
>samhain_hide.ko</TT
> (2.6).</P
><P
> SYSTEM_MAP must be the path to the System.map file for your current kernel
(e.g. <TT
CLASS="FILENAME"
>/boot/System.map-rh-2.4.18-3</TT
>).
<TT
CLASS="FILENAME"
>samhain_hide.o</TT
> will hide every
file/directory/process with the
string NAME (from the configure option
<B
CLASS="COMMAND"
>--enable-install-name=NAME</B
>).
If the configure option <B
CLASS="COMMAND"
>--enable-install-name</B
>
is not used,
NAME is set to <SPAN
CLASS="APPLICATION"
>samhain</SPAN
>.
To hide the module itself, the second module
<TT
CLASS="FILENAME"
>samhain_erase.o</TT
> is
provided. Loading and immediately
thereafter unloading this module will hide any module with the string NAME
in its name.
<B
CLASS="COMMAND"
>make install</B
> will install the kernel
modules to the appropriate
place. They will be loaded when booting into runlevel 2, 3, 4, or 5.</P
><P
> With 2.6 kernels, only one kernel module
<TT
CLASS="FILENAME"
>samhain_hide.ko</TT
> will be build. This module is
self-hiding, i.e. the separate <TT
CLASS="FILENAME"
>samhain_erase</TT
>
module is not needed anymore. Otherwise it works as described above.
Self-hiding can be switched off by passing the option
'removeme=0' to the module:
<B
CLASS="COMMAND"
>insmod ./samhain_hide.ko removeme=0</B
></P
><P
> Building a linux kernel module requires a proper build environment.
You should have a link <TT
CLASS="FILENAME"
>/lib/modules/`uname -r`/build</TT
>
which points to a functional build environment. Usually, you need to
install the kernel sources for your kernel, and eventually (if
compiling the modules fails) you may need to
configure the kernel source for your kernel:
</P
><PRE
CLASS="SCREEN"
> <SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>cd /your/kernel/source/directory</KBD
>
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>make mrproper</KBD
>
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>make cloneconfig</KBD
>
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>make dep</KBD
> (obsolete for 2.6)
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>make modules</KBD
> (only for 2.6)
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>cd /lib/modules/`uname -r`</KBD
>
<SAMP
CLASS="PROMPT"
>sh$ </SAMP
><KBD
CLASS="USERINPUT"
>ln -s /your/kernel/source/directory build</KBD
>
</PRE
><DIV
CLASS="WARNING"
><P
></P
><TABLE
CLASS="WARNING"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Caveat no. 1</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> The hiding module will hide <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>any process or file</I
></SPAN
>
containing the name of the <SPAN
CLASS="APPLICATION"
>samhain</SPAN
> executable.
This implies that an intruder can hide herself if she can guess that name.
You are <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>strongly encouraged</I
></SPAN
> to use the
<B
CLASS="COMMAND"
>./configure</B
> option
<B
CLASS="COMMAND"
>--enable-install-name=NAME</B
> to change the executable name
to something really difficult to guess.
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="WARNING"
><P
></P
><TABLE
CLASS="WARNING"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Caveat no. 2</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> The modules are kernel-specific, and <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>must</I
></SPAN
> be recompiled
whenever the currently used kernel is recompiled or replaced by another one
(even if the kernel version is identical). Failure to do so might lead to
a kernel panic. The same is true if the <TT
CLASS="FILENAME"
>System.map</TT
>
that you have specified at build time is not the one
corresponding to your current kernel.
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="WARNING"
><P
></P
><TABLE
CLASS="WARNING"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Caveat no. 3</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> When the <TT
CLASS="FILENAME"
>samhain_hide</TT
> module is hidden,
the kernel doesn't know anymore about
its existence, thus it cannot be removed except by rebooting.
On pre-2.6 kernels, hiding the <TT
CLASS="FILENAME"
>samhain_hide.o</TT
> module
requires loading/unloading the <TT
CLASS="FILENAME"
>samhain_erase.o</TT
> module.
On 2.6 kernels, the <TT
CLASS="FILENAME"
>samhain_hide.ko</TT
> module will
automatically hide itself after loading, <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>except</I
></SPAN
>
if you pass the option
'removeme=0' to the module:
<B
CLASS="COMMAND"
>insmod ./samhain_hide.ko removeme=0</B
>
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="WARNING"
><P
></P
><TABLE
CLASS="WARNING"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/warning.gif"
HSPACE="5"
ALT="Warning"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Caveat no. 4 - Important Linux 2.6 issue</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> The stealth module builds fine on Linux 2.6 (if the build system is
properly configured — see above). It was tested on two systems:
2.6.5-7.104-smp (SuSE 9.1) and 2.6.6 (no SMP). It only worked on the
latter system, while the first one was rendered unuseable (ls and ps
didn't work anymore). Not sure about the reason.
</P
><P
> Because on 2.6 the module will by default automatically hide itself,
and cannot be removed then (except by rebooting),
you should <SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>test</I
></SPAN
> the
module with the
option 'removeme=0', like e.g.:
<B
CLASS="COMMAND"
>insmod ./samhain_hide.ko removeme=0</B
>
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Tip</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> Hidden files can still be accessed if their names
are known, thus using the option
<B
CLASS="COMMAND"
>--enable-install-name</B
>
to rename
installed files is recommended
for security (also see caveat no. 1 above).
</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.gif"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
>Tip</B
></TH
></TR
><TR
><TD
> </TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
> Using the modules at system boot may cause problems with
the GNOME (1.2) <B
CLASS="COMMAND"
>gdm</B
> display manager
(seen on SuSE 7.4 with the Ximian desktop; no problems observed with kdm).
In case of problems, you may need to reboot into single-user mode and edit
the boot init script ...
</P
></TD
></TR
></TABLE
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="signed-files.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="packing-the-executable.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Additional Features — Signed Configuration/Database Files</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
> </TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Packing the executable</TD
></TR
></TABLE
></DIV
><!--#if expr="! ($HTTP_USER_AGENT = /MSIE/)"--><!--#include virtual="/resources/ssi/footer.html"--><!--#endif --></BODY
></HTML
>
|