Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. 2009-02-06 Alban Deniz <adeniz@skidmark.localdomain>
  2. * SNFMulti/SNFMulti.cpp: Replaced with file from Pete, Jan 29,
  3. 2009.
  4. * DEVELOPER_NOTES: Update list of required software (curl replaces
  5. gzip and wget).
  6. * configure.ac: Removed check for wget and gzip, added check for
  7. curl.
  8. * cleanForDist: Added script to clean developer distribution.
  9. * Scripts/getRulebase.in: Modified to use curl instead of wget and
  10. gzip.
  11. 2009-01-27 Alban Deniz <adeniz@skidmark.localdomain>
  12. * DEVELOPER_NOTES: Renamed user tarball name from SNFServer to
  13. snf-server.
  14. * configure.ac: Changed docs to Docs.
  15. * Makefile.am (SUBDIRS): Changed docs to Docs.
  16. * DEVELOPER_NOTES: Updated to include prerequisites for building,
  17. and other new features (OTL #19).
  18. 2008-12-18 Alban Deniz <adeniz@skidmark.localdomain>
  19. * Scripts/Makefile.am: Install snfServer in final destination.
  20. 2008-12-17 Alban Deniz <adeniz@skidmark.localdomain>
  21. * Scripts/Makefile.am (snfServerControl.sample): Replace
  22. configuration file path and name
  23. @sysconfdir@/@PACKAGE_NAME@/@PACKAGE_NAME@.xml.
  24. 2008-12-16 Alban Deniz <adeniz@skidmark.localdomain>
  25. * INSTALL: Added instructions for integration with sendmail.
  26. * Scripts/Makefile.am: Added snfSnifferFilter script.
  27. 2008-12-09 Alban Deniz <adeniz@skidmark.localdomain>
  28. * Scripts/snfSniffer.in: Generate additional temporary filenames
  29. by adding a suffix to MSGFILE rather than a prefix.
  30. * SNFServer/main.cpp: Made VERSION_INFO const char *.
  31. * SNFClient/main.cpp: Made VERSION_INFO const char *.
  32. * SNFMulti/SNFMulti.cpp (enum PatternResultTypes): Remove
  33. 'typedef'.
  34. (snf_EngineHandler::scanMessageFile): Make XHDRInjState const char *.
  35. (snf_EngineHandler::scanMessage): Make DebugInfo const char *.
  36. * SNFMulti/GBUdb.cpp (GBUdbAlert::toXML): Make FlagName a pointer
  37. to const char *.
  38. * SNFMulti/FilterChain.hpp (class FilterChainHeaderAnalysis): Pass
  39. const char * to SetFollowPattern. Make MatchPattern a pointer to
  40. const char *.
  41. * Scripts/snfSniffer.in: Copied from
  42. snfv2-3.5-PostfixExample/sniffer.
  43. * SNFServer/Makefile.am: Moved configuration files to
  44. config_files.
  45. * Makefile.am (SUBDIRS): Added config_files.
  46. 2008-12-08 Alban Deniz <adeniz@skidmark.localdomain>
  47. * SNFServer/main.cpp: Use PACKAGE_VERSION for version string.
  48. * SNF2Check/main.cpp: Removed reference to SNF_Service in #include
  49. directives.
  50. * SNFClient/main.cpp: Removed reference to SNF_Service in #include
  51. directives. Use PACKAGE_VERSION for version string.
  52. * configure.ac: Split SNF_Service into CodeDweller and SNFMulti
  53. directories.
  54. 2008-10-01 Alban Deniz <adeniz@skidmark.localdomain>
  55. * snf.openbsd: Start with /bin/sh rather than /bin/bash. Rename
  56. function stop to stopFunction. Removed $ from beginning of string
  57. constants.
  58. 2008-09-30 Alban Deniz <adeniz@skidmark.localdomain>
  59. * compile: Added -O3 switch, and change first line back to
  60. /bin/sh.
  61. 2008-09-30 Alban Deniz <adeniz@skidmark.localdomain>
  62. * compile: Changed first line back to /bin/sh.
  63. 2008-09-30 Alban Deniz <adeniz@skidmark.localdomain>
  64. * compile: Changed first line back to /bin/sh.
  65. 2008-09-30 Alban Deniz <adeniz@skidmark.localdomain>
  66. * install: Changed the first line to /bin/sh.
  67. * clean: Changed the first line to /bin/sh.
  68. * build: Changed first line to /bin/sh.
  69. 2008-09-24 Alban Deniz <adeniz@snuffy.localdomain>
  70. * snf.freebsd (stop_cmd): Added message when stopping.
  71. 2008-09-24 Charlie Root <adeniz@snuffy.localdomain>
  72. * DEVELOPER_NOTES: Corrected installation for FreeBSD.
  73. 2008-09-21 Alban Deniz <adeniz@skidmark.localdomain>
  74. * DEVELOPER_NOTES: Updated.
  75. 2008-09-20 <adeniz@puffy.localdomain>
  76. * snf.openbsd: Initial revision.
  77. * snf.freebsd: Renamed from snf.bsd.
  78. 2008-09-20 <adeniz@puffy.localdomain>
  79. * install (destdir): Added -m to su command on last line.
  80. * DEVELOPER_NOTES: Updated for OpenBSD.
  81. 2008-09-15 Alban Deniz <adeniz@skidmark.localdomain>
  82. * snf.redhat (snfStartCmd): Use su to start daemon, and specify
  83. shell.
  84. * snf.suse (SNFServer_BIN): Specify shell when issuing su command.
  85. 2008-09-13 Alban Deniz <adeniz@wormy.home>
  86. * snf.bsd: Tested.
  87. 2008-09-13 Alban Deniz <adeniz@wormy.home>
  88. * DEVELOPER_NOTES: Initial revision.
  89. 2008-09-10 Alban Deniz <adeniz@sleepy.localdomain>
  90. * snf.ubuntu: Tested start, stop, reload, status commands.
  91. 2008-09-09 Alban Deniz <adeniz@>
  92. * FilterChain.hpp: Included string.h.
  93. * GBUdb.hpp: included stdlib.h.
  94. 2008-09-09 Alban Deniz <adeniz@sleepy.localdomain>
  95. * snf.suse: Added description to structured comment after
  96. chkconfig.
  97. 2008-09-09 Alban Deniz <adeniz@>
  98. * snf.suse: Initial revision.
  99. 2008-09-09 Alban Deniz <adeniz@sleepy.localdomain>
  100. * install (destdir): Create the user and group first.
  101. 2008-09-09 Alban Deniz <adeniz@>
  102. * install (destdir): Corrected useradd command.
  103. 2008-09-08 Alban Deniz <adeniz@skidmark.localdomain>
  104. * compile: Removed .exe extension.
  105. 2008-09-08 Alban Deniz <adeniz@skidmark.localdomain>
  106. * compile: Removed the .exe extension.
  107. 2008-09-08 Alban Deniz <adeniz@skidmark.localdomain>
  108. * compile: Removed the .exe extension.
  109. 2008-09-08 root <adeniz@skidmark.localdomain>
  110. * getRulebase: Removed .exe from program names.
  111. * snf.redhat: Initial revision.
  112. 2008-09-08 Alban Deniz <adeniz@skidmark.localdomain>
  113. * clean: Create script to remove executables generated by build.
  114. * install: Created script to install applications, files, and
  115. download rulebase.
  116. * build: Created script to build applications.
  117. SNF Command Line & SNFMulti Engine / Client Change Log
  118. ------------------------------------------------------------------------------
  119. 20080710 - Version 3.0.1
  120. Minor change to SNFServer main.cpp:59 - removed cast to (int) which caused
  121. a precision loss error when compiling on 64 bit systems. This changes the
  122. thread pointer info in debug mode slightly (better).
  123. 20080626 - Version 3.0, It's official.
  124. Changed build information.
  125. Removed extraneous comments from configuration file.
  126. 20080524 - Version V2-9rc2.25.7
  127. Optimized networking library for additional speed & stability by moving
  128. receive buffer allocation from heap to stack (automatic).
  129. Optimized timing parameters in SNFClient for improved speed. Polling dealys
  130. are now reduced to 10ms from 30ms.
  131. Removed speed-bug in SNFClient, 100ms guard time between retries was always
  132. executed after an attempt (even a successful attempt). The guard time is now
  133. condition and only fires on unsuccessful attempts.
  134. Updated XCI server logic to ensure non-blocking sockets for clients in all
  135. socket implementations.
  136. 20080424 - Version V2-9rc2.24.6
  137. Refactored snfScanData.clear() to reduce heap work and fragments.
  138. Added mutex to scanMessageFile() entry point just in case some app attempts to
  139. put multiple threads through a single engine handler. scanMessage() is already
  140. protected and fully wraped by the new scanMessageFile() mutex.
  141. Added non-specific runtime exception handling to XHDR injection code.
  142. Added 2 retries w/ 300ms delay to remove original message in XHDR inject code.
  143. If remove fails after 3 attempts the injector throws.
  144. Added 2 retries w/ 300ms delay to rename temp file to msg in XHDR inject code.
  145. If rename fails after 3 attempts the injector throws.
  146. 20080416 - Version V2-9rc2.23.6
  147. Fixed bug where SNCY open() would fail on some Win* platforms with
  148. WSAEINVAL instead of the standard EINPROGRESS or EALREADY which were expected.
  149. Also added WSAEWOULDBLOCK to cover other "ambiguities" in windows sockets
  150. implementations. InProgress() on Win* now test for any of:
  151. WSAEINPROGRESS, WSAEALREADY, WSAEWOULDBLOCK, WSAEINVAL
  152. 20080413 - Version V2-9rc2.22.6
  153. Fixed bug in TCPHost.open() where EALREADY was not counted as a version of
  154. EINPROGRESS. This would cause open() to throw an unnecessary exception when
  155. an open() required extra time.
  156. 20080413 - Version V2-9rc2.21.6
  157. Extended timeout for SYNC session open() to the full session length. This way
  158. if a session takes a long time to open it still has a shot at success.
  159. 20080411 - Version V2-9rc2.20.6
  160. Adjusted snfNETmgr to use non-blocking open in SYNC sessions. Open timeout
  161. is 1/3 of the session timeout. Session timeout is 2 * Session pacing. Open
  162. polling uses golden spiral delay from 10ms to 340ms.
  163. 20080410 - Version V2-9rc2.19.6
  164. Adjusted XCI manager to use new snfCFGPacket paradigm in checkCFG().
  165. Adjusted snf_RulebaseHandler::addRulePanic() to use MyMutex and eliminated
  166. the AutoPanicMutex and waiting scheme.
  167. Refactored scanMessage() to use a ScopeMutex() rather than lock()/unlock().
  168. Refactored scanMessage() to use MyCFGPacket.isRulePanic() test.
  169. Redesigned snfCFGPacket handling to automate grab() / drop() functions.
  170. Fixed lock-up bug: Redesigned AutoPanic posting and checking mechanisms to
  171. eliminate potential dead-lock condition. Under some conditions a precisely
  172. timed auto-panic posting could cause the RulebaseHandler mutex and the
  173. AutoPanicMutex to become intertwined leading to a cascading deadlock. When
  174. this occurred all XCI processing threads and eventually the XCI listener
  175. thread would become blocked waiting to get the current configuration.
  176. 20080409 - Version V2-9rc2.18.6
  177. Enhanced XCI exception handling and logging to provide additional detail.
  178. Added code to explicitely check for zero length files in scanMessagFile().
  179. Previously a zero length file would cause the CBFR module of the filter
  180. chain to throw an invalid buffer exception. Now if the message file is empty
  181. scanMessageFile() will throw a FileError stating FileEmpty!.
  182. 20080407 - Version V2-9rc2.17.6
  183. Enhanced exception reporting in snfXCImrg
  184. 20080405 - SNFServer V2-9rc2.16.6
  185. Reduced safetly limits on status reports to 100K for status reports and 100K
  186. for samples. Previous values were 10M. Most full sessions from the busiest
  187. systems are < 50K total.
  188. Recoded sendDataTimeout() to break uploads into 512 byte chunks and insert
  189. delays only when a chunk is fragmented. This methodology improves reliability
  190. on Win* systems without any significant penalty on systems that don't need
  191. socket sends() to be in smaller chunks.
  192. Fixed TCPClient::transmit() and TCPHost::transmit() bug where returned byte
  193. count might be -1. Now returned byte counts can only be 0 or more.
  194. 20080403 - SNFServer V2-9rc2.15.5
  195. Minor modifications to networking module to better support non-blocking open()
  196. Updated SNFClient with new timing and non-blocking open(). Worst case return
  197. time from SNFClient estimated at 200 seconds (theoretically impossible). No-
  198. connection return time from SNFClient estimated at 20 seconds.
  199. 20080326 - SNFServer V2-9rc2.15.4
  200. Refactored snfNETmgr::sync() to consolidate non-blocking io routines.
  201. Added detailed thread status data to XCI listener thread.
  202. Fixed minor bug in main (not changing revision), Debug flag for internal use
  203. was left on in the last build cycle. It is commented out now.
  204. 20080325 - SNFServer V2-9rc2.14.4
  205. Updated snfNETmgr with comprehensive thread status data.
  206. Refactored snfNETmgr::sync() to check a Timeout, removed TCPWatchdog.
  207. 20080325 - SNFServer V2-9rc2.13.4
  208. Upgraded TCPWatcher code to use new threading features (type, status).
  209. 20080324 - SNFServer v2-9rc2.12.4
  210. Added a "Rulebase Getter" feature as part of the snf_Reloader. When enabled
  211. the Rulebase Getter will launch a user defineable system() call whenever a
  212. new rulebase file is available. The call will be repeated until the condition
  213. is cleared by a successful update of the rulebase file. The Rulebase Getter
  214. will wait a configurable "guard time" between attempts. The default system()
  215. call is "getRulebase" with a guard time of 3 minutes. In most cases this will
  216. launch the provided getRulebase script which should be present in the start
  217. location of SNFServer on most systems. Best practice is to configure the full
  218. path to the update script. The system() call is made in a separate thread so
  219. that if the system() call hangs for some reason only the Rulebase Getter is
  220. stuck.
  221. Built thread monitoring function for SNFServer.exe (Full status report / sec).
  222. The thread monitoring report is turned on when the program is renamed to
  223. SNFDebugServer.exe or if "debug" appears in the file path to the program.
  224. Refactored XCI channels to leverage new thread monitoring.
  225. Refactored Threading to eliminate inline code.
  226. Improved exception handling/reporting in scanMessageFile().
  227. Updated scanMessagFile() header injection code to accommodate messages with
  228. no body. Previous version would throw an exception when it could not find an
  229. injection point. The new version makes the injection point byte 0 and puts
  230. the injected headers at the top of the message using it's best guess about the
  231. type of line endings (CRLF or LF) to use.
  232. Updated Threading library to include high level thread state tracking and
  233. naming. Also creates a global Threads object that can produce a real-time
  234. status report on all threads.
  235. Updated Networking library to use SO_REUSEADDR by default on listeners.
  236. 20080318 - SNF2-9rc1.11.exe Consolidated several mods/fixes
  237. Corrected scan error logging bug. Was posting <s/> now posts <e/>.
  238. Updated scan error logging to be more uniform with non-scan errors.
  239. Developed various script prototypes for postfix integration & automated
  240. updates on win* systems using the new UpdateReady.txt file mechanism.
  241. Fixed a bug in scanMessageFile() where an \n\n style insertion point
  242. would never be detected.
  243. Modified scanMessageFile() header injection to strip <CR> from line ends
  244. when the message file provided does not use them. The line-end style of
  245. the message file is detected while locating the insertion point. If the
  246. insertion point (first blank line) does not use <CR><LF> then the SNF
  247. generated X-Headers are stripped of <CR> in a tight loop before injection.
  248. Enhanced error and exception reporting in SNFMulti.cpp scanMessageFile().
  249. Enhanced exception handling in networking module. All exceptions now
  250. throw descriptive runtime_error exceptions.
  251. 20080306 - SNF2-9rc1.8.exe (FIRST RELEASE CANDIDATE for VERSION 3!)
  252. Added Drilldown Header Directive Functions - When the candidate source IP
  253. comes from a header matching a drilldown directive the IP is marked "Ignore"
  254. in GBUdb and the candidate is no longer eligible to be the source for that
  255. message. This allows SNF to follow the trusted chain of devices (by IP) down
  256. to the actual source of the message. It is handy for ignoring net blocks
  257. because it can match partial IPs but it is designed to allow SNF to learn
  258. it's way through the servers at large ISPs so that the original source for
  259. each message can be evaluated directly.
  260. Added Source Header Directive Functions - This feature allows SNF to acquire
  261. the source IP for a message from a specific header rather than searching
  262. through the Received headers in the message. This is useful when the original
  263. source for a message is not represented in Received headers. For example:
  264. Hotmail places the originating source IP in a special header and does not
  265. provide a Received header for that IP. This feature is protected from abuse
  266. by a "Context" feature which only activates the source header directive when
  267. specific content is found in a specific received header. Using the above
  268. example, this feature can be configured so that a Hotmail source header would
  269. only be read if the top Recieved header contained "hotmail.com [" indicating
  270. that the ptr lookup for the header matched the hotmail domain. Note: When a
  271. source is pulled from a header directive that source is put into a synthetic
  272. Received header and injected into the scanning stream (not the message) as
  273. the first Received header.
  274. Added forced source IP to XCI - It is now possible to "inject" or "force"
  275. the source IP for any message by providing that IP in the XCI request or
  276. directly in a scan...() function call. This allows the calling application
  277. to provide the source IP for a message ahead of any Received headers that
  278. might be in the message. This is useful when the calling application knows
  279. the original source IP for the message but that IP is not represented in
  280. the Received headers and it is not desireable to use the Source Header
  281. Directive mechanism.
  282. Added forced source IP mode to SNFClient - It is now possible to call the
  283. SNFClient utility with an IP4Address using the syntax:
  284. SNFClient -source=12.34.56.78
  285. The -source mode of SNFClient exercises the forced source IP feature in
  286. the XCI (see above)
  287. Added Status Report features to SNFClient and XCI - It is now possible to
  288. request the latest status.second, status.minute, or status.hour data via
  289. the XCI and SNFClient. The syntax for requesting a status report using the
  290. SNFClient is:
  291. SNFClient -status.second
  292. SNFClient -status.minute
  293. SNFClient -status.hour
  294. In addition to providing status reports the SNFClient in this mode will
  295. return a nonzero value (usually 99) if it is unable to get a status report
  296. from SNFServer. This feature can be used to verify that SNFServer is up
  297. and responding. If SNFServer is OK then the result code returned is 0.
  298. Added result codes to SNFClient -test and XCI IP test functions - The XCI
  299. engine has been upgraded to provide the range value for the IP under test
  300. as well as the symbolic result code associated with that range. This allows
  301. the -test function to provide results that are consistent with the GBUdb
  302. configuration without additional processing: For example, if the IP falls
  303. in the Caution range then the Caution result code will be returned just
  304. as if a message had been scanned with the same IP and no pattern match
  305. occurred. The same is true for Truncate and Black range hits.
  306. Added Timestamp and Command Line Parameter data to SNFClient.exe.err - When
  307. an error occurs with SNFClient that may not appear in the SNFServer logs an
  308. entry is appended to the SNFClient.exe.err file. That in itself is not new.
  309. The new feature is that the entries added to the SNFClient.exe.err file now
  310. include timestamp and command line data to aid in debugging.
  311. Added BIG-ENDIAN Conversion - When the SNFServer program is compiled on a
  312. system that uses a BIG-ENDIAN processor (such as a power-mac) the rulebase
  313. load process now includes a routine to convert the token matrix from it's
  314. native LITTLE-ENDIAN format to a BIG-ENDIAN format. This solves a bug where
  315. Power-Mac (and presumably other BIG-ENDIAN systems) could compile and run
  316. the SNF* software but were unable to capture spam because the token matrix
  317. in the rulebase file was misinterpreted.
  318. Note: The BIG-ENDIAN Conversion feature is still considered experimental
  319. because it has not yet been thoroughly tested.
  320. Updated the Configuration Log to include all of the current configuration
  321. features and to improve it's readability.
  322. 20080207 - SNF2-9b1.7.exe
  323. SYNC Timeout now 2x SYNC Schedule
  324. SNFServer now produces an UpdateReady.txt file when the UTC timestamp on
  325. the SYNC server is newer than the UTC timestamp of the active rulebase. It
  326. is presumed that a suitable update script or program will run periodically
  327. and download a fresh rulebase file if the UpdateReady.txt file is present.
  328. The update script should remove the UpdateReady.txt file when it completes
  329. a successful download of the new rulebase file.
  330. Added available rulebase UTC in status reports <udate utc.../>
  331. Added Automatic path fixup for ending / or \
  332. Added option to use local time in log rotation <rotation localtime='no'/>
  333. The default is still utc.
  334. 20071102 - SNF2-9b1.6.exe
  335. Increased MAX_EVALS from 1024 to 2048.
  336. Adjusted defult range envelopes in snf_engine.xml to be more conservative.
  337. 20071017 - SNF2-9b1.5.exe
  338. Added a missing #include directive to the networking.hpp file. The
  339. missing #include was not a factor on Linux and Windows systems but
  340. caused compiler errors on BSD systems.
  341. Corrected a bug in the GBUdb White Range code where any message with a
  342. white range source IP was being forced to the white result code. The
  343. engine now (correctly) only forces the result and records the event when
  344. a black pattern rule was matched and the White Range IP causes that
  345. scan result to be overturned. If the scan result was not a black pattern
  346. match then the original scan result is allowed to pass through.
  347. Corrected a bug in the Header Analysis filter chain module that would
  348. cause the first header in the message to be ignored in some cases.
  349. Corrected an XML log format problem so that <s/> elements are correctly
  350. open ended <s ....> or closed (empty) <s..../> according to whether they
  351. have subordinate elements.
  352. Adjusted the GBUdb header info format. The order of the Confidence
  353. figure and Probabilty figure is now the same as in the XML log files
  354. (C then P). The confidence and probability figures are now preceeded
  355. with c= and p= respectively so that it's easy to tell which is which.
  356. 20071009 - SNF2-9b1.4.exe
  357. Tightened up the XCI handler code and removed the watchdog. The watchdog
  358. would restart the listener if there were no connections in 5 minutes. It
  359. was originally added to provide additional stability, however in practice
  360. there have been no "stalled listeners". Also, a stalled listener would
  361. likely be a sign of a different problem that the watchdog would tend to
  362. hide.
  363. Modified and refactored the XCI configuration management code. All XCI config
  364. changes and up-down operations are now handled in a single function except
  365. upon exit from the main XCI thread where XCI_shutdown() is always called.
  366. Added some more detailed exception handling code to the XCI component so that
  367. more data will be logged in the event of an error.
  368. 20071008 - SNF2-9b1.2.exe
  369. Added support for passing Communigate Message Files directly. Communigate adds
  370. data to the top of the message file. That data stops at the first blank line and
  371. the rfc822 message begins. The SNFServer engine can now be told to ignore this
  372. extra data using the following option:
  373. <msg-file type='cgp'/> <!-- type='cgp' for communigate message files -->
  374. If the msg-file type is anything other than 'cgp' then it will treat the message
  375. file as a standard rfc822 message in the usual way. The default setting is
  376. <msg-file type='rfc822'/>