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 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515
|
2009-12-15 Ryan Jordan <ryan.jordan@sourcefire.com>
* doc/snort_manual.tex:
Clarified the documentation for output plugins alert_fast, alert_full,
log_tcpdump, and alert_csv. Added documentation for log limits.
* etc/gen-msg.map:
* src/generators.h:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/include/hi_client.h:
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
Changes to improve handling of pipelined requests and chunked
encodings based on content length header field.
* src/preprocessors/snort_httpinspect.c:
Fix error message for validation of client_flow_depth.
* src/build.h:
Updated build number
* src/codes.c:
* src/codes.h:
* src/detection-plugins/sp_respond2.h:
Removed unused code.
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
Set IPv6 UDP DCE/RPC reassembly headers.
* src/dynamic-preprocessors/Makefile.am:
Exported more files to allow re-building of some .so files on NetBSD.
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssh/spp_ssh.h:
Fixed an issue where the SSH preprocessor would erroneously alert on
"protocol mismatch" when autodetect was turned on.
* src/log.h:
* src/parser.c:
Fixed reloading of auto-iface variables after privileges had been dropped.
Thanks to Pablo Catalina for reporting this issue.
* src/output-plugins/spo_alert_prelude.c:
Fixed compiling on AIX 6, or with --enable-prelude and --enable-ipv6.
Thanks to Rnadall Rioux for reporting the AIX issues.
Thanks to Markus Lude for reporting the prelude & IPv6 issues.
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/stream_api.h:
Set smaller flush point appropriate for RPC header.
* src/sfutil/Makefile.am:
* src/sfutil/sf_ipvar.c:
Fixed an error where negative IP lists were not always being checked.
* src/sfutil/sfPolicy.c:
* src/sfutil/sfPolicy.h:
Fix to return correct vlan/ip id.
* src/sfutil/sfrt.h:
* src/sfutil/sfrt_trie.h:
More compile fixes on AIX 6.
* src/snort.c:
* src/target-based/sftarget_reader.c:
Fix issues at startup and perfstats rotation with old versions of
libc (2.2, 2.3) & linux threads.
* src/util.h:
Added a function prototype for InitTimeStats.
* src/win32/WIN32-Includes/config.h:
Formatting changes.
2009-10-21 Ryan Jordan <ryan.jordan@sourcefire.com>
* doc/README.filters:
added missing _.
* doc/snort_manual.tex:
Update to add PCRE modifiers that were left out of table 3.8.
Fixed typos.
* src/build.h:
Updated build number.
* src/codes.c:
* src/codes.h:
Removed unused code.
* src/decode.c:
When label > NUM_RESERVED_LABELS, iRet should be set based on the payload
type
* src/configure.in:
* src/Makefile.am:
* src/dynamic-examples/Makefile.am:
* src/dynamic-examples/dynamic-preprocessor/Makefile.am:
* src/dynamic-examples/dynamic-preprocessor/spp_example.c:
Added the dynamic-examples back to the Makefile, and updated the example
preprocessor to support multiple policies & config reloading.
* src/detection-plugins/sp_pcre.c:
fixed warning: ISO C90 forbids mixed declarations and code
* src/detection-plugins/sp_respond2.h:
separate flexresp interface from implementation
Made react, resp, and resp2 independent except that libnet is only
initialized/closed once regardless of build combinations.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Fixed a bug where dynamic rules were not initialized correctly after a
snort.conf reload.
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/parser.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
Fixed segfault when adding policies on reload
Fixed potentially freed stream5 configuration being read on clean exit
Fixed potentially wrong stream5 configuration being used during reload
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
Make log message a debug message
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
changing the return value
* src/dynamic-preprocessors/ssh/spp_ssh.c:
Fixed SSH preprocessor to use "FLPOLICY_IGNORE" when turning off Stream
reassembly, as opposed to "FLPOLICY_NONE"
* src/fpcreate.c:
* src/profiler.c:
Updated uses of IPPROTO_IP to ETHERNET_TYPE_IP
* src/output-plugins/spo_alert_sf_socket.c:
fixed otn lookup; due to not calling "first" function the configured
gid/sids would not be found and so no no alerts would go out the socket
and no errors reported.
* src/log.c:
use orig api and family for embedded icmp packet printing.
Fixed out-of-bounds access when printing IPv6 packets using -v.
* src/output-plugins/spo_database.c:
Included missing "last_cid" column when inserting a new sensor into the
table while "ignore_bpf" was turned on.
* src/preprocessors/perf-base.c:
Fixed inaccurate wire speed stats.
* src/preprocessors/HttpInspect/client/hi_client.c:
Updated previous bugfix to check for more possible return values.
* src/preprocessors/spp_perfmonitor.c:
Check if packet is stream rebuilt. Don't include in stats.
* src/sfutil/sf_ip.h:
processing of 0.0.0.0/x enabled. Only 0.0.0.0/32 is considered as "any".
* src/sfutil/sfPolicy.c:
fixed segfault when more than 10 policies were applied.
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/output-plugins/spo_alert_syslog.c:
* src/win32/WIN32-Code/syslog.c:
* src/win32/WIN32-Prj/sf_engine_initialize.dsp:
* src/win32/WIN32-Prj/snort_initialize.dsp:
Fix syslog output under Windows.
* src/snort.c:
enable -Q output with --help for !IPFW && !WIN32 builds; change text to
be more accurrate.
* src/snort.h:
Handled MPLS BOS.
* src/target-based/sf_attribute_table_parser.l:
* src/target-based/sf_attribute_table.y:
* src/target-based/sftarget_reader.c:
Use bison built in YYACCEPT and YYABORT so stack is cleaned up and freed
Free host entries that are not inserted into routing table due to
max_attribute_hosts limit
2009-09-15 Ryan Jordan <ryan.jordan@sourcefire.com>
* doc/README.frag3:
Removed ttl_limit option, as it has been deprecated.
* doc/README.ftptelnet:
Added the ignore_telnet_erase_cmds option.
* doc/README.ssh:
Fixed the documentation to reflect changes in SSH for 2.8.5.
* doc/snort_manual.tex:
Duplicated the above doc changes for the manual. Clarified order
of rule actions.
* etc/gen-msg.map:
Punctuation changes.
* etc/snort.conf:
Fix the example SSH configuration, and turn it on by default. This
should increase performance in situations where a lot of SSH traffic
was inspected.
* rpm/snort.spec:
Updated version number.
* src/build.h:
Updated build number.
* configure.in:
Added configure switch to disable core files.
* src/codes.c:
* src/codes.h:
Removed old/unused code.
* src/debug.c:
* src/sfutil/sfportobject.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
redirect stdin/stdout/stderr to /dev/null
for debug write to file and change ownership of file to dropped privs
* src/decode.c:
Allow support for label values of 0 or 2 at locations other than bottom
of stack.
* src/decode.h:
* src/win32/WIN32-Prj/snort_installer.nsi:
Moved a couple rules into the decoder.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/detection-plugins/Makefile.am:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_react.h:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond2.h:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond.h:
* src/detection-plugins/sp_session.c:
* src/win32/WIN32-Prj/snort.dsp:
Made react, resp, and resp2 independent except that libnet is only
initialized/closed once regardless of build combinations.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Added a new check to handle loading of older libraries.
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc2/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
* src/dynamic-preprocessors/dns/sf_preproc_info.h:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/sf_preproc_info.h:
* src/dynamic-preprocessors/ssh/sf_preproc_info.h:
* src/dynamic-preprocessors/ssh/spp_ssh.h:
* src/dynamic-preprocessors/ssl/sf_preproc_info.h:
Changed the build numbers of preprocessors.
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_stream5.c:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
Fixed compile warnings.
* src/preprocessors/spp_sfportscan.c:
Don't include vlan header in portscan event/log packet.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fix core by adjusting IPv6 buffer size
* src/profiler.c:
Clean up preprocessor profiler formatting.
* src/dynamic-preprocessors/ssh/spp_ssh.c:
Changed limit on max_server_version_len to 255.
* src/dynamic-preprocessors/smtp/smtp_log.h:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/generators.h:
Gave xlink2state smtp preprocessor alert a unique sid.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Fixed memory leaks.
* src/fpcreate.c:
Fixed potential segfault with multiplie policies.
* src/fpdetect.c:
* src/fpdetect.h:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf-event.c:
* src/preprocessors/perf-event.h:
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf-flow.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/sfutil/sfActionQueue.c:
IPv6-related changes.
* src/mempool.c:
Check return values from mempool_init and fatal if bad when freeing
pools, set to NULL.
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/sfutil/sfPolicy.c:
Added additional error-checking.
* src/output-plugins/spo_unified.c:
* src/parser.c:
* src/parser.h:
* src/signature.c:
* src/signature.h:
Fixed a couple invalid reads & writes.
* src/plugbase.c:
Check configuration for all policies.
* snort_head/snort/snort.8:
Updated man page to reflect doc changes.
2009-07-13 Ryan Jordan <ryan.jordan@sourcefire.com>
* src/win32/WIN32-Prj/sf_testdetect.dsp:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
Win32 updates.
* configure.in:
Update for module pack confliction.
* snort.8:
Removed obsolete option -o
* doc/CREDITS:
Updated credits to reflect Snort 2.8.5 work
* doc/INSTALL:
Indentation changes, update for Mac
* doc/Makefile.am:
Added README.filters
* doc/README.filters:
New README, describes the new filtering features in Snort 2.8.5
* doc/README.frag3:
Added the overlap_limit and min_fragment_length options
* doc/README.ftptelnet:
Indentation changes
* doc/README.http_inspect:
Added post_depth option.
* doc/README.INLINE:
Changed "snort_inline" to "Snort Inline"
* doc/README.PerfProfiling:
Updated stats output to reflect "Rev" column
* doc/README.reload:
New README, describes how to reload a Snort configuration in 2.8.5
* doc/README.ssh:
Updated the README to reflect changes in the SSH preprocessor for 2.8.5
* doc/README.thresholding:
Updated to indicate that "threshold" is deprecated in favor of "event_filter".
* doc/snort_manual.tex:
Updated to include 2.8.5 features, formatting updates.
Removed old references to Stream4.
* etc/gen-msg.map:
Moved XMAS attack handling to decoder.
Gave xlink2state smtp preprocessor alert unique sid.
* etc/threshold.conf:
Updated with formatting changes, deprecation notice for "threshold"
* src/build.h:
New build number.
* src/codes.c:
* src/codes.h:
Removed unused files.
* src/decode.c:
* src/decode.h:
Made some options policy-specific. Removed a couple poorly-performing
rules and made them into decoder checks instead.
* src/detect.c:
* src/ppm.h:
Don't reset packet time
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1_detect.c:
Removed redundant check.
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_isdataat.h:
Moved flags & struct to header file.
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_replace.c:
* src/detection-plugins/sp_replace.h:
Check for combination of "replace" and "http_*" options, which are
incompatible.
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond.c:
Renamed respond's config so it didn't conflict with gloabl Snort config.
* src/dynamic-plugins/sf_convert_dynamic.c:
* src/dynamic-plugins/sf_convert_dynamic.h:
Added a missing handler for "isdataat" options in .so rules.
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_hdropts.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_rc4.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/ipv6_port.h:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
Changed variables from "uintX_t" to "u_intX_t".
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.h:
* src/dynamic-preprocessors/dcerpc2/dce2_event.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.h:
* src/dynamic-preprocessors/dcerpc2/dce2_stats.h:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
Added detection for DCE/RPC server->client attacks.
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
Fixed memory leak.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
Fixed some FTP false positives.
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
Fixed multiple policy support in these preprocessors.
* src/fpdetect.c:
* src/rules.h:
One rule can have different actions in different policies.
* src/generators.h:
Changed SSL preprocessor's ID to avoid conflict with DCE/RPC 2
* src/inline.c:
Win32 updates
* src/log.c:
Fixed issue with verbose output while in IDS mode.
* src/mempool.c:
* src/mempool.h:
* src/preprocessors/portscan.c:
* src/sfutil/Makefile.am:
* src/sfutil/sfActionQueue.c:
* src/sfutil/sfActionQueue.h:
Made several config options specific to bound policies.
* src/output-plugins/spo_unified2.h:
Used 104 and 105 for the VLAN+MPLS event records.
* src/parser/IpAddrSet.c:
* src/parser/IpAddrSet.h:
Clean up IpAddrSet in rate filter and suppress
* src/parser.c:
* src/parser.h:
Fixed warnings
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_httpinspect.c:
HTTP Inspect now allows 1024 server profiles. The storage size was
reduced.
* src/preprocessors/spp_frag3.c:
Fixed problem where Snort wouldn't reload if prealloc_memcap was specified.
* src/preprocessors/spp_perfmonitor.c:
Fixed problem where "now" file stopped updating after a reload.
* src/preprocessors/spp_sfportscan.c:
* src/sfutil/sfportobject.c:
* src/sfutil/sfrf.c:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
Fixed memory leaks.
* src/preprocessors/spp_stream5.c:
* src/sfutil/sfPolicyUserData.c:
* src/sfutil/sfPolicyUserData.h:
* src/target-based/sftarget_reader.c:
* src/target-based/sftarget_reader.h:
Update for linuxthreads.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Added -H command-line option. Uses 192 for all TCP flushpoints.
Only useful for repeatability while testing Snort.
* src/profiler.c:
Added rule revision to profiling output.
* src/rate_filter.c:
* src/rate_filter.h:
Automatically enable "session delete" events with "session add" events.
* src/sf_sdlist.c:
* src/sfutil/sf_ipvar.c:
Formatting changes
* src/sf_types.h:
Win32 updates
* src/snort.c:
* src/snort.h:
Several fixes involving policy reload
* src/util.c:
Formatting changes, updated references to snort.org.
* src/util.h:
Don't allow 0 for threshold count or seconds.
2009-05-06 Ryan Jordan <ryan.jordan@sourcefire.com>
* etc/gen-msg.map:
Added new messages for MPLS and Frag3.
* etc/snort.conf:
Modified an example port number, and added overlap_limit to the default
frag3_engine config.
* src/detect.c:
* src/detect.h:
* src/detection_filter.c:
* src/detection_filter.h:
* src/rate_filter.c:
* src/rate_filter.h:
* src/sfthreshold.c:
* src/sfthreshold.h:
Added support for detection_filter, rate_filter, and event_filter.
See doc/README.filters for more info.
* src/detection-plugins/Makefile.am:
* src/detection-plugins/sp_hdr_opt_wrap.c:
* src/detection-plugins/sp_hdr_opt_wrap.h:
* src/dynamic-plugins/Makefile.am:
* src/dynamic-plugins/sf_convert_dynamic.c:
* src/dynamic-plugins/sf_convert_dynamic.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Changed the way .so rules are handled, to take advantage of the Rule
Option Tree.
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_check.h:
Added support for ">=" and "<=" test options.
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/dynamic-plugins/sp_dynamic.c:
Flowbits are now part of the rule stub that gets generated when
dumping dynamic rules.
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_replace.c:
* src/detection-plugins/sp_replace.h:
Content replacement code moved out to sp_replace.{c,h}
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_pcre.h:
PCRE matches are no lnoger repeated if anchored.
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
Packet structure re-arranged, and other code cleanup.
* src/dynamic-preprocessors/ssh/Makefile.am:
* src/dynamic-preprocessors/ssh/sf_preproc_info.h:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssh/spp_ssh.h:
Updated SSH preprocessor. Config options have been modified, see
README.ssh for details.
* src/parser.c:
Fixed handling of IP lists with mis-matched brackets.
* src/output-plugins/spo_unified2.c:
* src/output-plugins/spo_unified2.h:
MPLS and VLAN records have been consolidated into Unified2Event_v2.
* src/win32/Makefile.am:
* src/win32/WIN32-Code/inet_aton.c:
* src/win32/WIN32-Code/misc.c:
* src/win32/WIN32-Code/syslog.c:
* src/win32/WIN32-Code/win32_service.c:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Includes/stdint.h:
* src/win32/WIN32-Prj/build_all.dsp:
* src/win32/WIN32-Prj/sf_engine_initialize.dsp:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
* src/win32/WIN32-Prj/snort_initialize.dsp:
* src/win32/WIN32-Prj/snort_installer.nsi:
Updated Win32 installer to include new Snort files.
* rpm/snort.spec:
Updated RPM to include new Snort files.
* doc/CREDITS:
* doc/README.filters:
* doc/README.frag3:
* doc/README.http_inspect:
* doc/README.ssh:
* doc/README.thresholding:
* doc/snort_manual.tex:
Documentation updates.
In addition, the following files were modified to enable:
- Reloading snort.conf without restarting Snort
- Applying multiple snort.confs on a per-vlan or per-CIDR block basis
- Compiler warning clean-up
* src/bounds.h:
* src/byte_extract.c:
* src/byte_extract.h:
* src/checksum.h:
* src/cpuclock.h:
* src/debug.c:
* src/decode.c:
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1_detect.c:
* src/detection-plugins/sp_asn1_detect.h:
* src/detection-plugins/sp_asn1.h:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_byte_jump.h:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_clientserver.h:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_cvs.h:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_dsize_check.h:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_ftpbounce.h:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_code_check.h:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_id_check.h:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_seq_check.h:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_icmp_type_check.h:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_fragbits.h:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_id_check.h:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_ipoption_check.h:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_same_check.h:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_ip_tos_check.h:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_isdataat.h:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_react.h:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond2.h:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond.h:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_rpc_check.h:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_session.h:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_ack_check.h:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_flag_check.h:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_seq_check.h:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_tcp_win_check.h:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_ttl_check.h:
* src/detection-plugins/sp_urilen_check.c:
* src/detection-plugins/sp_urilen_check.h:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sf_dynamic_define.h:
* src/dynamic-plugins/sf_dynamic_detection.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_hdropts.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_rc4.c:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.h:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/Makefile.am:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_file_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_file_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_file_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_structs.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.h:
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.h:
* src/dynamic-preprocessors/dcerpc2/dce2_debug.c:
* src/dynamic-preprocessors/dcerpc2/dce2_debug.h:
* src/dynamic-preprocessors/dcerpc2/dce2_event.c:
* src/dynamic-preprocessors/dcerpc2/dce2_event.h:
* src/dynamic-preprocessors/dcerpc2/dce2_http.c:
* src/dynamic-preprocessors/dcerpc2/dce2_list.h:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* src/dynamic-preprocessors/dcerpc2/dce2_session.h:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_stats.h:
* src/dynamic-preprocessors/dcerpc2/dce2_tcp.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.h:
* src/dynamic-preprocessors/dcerpc2/includes/dcerpc.h:
* src/dynamic-preprocessors/dcerpc2/includes/smb.h:
* src/dynamic-preprocessors/dcerpc2/Makefile.am:
* src/dynamic-preprocessors/dcerpc2/sf_dce2.dsp:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.h:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
* src/dynamic-preprocessors/dns/Makefile.am:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/dns/sf_preproc_info.h:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/dns/spp_dns.h:
* src/dynamic-preprocessors/dynamic_preprocessors.dsp:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_log.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_log.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.h:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.h:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_preproc_info.h:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.h:
* src/dynamic-preprocessors/libs/sfcommon.h:
* src/dynamic-preprocessors/libs/sfdynamic_preproc_libs.dsp:
* src/dynamic-preprocessors/libs/sfparser.c:
* src/dynamic-preprocessors/libs/ssl.c:
* src/dynamic-preprocessors/libs/ssl.h:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/smtp/sf_preproc_info.h:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_config.h:
* src/dynamic-preprocessors/smtp/smtp_log.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.h:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssl/Makefile.am:
* src/dynamic-preprocessors/ssl/sf_preproc_info.h:
* src/dynamic-preprocessors/ssl/sf_ssl.dsp:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/dynamic-preprocessors/ssl/spp_ssl.h:
* src/event.h:
* src/event_queue.c:
* src/event_queue.h:
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/generators.h:
* src/inline.c:
* src/inline.h:
* src/ipv6_port.h:
* src/log.c:
* src/log.h:
* src/log_text.c:
* src/log_text.h:
* src/Makefile.am:
* src/mempool.c:
* src/mstring.c:
* src/mstring.h:
* src/output-plugins/spo_alert_arubaaction.c:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_alert_full.c:
* src/output-plugins/spo_alert_prelude.c:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_alert_syslog.c:
* src/output-plugins/spo_alert_test.c:
* src/output-plugins/spo_alert_unixsock.c:
* src/output-plugins/spo_alert_unixsock.h:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_database.h:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_ascii.h:
* src/output-plugins/spo_log_null.c:
* src/output-plugins/spo_log_null.h:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/output-plugins/spo_unified.h:
* src/parser/IpAddrSet.c:
* src/parser/IpAddrSet.h:
* src/parser.h:
* src/pcap_pkthdr32.h:
* src/pcrm.c:
* src/pcrm.h:
* src/plugbase.c:
* src/plugbase.h:
* src/ppm.c:
* src/ppm.h:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/include/hi_client_stateful.h:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_reqmethod_check.h:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/include/hi_stateful_inspect.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_uri.h:
* src/preprocessors/HttpInspect/include/hi_urilen_check.h:
* src/preprocessors/HttpInspect/include/hi_util_xmalloc.h:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/HttpInspect/utils/hi_util_xmalloc.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/perf.c:
* src/preprocessors/perf-event.c:
* src/preprocessors/perf-event.h:
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf-flow.h:
* src/preprocessors/perf.h:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/sfprocpidstats.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_httpinspect.h:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_bo.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_frag3.h:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_httpinspect.h:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_perfmonitor.h:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_sfportscan.h:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/spp_stream5.h:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/stream_ignore.h:
* src/preprocessors/str_search.h:
* src/preprocids.h:
* src/profiler.c:
* src/profiler.h:
* src/rules.h:
* src/sf_types.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/ipobj.c:
* src/sfutil/Makefile.am:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfeventq.c:
* src/sfutil/sfeventq.h:
* src/sfutil/sfghash.c:
* src/sfutil/sfghash.h:
* src/sfutil/sfhashfcn.c:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
* src/sfutil/sf_iph.c:
* src/sfutil/sf_ipvar.c:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/sfutil/sflsq.c:
* src/sfutil/sflsq.h:
* src/sfutil/sfPolicy.c:
* src/sfutil/sfPolicy.h:
* src/sfutil/sfPolicyUserData.c:
* src/sfutil/sfPolicyUserData.h:
* src/sfutil/sfportobject.c:
* src/sfutil/sfportobject.h:
* src/sfutil/sfrf.c:
* src/sfutil/sfrf.h:
* src/sfutil/sfrt.c:
* src/sfutil/sfrt_dir.c:
* src/sfutil/sfrt_dir.h:
* src/sfutil/sfrt.h:
* src/sfutil/sfrt_lctrie.c:
* src/sfutil/sfrt_lctrie.h:
* src/sfutil/sfrt_trie.h:
* src/sfutil/sf_textlog.h:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
* src/sfutil/sf_vartable.c:
* src/sfutil/sf_vartable.h:
* src/sfutil/sfxhash.c:
* src/sfutil/util_math.c:
* src/sfutil/util_math.h:
* src/sfutil/util_net.c:
* src/sfutil/util_net.h:
* src/signature.c:
* src/signature.h:
* src/snort.c:
* src/snort.h:
* src/snprintf.c:
* src/spo_plugbase.h:
* src/tag.c:
* src/tag.h:
* src/target-based/sf_attribute_table_parser.l:
* src/target-based/sf_attribute_table.y:
* src/target-based/sftarget_hostentry.c:
* src/target-based/sftarget_hostentry.h:
* src/target-based/sftarget_protocol_reference.c:
* src/target-based/sftarget_protocol_reference.h:
* src/target-based/sftarget_reader.c:
* src/target-based/sftarget_reader.h:
* src/util.c:
* src/util.h:
2009-04-20 Ryan Jordan <ryan.jordan@sourcefire.com>
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
Changed DCE2 configuration such that events are disabled by default.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Fixed false positive when an additional /r/n followed the QUIT command.
* src/dynamic-preprocessors/ssh/spp_ssh.c:
Fixed infinite loop when parsing SSH configuration.
* src/output-plugins/spo_database.c:
Fixed an issue that prevented Snort from inserting records into the
sensor table of a MySQL database. Thanks to David Cecchino for pointing
out this issue.
* src/parser.c:
* src/sfutil/ipobj.c:
Fixed handling of IP lists that begin with variables, when IPv6 was
enabled.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Handle case where require_3whs is configured, no session has been
created and an ACK is received with a RST flag. Thanks to Jeff Johnson
for reporting the problem.
* src/sfthreshold.c:
* src/sfutil/sf_ipvar.c:
* src/sfutil/sfportobject.c:
* src/sfutil/sfthd.c:
* src/sfutil/sf_vartable.c:
* src/util.c:
Fixed issues with use of IPv6 address variables.
* rpm/snort.spec:
Added DCE2 preprocessor to RPM spec file. Thanks to Scott Fabbri, c0uch,
and Andrew Pendray for reporting this.
* doc/snort_manual.tex:
Updated to add Bhagyasree Bantwal, newest member of Snort Team.
2009-03-11 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Fix for IPv6 on Win32 to define interface variables.
* src/win32/WIN32-Prj/snort_installer_options.ini:
Update for IPv6 intalls.
2009-03-10 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Correctly pass operation to allow flowbits checked-but-not-set and
set-but-not-checked validation to work between text and shared rules.
* src/dynamic-plugins/sf_dynamic_define.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
Handle relative PCREs the same as text rules. Fix misnamed macro.
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_event.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
Address False positives seen in testing.
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
Add missing attribute check when FTP traffic is picked up mid-TCP stream.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Fix handling of EPRT command for IPv6.
* src/output-plugins/spo_unified2.c:
unlink output file in test mode.
* src/fpcreate.c:
* src/fpdetect.c:
* src/parser.c:
Fix logging to syslog for rule counts at startup.
* src/generators.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/stream5_common.h:
* etc/gen-msg.map:
Add stream5 option to restrict the number of consecutive
small TCP segments inserted for reassembly without seeing an ACK.
Generate alert (gid:129,sid:12) when that limit is exceeded.
Allow overriding of this configuration on a port basis via an
ignore_ports option.
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
Fixed issues w/ IPv6 comparisons and /32 used with IPv6. Added
and updated unit test code. Thanks to mamcmil on snort.org
forums for pointing out the problem.
* src/win32/WIN32-Prj/snort_installer.nsi:
* src/win32/WIN32-Prj/snort_installer_options.ini:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dcerpc2/sf_dce2.dsp:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ssl/sf_ssl.dsp:
* configure.in:
* rpm/snort.spec:
* src/win32/WIN32-Includes/config.h:
2.8.4 Final build changes. Allow IPv6 to be installed via windows
installer.
2009-02-06 Todd Wease <twease@sourcefire.com>
* snort.8:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Added command line option "--require-rule-sid" to require every rule have
an sid.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
Fix compilation issue with --disable-dynamicplugin. Thanks to
Jason Wallace for bringing this to our attention.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Push dynamic engine minor version to 10 and build version to 16.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
Fix preprocessor rule option processing for dynamic detection rules.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Add checks for header and method buffers when fast pattern is not
specified in dynamic detection rules.
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/sfutil/acsmx2.c:
* src/sfutil/bnfa_search.c:
Update uses of isprint() to check for isascii() as well where only
printable ascii characters are relevant.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Update smtp preprocessor to use stream5 direction data when determining
if preprocessor is configured to process traffic.
* doc/README.stream5:
* doc/snort_manual.tex:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Add range checking in stream5 preprocessor for prune_log_max and update
error messages to indicate 0 is a valid value for prune_log_max,
max_queued_segs and max_queued_bytes.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update to stream5 preprocessor to handle ECN and CWR bits in the SYN
packet. Thanks to Lothar Braun for bringing this to our attention.
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
Fix configuration parsing of IPv6 addresses to allow /32 cidr.
* src/decode.c:
* src/decode.h:
* src/detect.c:
* src/detect.h:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_proto.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.h:
* src/parser.c:
* src/plugbase.c:
* src/plugbase.h:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/rules.h:
* src/snort.c:
Added rule and preprocessor filtering by protocol so that traffic will
not be evaluated for which there are no rules or preprocessors interested
in that traffic.
* src/decode.c:
Fixed IPv6 decoder for Sparc memory alignment in IPv6 enabled binary.
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/log_text.c:
* src/sfutil/sf_iph.c:
Fixed issue in IPv6 enabled binary, where ICMP (not ICMP6) over IPv6
would cause a segfault.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/profiler.c:
* src/profiler.h:
Fixed inconsistent results in rule profiling. Thanks to Geoff
Whittington for bringing this to our attention.
* src/detection-plugins/sp_byte_jump.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added new "post_offset" argument to byte jump rule option to move some
designated amount after the byte jump.
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/plugbase.c:
* src/target-based/sftarget_reader.c:
* src/target-based/sftarget_reader.h:
Added functionality to the dynamic-plugin API to check whether adaptive
profiles is configured and to check whether or not a preprocessor is
configured.
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
Fatal error if both dcerpc and dcerpc2 preprocessors are configured.
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_rpc_decode.c:
Updates to stream5 filtering so that stream5 does not track sessions for
which there are no rules that could fire on that traffic or preprocessors
that are interested in that traffic.
* doc/README.dcerpc2:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* etc/gen-msg.map:
* etc/snort.conf:
Added dcerpc2 preprocessor documentation.
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
Added performance profiling statistics to the dcerpc2 preprocessor.
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.h:
* src/dynamic-preprocessors/dcerpc2/includes/dcerpc.h:
* src/dynamic-preprocessors/dcerpc2/includes/smb.h:
Fix for architectures requiring strict memory alignment such as Sparc in
the dcerpc2 preprocessor.
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.h:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.h:
Updated configuration error reporting in the dcerpc2 preprocessor.
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.h:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.h:
* src/dynamic-preprocessors/dcerpc2/dce2_tcp.h:
* src/dynamic-preprocessors/dcerpc2/dce2_udp.h:
* src/dynamic-preprocessors/dcerpc2/dce2_session.h:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.h:
Updated dcerpc2 preprocessor autodetection and handling of missed
packets to limit false positives.
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/dce2_debug.c:
* src/dynamic-preprocessors/dcerpc2/dce2_list.c:
* src/dynamic-preprocessors/dcerpc2/dce2_memory.c:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_stats.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.h:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
Updated dcerpc2 preprocessor logging.
* preproc_rules/preprocessor.rules:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_event.c:
* src/dynamic-preprocessors/dcerpc2/dce2_event.h:
* src/generators.h:
Added new preprocessor event to the dcerpc2 preprocessor to alert on
Bind or Alter Context PDUs that don't have any context items.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Updated ftp_telnet preprocessor to consider the AUTH command as the
beginning of a possibly encrypted session.
* src/dynamic-preprocessors/ftptelnet/sf_preproc_info.h:
Pushed the ftp_telnet preprocessor minor version to 2 and build
version to 11.
* src/decode.c:
* src/snort.h:
* src/util.c:
Added additional ethertypes to Vlan decoder.
* configure.in
* src/output-plugins/spo_database.c:
Added reconnect capability to MySQL database output plugin. Thanks to
Ian Mitchell and other users on the lists for bringing this to our
attention.
* src/output-plugins/spo_unified2.c:
* src/output-plugins/spo_unified2.h:
Added code to better handle logging to an NFS mounted share.
* src/parser.c:
Command line BPF filter now overrides configuration in snort.conf.
* src/parser.c:
Command line log directory now overrides configuration in snort.conf.
* src/parser.c:
* src/snort.c:
Fixed read back mode to reallow reading from stdin. Thanks to John
Gerber for bringing this to our attention.
* src/plugbase.c:
* src/util.c:
Fixed compilation on HPUX 11.11. Thanks to Lars Ebeling for bringing
this to our attention.
* src/preprocessors/spp_rpc_decode.c:
Continue defragmentation even when alerting on fragmentation in the
rpc_decode preprocessor.
* src/preprocessors/spp_stream5.c:
Stream5 will now fatal error if there isn't at least one of track tcp,
track udp or track icmp.
* src/sfthreshold.c:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
Allow a count of -1 to threshold configuration option to disable all
thresholding for that object.
* src/snort.c:
Fixed issue with SIGHUP and handling of daemonize flag.
* preproc_rules/decoder.rules:
* preproc_rules/preprocessor.rules:
Added decoder/preprocessor rules for MPLS and DCE/RPC.
* snort.8:
Update manpage for "-x", "--conf-error-out" and "--exit-check" command
line options.
2008-12-30 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_database.c:
Update to check for a missing host name when connecting to a
MySQL database and fail gracefully. Thanks to Chris Benedict
for the report.
* doc/README.stream5:
* doc/snort_manual.pdf:
* doc/snort_manual.tex:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/stream_api.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/stream5_common.h:
Update Stream5 to better handle out-of-sequence server responses
when not doing server-side reassembly. Add limits on number of
bytes and segments queued to prevent one session from consuming
all memory.
* src/target-based/sf_attribute_table.y:
Force bison to use malloc/free instead of alloca for older versions
of bison.
* src/target-based/sf_attribute_table_parser.l:
* src/target-based/sftarget_reader.c:
Don't fatal error when reloading an attribute table beyond the
configured limit. Only display warning to syslog/console.
2008-10-03 Todd Wease <twease@sourcefire.com>
* configure.in:
* src/decode.c:
* src/decode.h:
* src/detection-plugins/sp_pattern_match.c:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_hdropts.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/libs/sfdynamic_preproc_libs.dsp:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/fpdetect.c:
* src/generators.h:
* src/ipv6_port.h:
* src/log.c:
* src/log_text.c:
* src/output-plugins/spo_alert_test.c:
* src/output-plugins/spo_csv.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/stream_ignore.c:
* src/sfutil/ipobj.c:
* src/sfutil/ipobj.h:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
* src/sfutil/sf_iph.c:
* src/sfutil/sf_ipvar.c:
* src/sfutil/sfrt.c:
* src/sfutil/sfrt.h:
* src/sfutil/sfrt_dir.c:
* src/sfutil/sfrt_dir.h:
* src/snort.c:
* src/target-based/sf_attribute_table.y:
* src/target-based/sftarget_reader.c:
* src/target-based/sftarget_reader.h:
* src/win32/WIN32-Prj/sf_engine.dsp:
IPv6 updates and support for sfportscan, ftp_telnet, frag3 and dns
preprocessors and adaptive IPS.
* etc/gen-msg.map:
* src/decode.h:
* src/detect.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-preprocessors/dcerpc2/dce2_cl.c:
* src/dynamic-preprocessors/dcerpc2/dce2_cl.h:
* src/dynamic-preprocessors/dcerpc2/dce2_co.c:
* src/dynamic-preprocessors/dcerpc2/dce2_co.h:
* src/dynamic-preprocessors/dcerpc2/dce2_config.c:
* src/dynamic-preprocessors/dcerpc2/dce2_config.h:
* src/dynamic-preprocessors/dcerpc2/dce2_debug.c:
* src/dynamic-preprocessors/dcerpc2/dce2_debug.h:
* src/dynamic-preprocessors/dcerpc2/dce2_event.c:
* src/dynamic-preprocessors/dcerpc2/dce2_event.h:
* src/dynamic-preprocessors/dcerpc2/dce2_http.c:
* src/dynamic-preprocessors/dcerpc2/dce2_http.h:
* src/dynamic-preprocessors/dcerpc2/dce2_list.c:
* src/dynamic-preprocessors/dcerpc2/dce2_list.h:
* src/dynamic-preprocessors/dcerpc2/dce2_memory.c:
* src/dynamic-preprocessors/dcerpc2/dce2_memory.h:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.c:
* src/dynamic-preprocessors/dcerpc2/dce2_roptions.h:
* src/dynamic-preprocessors/dcerpc2/dce2_session.h:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
* src/dynamic-preprocessors/dcerpc2/dce2_smb.h:
* src/dynamic-preprocessors/dcerpc2/dce2_stats.c:
* src/dynamic-preprocessors/dcerpc2/dce2_stats.h:
* src/dynamic-preprocessors/dcerpc2/dce2_tcp.c:
* src/dynamic-preprocessors/dcerpc2/dce2_tcp.h:
* src/dynamic-preprocessors/dcerpc2/dce2_udp.c:
* src/dynamic-preprocessors/dcerpc2/dce2_udp.h:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.c:
* src/dynamic-preprocessors/dcerpc2/dce2_utils.h:
* src/dynamic-preprocessors/dcerpc2/includes/dcerpc.h:
* src/dynamic-preprocessors/dcerpc2/includes/smb.h:
* src/dynamic-preprocessors/dcerpc2/Makefile.am:
* src/dynamic-preprocessors/dcerpc2/sf_dce2.dsp:
* src/dynamic-preprocessors/dcerpc2/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.c:
* src/dynamic-preprocessors/dcerpc2/snort_dce2.h:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.c:
* src/dynamic-preprocessors/dcerpc2/spp_dce2.h:
* src/dynamic-preprocessors/Makefile.am:
* src/generators.h:
* src/output-plugins/spo_alert_fast.c:
* src/preprocessors/snort_httpinspect.c:
* src/sf_types.h:
* src/sfutil/sfrt.c:
* src/sfutil/sfrt.h:
* src/util.c:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
Addition of dcerpc2 preprocessor. Addition of new rule options
supported by preprocessor.
* src/detect.c:
* src/detect.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/fpdetect.c:
* src/parser.c:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/target-based/sftarget_protocol_reference.c:
* src/target-based/sftarget_protocol_reference.h:
Add adaptive support for http_inspect, rpc, smtp, dcerpc, dcerpc2, dns,
ftp_telnet, ssh and ssl preprocessors.
* configure.in:
* src/detect.c:
* src/detection-plugins/detection_options.c:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1.h:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_check.h:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_byte_jump.h:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_clientserver.h:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_cvs.h:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_dsize_check.h:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_ftpbounce.h:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_code_check.h:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_id_check.h:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_seq_check.h:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_icmp_type_check.h:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_fragbits.h:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_id_check.h:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_ipoption_check.h:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_proto.h:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_same_check.h:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_ip_tos_check.h:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_isdataat.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_pcre.h:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_react.h:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond2.h:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond.h:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_rpc_check.h:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_session.h:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_ack_check.h:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_flag_check.h:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_seq_check.h:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_tcp_win_check.h:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_ttl_check.h:
* src/detection-plugins/sp_urilen_check.c:
* src/detection-plugins/sp_urilen_check.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/libs/sfdynamic_preproc_libs.dsp:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ssl/sf_ssl.dsp:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser.c:
* src/pcrm.c:
* src/pcrm.h:
* src/plugbase.c:
* src/ppm.c:
* src/ppm.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_frag3.h:
* src/preprocessors/str_search.c:
* src/profiler.c:
* src/profiler.h:
* src/rules.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/snort.c:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
Harden rule option tree code.
* configure.in:
* doc/Makefile.am:
* doc/snort_manual.tex:
* doc/README.sfportscan:
* src/detect.c:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_flowbits.c:
* src/fatal.h:
* src/generators.h:
* src/Makefile.am:
* src/parser.c:
* src/plugbase.c:
* src/preprocessors/flow/common_defs.h (removed):
* src/preprocessors/flow/flow.c (removed):
* src/preprocessors/flow/flow_cache.c (removed):
* src/preprocessors/flow/flow_cache.h (removed):
* src/preprocessors/flow/flow_callback.c (removed):
* src/preprocessors/flow/flow_callback.h (removed):
* src/preprocessors/flow/flow_class.c (removed):
* src/preprocessors/flow/flow_class.h (removed):
* src/preprocessors/flow/flow_config.h (removed):
* src/preprocessors/flow/flow_error.h (removed):
* src/preprocessors/flow/flow.h (removed):
* src/preprocessors/flow/flow_hash.c (removed):
* src/preprocessors/flow/flow_hash.h (removed):
* src/preprocessors/flow/flow_print.c (removed):
* src/preprocessors/flow/flow_print.h (removed):
* src/preprocessors/flow/flow_stat.c (removed):
* src/preprocessors/flow/flow_stat.h (removed):
* src/preprocessors/flow/int-snort (removed):
* src/preprocessors/flow/Makefile.am (removed):
* src/preprocessors/flow/portscan (removed):
* src/preprocessors/Makefile.am:
* src/preprocessors/portscan.c (removed):
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_stream4_session.c (removed):
* src/preprocessors/snort_stream4_session.h (removed):
* src/preprocessors/snort_stream4_udp.c (removed):
* src/preprocessors/snort_stream4_udp.h (removed):
* src/preprocessors/spp_flow.c (removed):
* src/preprocessors/spp_flow.h (removed):
* src/preprocessors/spp_stream4.c (removed):
* src/preprocessors/spp_stream4.h (removed):
* src/preprocessors/stream.h (removed):
* src/preprocids.h:
* src/snort.c:
* src/win32/WIN32-Prj/snort.dsp:
Removal of stream4 and flow preprocessors from code base.
* src/tag.c:
* src/tag.h:
* src/ubi_BinTree.c (removed):
* src/ubi_BinTree.h (removed):
* src/ubi_SplayTree.c (removed):
* src/ubi_SplayTree.h (removed):
Tagging now uses a hash table instead of a splay tree for data
storage.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/plugbase.c:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
Support rules with content rule options that are only not contents.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_urilen_check.c:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/plugbase.c:
* src/plugbase.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Add override keyword support. Argument to a rule option can be
overriden and processed elsewhere. Added for support of new byte_test
and byte_jump rule option argument "dce".
* src/detection-plugins/detection_options.c:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
Add hash and compare functions for preprocessors to rule option tree.
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_pattern_match.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_httpinspect.h:
Make sure Stream5 is enabled when parsing most arguments to flow rule
option. Make sure http_inspect is enabled when parsing uricontent or http
content modifiers.
* src/detection-plugins/sp_clientserver.c:
Added no_frag and only_frag arguments to flow rule option.
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
Added dynamic callbacks for logging and resetting event queue.
* doc/README.stream5:
* doc/snort_manual.tex:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_httpinspect.h:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
Port and service based filtering to improve performance. Stream5 will
ignore traffic (if it is configured to do so) for which there are no
rules or preprocessors configured to look at this traffic.
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.h:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
ftp_telnet_protocol server configurations now support multiple IP
addresses and netmasks.
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_ui_server_lookup.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_httpinspect.c:
http_inspect preprocessor server configurations now support multiple IP
addresses and netmasks.
* doc/README.http_inspect:
* doc/snort_manual.tex:
* src/generators.h:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/snort_httpinspect.c:
Add a "max_headers" and "max_header_length" options to http_inspect
server configuration.
* src/preprocessors/HttpInspect/client/hi_client.c:
Fix to correctly identify end of http client body request.
* src/profiler.c:
* src/profiler.h:
* src/ppm.c:
* src/ppm.h:
Update to handle rule latency threhsolding with rule option tree.
* doc/README.ftptelnet:
* doc/snort_manual.tex:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Added "ignore_data_chan" option to ftp_telnet preprocessor to deprecate
confusing "data_chan" option.
* src/preprocessors/spp_stream5.c:
Fix to alert on dropped packet in midstream session.
* doc/CREDITS:
* doc/snort_manual.tex:
Update for new members of Snort team - Dilbagh Chahal and Ryan Jordan.
* etc/snort.conf:
Add "trustservers" do default ssl preprocessor configuration.
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Includes/WinPCAP/pcap-stdinc.h:
Updates to compile in Visual Studio 2008.
2008-09-15 Todd Wease <twease@sourcefire.com>
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/fpcreate.c:
* src/generators.h:
* src/ppm.c:
* src/ppm.h:
* src/profiler.c:
* src/rules.h:
* etc/gen-msg.map:
Update rule latency thresholding.
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_stream4.c:
* doc/README.flow:
* doc/README.flow-portscan:
* doc/README.stream4:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
The flow and stream4 preprocessors will be deprecated in a
future release.
2008-08-12 Todd Wease <twease@sourcefire.com>
* src/bounds.h:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* doc/README.dcerpc:
* doc/snort_manual.tex:
DCE/RPC preprocessor changes to handle abnormal TCP segmentation.
Added option to reassemble fragmentation buffers early. Updated
documentation.
* src/decode.c:
* src/decode.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
Fixed handling of MPLS label in checking Stream session uniqueness
when IPv4 packets are received and build is IPv6.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
MPLS stats are now printed, whether compiled for MPLS or not.
* src/detection-plugins/sp_pattern_match.c:
Fixed checksum calculation for IPv6 case for 'replace' rule option.
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Added check to not register so rule if it has already been registered.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
Added better handling of SMTP data header options to avoid false
positives occuring with data header buffer overlflow smtp preprocessor
event. Thanks to rmkml for bringing this to our attention.
* src/event_queue.c:
* src/signature.c:
Added checks to only allow one rule without an SID defined. Thanks to
Christian Mock for bringing this to our attention.
* src/parser.c:
* doc/README.PerfProfiling:
Updated performance profiling README to document new 'filename' option.
Fixed handling of 'filename' option in the rule profiling configuration.
* src/plugbase.c:
Changed plugins startup output to use log function instead of printf().
* src/preprocessors/HttpInspect/client/hi_client.c:
Fixes to avoid false positives on http_inspect preprocessor events for
bare byte encoding and oversize request-uri directory.
* doc/CREDITS:
Credits updates.
* doc/README.decode:
* doc/snort_manual.tex:
Fixed some spelling errors and confusing syntax. Thanks to Hari Sekhon
for pointing many of these out.
2008-07-18 Todd Wease <twease@sourcefire.com>
* src/detection-plugins/sp_dsize_check.c:
Fix issue with rule option "dsize" range check.
Thanks to Bhadresh Patel for bringing this to our attention.
* src/detection-plugins/sp_pcre.c:
Fix issue with evaluating PCRE rule options with /U modifier that
are followed by a relative content rule option.
Many thanks to Bamm Visscher for doing the research, finding the
offending rule and producing the test case necessary to track
down and fix the issue. Also thanks to others on the snort users
list - craig for starting a thread and JJ Cummings for confirming
it was not a logging issue.
2008-07-11 Todd Wease <twease@sourcefire.com>
* src/byte_extract.c:
Added byte test for 3 bytes.
* src/debug.c:
* src/debug.h:
* src/dynamic-preprocessors/libs/ssl.c:
* src/dynamic-preprocessors/libs/ssl.h:
* src/dynamic-preprocessors/ssl/sf_preproc_info.h:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/dynamic-preprocessors/ssl/spp_ssl.h:
Updates to SSL preprocessor to make it work with stream
reassembly, multiple handshake records and disabling detection.
* src/decode.c:
* src/preprocessors/spp_frag3.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Fix MPLS fragmentation reassembly issue.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_urilen_check.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/sfutil/sfhashfcn.h:
Move hash rot macros.
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/libs/sfdynamic_preproc_libs.dsp:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ssl/sf_ssl.dsp:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
Update Win32 project files to include MPLS.
* src/util.c:
For read mode, reset errno after gathering pcaps from
a directory.
* etc/sid-msg.map:
Updates.
2008-06-16 Todd Wease <twease@sourcefire.com>
* src/cpuclock.h:
Fixed compilation issue on HPUX machines related to performance
profiling and the assembly instructions used for getting cpu
clock ticks. Thanks to Pavan Raj and Jaipal Reddy for pointing
this out.
* src/decode.c:
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/generators.h:
* src/log.c:
* src/log.h:
* src/output-plugins/spo_unified2.c:
* src/parser.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/stream5_common.h:
* src/snort.c:
* src/snort.h:
* src/util.c:
* configure.in:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/README.mpls:
Added MPLS decoding support.
* src/decode.c:
* src/generators.h:
* etc/gen-msg.map:
Fixed alert message for IP datagram being greater than captured
length.
* src/decode.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_pcre.c:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/fpcreate.c:
* src/fpdetect.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/include/hi_client.h:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/server/hi_server.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_httpinspect.c:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/util.c:
* src/util.h:
* doc/README.http_inspect:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
New Feature for HTTP Inspect to split requests into 5 components -
Method, URI, Header (non-cookie), Cookies, Body. Added HTTP server
specific configurations to normalize HTTP header and/or cookie buffers.
Provided content and PCRE modifiers to allow searches within one or
more of those individual buffers. Added content modifier to allow rule
writer to specify content to be used for fast pattern matcher.
Updated dynamic rule API to allow searches within the new buffers.
* src/detection-plugins/sp_flowbits.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Provided command line switch to bail on rule parsing failure.
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/preprocessors/spp_httpinspect.c:
Fixed some configuration error checking.
* src/dynamic-preprocessors/ssl/spp_ssl.c:
Fixed false negative when using 'trustservers' option.
* src/output-plugins/spo_database.c:
Fixed issue where when using the 'ruletype' keyword with database
output, events were getting logged using both the default log method
and the ruletype log method. Thanks to Agent Smith for pointing this
out.
* src/output-plugins/spo_unified2.c:
Fixed issue in unified2 code where the timestamp of an event on
a stream reassembled packet was using the last stream segment
instead of the first.
* src/parser.c:
* src/profiler.c:
* src/snort.h:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Provided option to rule and preprocessor profiling configurations to
log to file instead of syslog.
* src/preprocessors/perf-flow.c:
Packet size distribution reported by snort flow stats do not count
reassmbled packets anymore.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update Stream5 to flush bytes up to ACK if ACK falls in the middle
of a segment instead of including entire segment in reassembled
packet.
* src/snort.c:
Reset packet processor when reading multiple pcaps and pcap reset
option is used.
* doc/README.decode:
Update GRE decoder alerts.
2008-06-04 Todd Wease <twease@sourcefire.com>
* src/fpdetect.c:
* src/detection-plugins/detection_options.c:
Fix issue where pass rules weren't getting precedence
over alert rules. Thanks to Jason Haar for pointing
this out.
* src/snort.c:
Reset data link for new pcap when reading multiple pcaps.
* etc/gen-msg.map:
Add IPv6 decoder events.
2008-05-07 Todd Wease <twease@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
Fix issue in ICMP6 code that made an incorrect calculation
when the ICMP6 type was an echo or an echo reply.
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/profiler.c:
* src/profiler.h:
Pattern Matcher Caching & Rule Processing Performance Improvements.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fix memory leak caused by missed or dropped traffic.
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
Remove redundant macro.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/README.decoder_preproc_rules:
Add documentation on the use of decoder and preprocessor rules.
2008-04-30 Todd Wease <twease@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/fpcreate.c:
* src/fpdetect.c:
* src/profiler.c:
Process IP rules by fast pattern searching payload of outer IP,
then evaluating matching rules against IP header & payload of
inner & outer IP. This is to address false positives and
false negatives in IP rules.
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_cvs.h:
* src/preprocessors/spp_frag3.c:
Fix typos. Thanks to rmkml for pointing this out.
* src/ipv6_port.h:
* src/log.c:
* src/log_text.c:
Update log to correct datagram length macro for IPv6.
* src/detection-plugins/sp_pcre.c:
* src/dynamic-plugins/sf_dynamic_define.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
Expose a pcre wrapper function to detection library rules via plugin api.
2008-04-14 Todd Wease <twease@sourcefire.com>
* configure.in:
* src/detect.c:
* src/detect.h:
* src/detection-plugins/Makefile.am:
* src/detection-plugins/detection_options.c:
* src/detection-plugins/detection_options.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1.h:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_check.h:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_byte_jump.h:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_clientserver.h:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_cvs.h:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_dsize_check.h:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_ftpbounce.h:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_code_check.h:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_id_check.h:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_seq_check.h:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_icmp_type_check.h:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_fragbits.h:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_id_check.h:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_ipoption_check.h:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_proto.h:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_same_check.h:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_ip_tos_check.h:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_isdataat.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_pcre.h:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_react.h:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond2.h:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond.h:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_rpc_check.h:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_session.h:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_ack_check.h:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_flag_check.h:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_seq_check.h:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_tcp_win_check.h:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_ttl_check.h:
* src/detection-plugins/sp_urilen_check.c:
* src/detection-plugins/sp_urilen_check.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/event_queue.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser.c:
* src/pcrm.h:
* src/plugbase.c:
* src/plugbase.h:
* src/ppm.c:
* src/ppm.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_frag3.h:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
* src/rules.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
Pattern Matcher Caching & Rule Processing Performance Improvements.
* configure.in:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/event_wrapper.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser/IpAddrSet.c:
* src/parser.c:
* src/parser.h:
* src/pcrm.c:
* src/plugbase.c:
* src/plugbase.h:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/stream_ignore.h:
* src/profiler.c:
* src/sfthreshold.c:
* src/sfthreshold.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/sfutil/sfportobject.c:
* src/sfutil/sfportobject.h:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
* src/sfutil/sf_vartable.c:
* src/sfutil/sf_vartable.h:
* src/signature.c:
* src/signature.h:
* src/snort.c:
* src/spo_plugbase.h:
* src/target-based/sftarget_protocol_reference.c:
* src/target-based/sftarget_protocol_reference.h:
* src/target-based/sftarget_reader.c:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
Added configuration option to clean up all initialization
memory at shutdown.
* src/decode.h:
* src/preprocessors/snort_httpinspect.c:
Add counter for HTTP pipeline requests.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Fixed issue where some FTP traffic was being labeled as
encrypted when it was not.
* src/output-plugins/spo_database.c:
Free SQL statement. Thanks to Carter Browne for pointing this out.
* snort.8:
* doc/snort_manual.tex:
* src/snort.c:
* src/util.c:
Update to indicate --pid-path specifies the directory for the
PID file. Thanks to Lee Clemens for pointing out the ambiguity.
* src/snort.c:
For --pcap-show option, print to stdout instead of stderr.
* doc/snort_manual.tex:
* src/snort.h:
Set minimum max attribute hosts to 32 instead of 8192.
* src/target-based/sf_attribute_table_parser.l:
Allow ! character in attribute table grammar for string values.
* src/snort.c:
* src/util.c:
Print log message with BPF filter passed to Snort.
* src/sfutil/mpse.c:
Fix issue with default case (which isn't ever hit) of pattern
matcher performance stats not being calculated correctly.
Thanks to Wang Zhen for pointing this out.
* src/parser.c:
Fixed string comparison for "portvar" and "ipvar" to use
correct string length. Thanks to Eric Duda for pointing
this out.
* doc/INSTALL:
Update MAC OSX install notes.
* doc/README.arpspoof:
Update arpspoof documentation.
* etc/snort.conf:
Update frag3_global configuration example.
2008-04-03 Steven Sturges <ssturges@sourcefire.com>
* rpm/snort.spec:
Add ssl preprocessor. Thanks fo Andrew Pendray for noticing.
2008-03-12 Todd Wease <twease@sourcefire.com>
* src/decode.c:
* doc/README.gre:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/Makefile.am:
Disable PPP decoding if architecture requires word alignment,
e.g. SPARC machines.
* src/dynamic-preprocessors/dcerpc/smb_structs.h:
Fix endian issue when determining if SMB is using unicode strings.
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
Fix issue where FTPTelnet sometimes determines incorrect direction
with midstream session.
* src/generators.h:
* src/preprocessors/spp_frag3.c:
* doc/README.frag3:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* etc/gen-msg.map:
Update frag3 to remove enforcement of ttl_limit. Add preprocessor
alert for min_ttl anomaly.
* doc/README.ipip:
* doc/Makefile.am:
Added README doc for IP in IP decoding.
* doc/README.stream4:
* etc/gen-msg.map:
Fixed some typos. Thanks to rmkml for pointing this out.
2008-03-06 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* doc/README.ssl:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Improve handling for change cipher records and rule options.
Indicate that trustservers option only makes sense when
noinspect_encrypted is used.
2008-03-05 Steven Sturges <ssturges@sourcefire.com>
* doc/README.variables:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Fix a few misspellings. Thanks to Markus Lude for letting us know.
2008-03-04 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* src/win32/WIN32-Prj/snort_installer.nsi:
* rpm/snort.spec:
* src/win32/WIN32-Includes/config.h:
2.8.1 RC prep
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/README.arpspoof (added):
* doc/README.pcap_readmode (added):
* snort.8:
Document new multiple pcap command line options and ARP Spoof
preprocessor configuration.
* doc/README.dcerpc:
* doc/README.http_inspect:
* doc/README.stream4:
Update to include information about alerts generated from various
preprocessors.
* src/decode.c:
* src/log_text.c:
* src/parser.c:
* src/profiler.c:
* src/detection-plugins/sp_cvs.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/dynamic-preprocessors/libs/sfcommon.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/sfutil/bitop_funcs.h:
* src/sfutil/sf_iph.c:
* src/sfutil/sfportobject.c:
* src/target-based/sftarget_reader.c:
* src/win32/WIN32-Includes/rpc/types.h:
Win32 compiler warning cleanup.
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/win32/WIN32-Prj/sf_engine.dsp:
Reorganize to provide better compatibility with shared libraries.
* src/detect.c:
* src/detect.h:
* src/plugbase.c:
* src/plugbase.h:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/output-plugins/spo_alert_fast.c:
* src/snort.c:
* src/snort.h:
Update to logging of DCE/RPC defragmented packets when using
console/fast output modes.
* src/preprocids.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
Add ability for dynamic rules to store and retrieve data on stream
session.
* src/detection-plugins/sp_pcre.c:
Fix compile warning with older versions of PCRE library.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Update default configuration for FTP's STRU command.
2008-01-27 Todd Wease <twease@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/generators.h:
* src/preprocessors/spp_frag3.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
* etc/gen-msg.map:
Added IP in IP encapsulation support for both IPv4 and IPv6.
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/snort.c:
Enforce stricter versioning when loading shared objects. Vesions
of shared libraries - engine and dynamic preprocessors - will not
load if from an older version of Snort.
* src/dynamic-preprocessors/ssl/spp_ssl.c:
Fatal error if commas are not used in SSL dynamic preprocessor
configuration. Thanks to Chris Rohlf for bringing this to our
attention.
* src/generators.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* etc/gen-msg.map:
Update Stream5 to alert on data without TCP flags when non-linux
policy. Thanks to Chris Eagle, Naval Postgraduate School, for
bringing this to our attention.
* src/parser.c:
Generate a parsing error if an empty IP list is used (this is
equivalent to !any). Thanks to Chris Rohlf for bring this to
our attention.
* src/parser.c:
* src/sfutil/sfportobject.c:
* src/sfutil/sfportobject.h:
Various port object changes.
Update to handle open port ranges (ie, 1024:) and print error
lines from config file parsing.
Added support for handling embedded lists with negations.
Use more compatible strrchr() instead of rindex().
Add stricter configuration checks - thanks to Rmkml for bringing
this to our attention.
* src/target-based/sftarget_reader.c:
Use inet_pton() instead of inet_aton.
* src/target-based/sftarget_reader.c:
* src/util.c:
Set uid and gid of target-based thread if not already set.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update to describe new pcre match limit options.
* src/win32/WIN32-Prj/snort.dsp:
Remove system dependent Oracle paths from project.
* src/fpcreate.c:
Correctly set the max_size when a longer pattern.
* src/profiler.c:
Add Percent of Total column to output.
* src/sfutil/sf_textlog.c:
Added format string to prevent messages with certain format
from crashing Snort.
2007-12-10 Todd Wease <twease@sourcefire.com>
* configure.in:
Require PCRE version 6 or better
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/smtp/smtp_log.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/stream_api.h:
Reduce command line and response line overflow false positives
in SMTP preprocessor when Snort is missing packets. Only alert
on one unique SMTP event per session.
* configure.in:
Add check for Phil Woods pcap so that pcap stats are computed
correctly. Thanks to John Hally for bringing this to our
attention.
* doc/INSTALL:
Update for building on Mac OSX 10.5. Thanks to Martin Fong
for bringing this to our attention.
* doc/README.asn1:
* doc/README.dcerpc:
* doc/README.dns:
* doc/README.flow-portscan:
* doc/README.frag3:
* doc/README.ssh:
* doc/README.stream5:
Update to include information about alerts generated from various
preprocessors.
* doc/snort_manual.pdf:
* doc/snort_manual.tex:
Add info on stream_size option added with Stream5.
* etc/gen-msg.map:
Update to include GRE alerts
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
Allow specifying metadata within a shared library rule.
* src/decode.c:
Update for decoding IP6 header lengths.
* src/detect.c:
* src/parser.c:
Correctly handle rule-type keyword. Thanks to Tung Tran for bringing
this to our attention.
* src/log_text.c:
* src/log.c:
Fix issue with printing IPv6 addresses.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Update default configuration to allow optional string to STRU command.
* src/dynamic-preprocessors/libs/sfparser.c:
* src/dynamic-preprocessors/libs/ssl.c:
* src/dynamic-preprocessors/libs/ssl.h:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
Updates to better handle SSLv2 recognition.
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/stream.h:
Fix misaligned structures for Sparc 64bit OpenBSD. Thanks to Markus Lude
for helping us track down the problem.
* src/preprocessors/spp_stream4.c:
Warn if configured with stream4 & target-based attributes.
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
* src/sfutil/sf_iph.c:
* src/sfutil/sf_ipvar.c:
Code cleanup for IPv6 related changes.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Handle additional cases of multiple sequences of TCP SYN packets
on a session that has previously been reset.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Add checks for missing packets in reassembly.
* src/sfutil/sfportobject.c:
* src/sfutil/sfxhash.c:
Code cleanup.
* src/target-based/sf_attribute_table_parser.l:
* src/target-based/sftarget_reader.c:
Better handling for starting attribute reload thread
and logging parsing errors.
* src/fpcreate.c:
* src/fpdetect.c:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_ipoption_check.c:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_urilen_check.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Added performance profiling stats for rule option evaluation. Add
limits to pcre matching that could affect performance.
2007-11-12 Todd Wease <twease@sourcefire.com>
* src/byte_extract.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
Allow byte_jump 'string' option to support variable-length
numeric data.
* src/cpuclock.h:
* configure.in:
Add support for rule and preprocessor profiling times for
Sparc v9 processors.
* src/decode.h:
* src/decode.c:
* doc/README.gre:
* src/generators.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/snort.h:
* src/util.c:
* src/util.h:
* configure.in:
Update GRE decoder to support PPTP GRE v.1 header. Add new
GRE decoder alerts and README. Integrate with IPv6 codebase.
* src/decode.c:
* src/decode.h:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
Update decoder to work will all 3 versions of pflog files.
Thanks to Ronaldo Maia for reporting this issue.
* src/parser.c:
* src/parser.h:
* src/snort.c:
* src/snort.h:
* src/plugbase.c:
* src/plugbase.h:
* src/util.c:
* src/util.h:
* src/decode.c:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/mempool.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf.h:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/profiler.c:
* src/profiler.h:
* src/sfthreshold.c:
* src/sfthreshold.h:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
* src/tag.c:
* src/tag.h:
Snort can now read multiple pcaps on the command line. The
'-r' flag can be given multiple times, as well as options for
reading a list of pcaps on the command line, a file containing
pcaps to read and/or a directory to recurse through gathering
pcaps. Multiple filters can be used and an option to reset Snort
to a post initialization state for each pcap read can be given.
* src/detect.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/parser.c:
* src/parser.h:
* src/sfutil/sfportobject.c:
* src/sfutil/sfportobject.h:
* src/sfutil/sfrim.h:
Portlists code consolidation and general cleanup.
* src/detect.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_respond.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.h:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/fpdetect.c:
* src/ipv6_port.h:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_unified2.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_ui_server_lookup.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream.h:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/stream_ignore.h:
* src/sfthreshold.c:
* src/sfthreshold.h:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_ip.h:
* src/sfutil/sf_ipvar.c:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
* src/tag.c:
IPv6 data type name changes to avoid library namespace conflicts.
* src/detection-plugins/sp_pattern_match.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/preprocessors/snort_stream4_udp.c:
* src/rules.h:
* src/sf_sdlist.c:
* src/sf_types.h:
Fix compiler warnings.
* src/detection-plugins/sp_pcre.c:
* src/fpdetect.c:
Fixed issue where some rules will continue to match on a Uri, even
after the first packet.
* src/dynamic-plugins/Makefile.am:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/fpcreate.c:
Enabled target-based code to properly assess dynamic rule flow.
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
Update Win32 project files to include target-based and GRE defines.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Allow white space prior to FTP command.
* src/preprocids.h:
* doc/README.ssl:
* doc/snort_manual.tex:
* etc/snort.conf:
* configure.in:
* src/win32/WIN32-Prj/snort.dsw:
* src/dynamic-preprocessors/ssl/Makefile.am:
* src/dynamic-preprocessors/ssl/sf_preproc_info.h:
* src/dynamic-preprocessors/ssl/sf_ssl.dsp:
* src/dynamic-preprocessors/ssl/spp_ssl.c:
* src/dynamic-preprocessors/ssl/spp_ssl.h:
* src/win32/WIN32-Includes/config.h:
Added SSL preprocessor.
* src/ipv6_port.h:
Update IP_CLEAR to clear all fields. Update IP_COPY_VALUE to copy each
field individually.
* src/log.c:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_alert_full.c:
* src/log_text.h:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/win32/WIN32-Prj/snort.dsp:
* src/log_text.c:
* src/log_text.h:
* src/sfutil/sf_textlog.c:
* src/sfutil/sf_textlog.h:
Added rollover of logs upon reaching configured limit - applies to
alert_full, alert_fast, log_tcpdump, alert_csv.
* src/log.c:
Added IP obfuscation for IPv6 addresses.
* src/plugbase.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* doc/README.stream4:
* doc/README.stream5:
* doc/snort_manual.tex:
* etc/snort.conf:
* src/win32/WIN32-Prj/snort.dsp:
* src/detection-plugins/sp_cvs.c:
* src/detection-plugins/sp_cvs.h:
CVS detection plugin. Currently only looks for an invalid entry. Ports
514 and 2401 added to default ports for stream reassembly.
* src/ppm.c:
* src/ppm.h:
* src/profiler.c:
* doc/snort_manual.tex:
Fix microseconds calculations. Add ability to use ppm with readback mode.
Add documentation to Snort Manual.
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/snort_httpinspect.c:
* doc/README.http_inspect:
* doc/snort_manual.tex:
* etc/gen-msg.map:
Added overly long http header detection.
* src/preprocessors/perf-base.c:
* src/preprocessors/spp_perfmonitor.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
Fixed issue where packets were being blocked when Snort, running in inline
mode, was shutting down.
* src/preprocessors/spp_frag3.c:
Fixed issue where frag3 does not initialize correctly without any
configuration arguments. Thanks to Jason Carr for reporting this.
* src/preprocessors/spp_sfportscan.c:
Fix endian issue in sfportscan when IP addresses are logged.
Thanks to Jerry Litteer for reporting this.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/stream_api.h:
Added function to stream api for returning whether or not there are
missing segments. Only supported in stream5.
* src/preprocessors/str_search.c:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
Fixed issue where MPSE global counter was being reset by SMTP for each new
pattern matcher it created.
* src/sfutil/sf_vartable.c:
* src/sfutil/sf_vartable.h:
* doc/README.variables:
* doc/snort_manual.tex:
Fix segfault with duplicate variables in IPv6 code (enabled with
--enable-ipv6).
* src/target-based/Makefile.am:
* src/target-based/sf_attribute_table_parser.l:
* src/target-based/sftarget_reader.c:
Target based cleanup.
* src/util.c:
Fixed incorrect calculation of pcap recevied and dropped.
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
Added GRE and target-based to default Win32 build.
* doc/INSTALL:
* doc/README.ftptelnet:
* doc/README.http_inspect:
* doc/README.sfportscan:
* doc/README.stream4:
* doc/README.stream5:
* doc/README.variables:
* doc/snort_manual.tex:
Documentation updates. Thanks to Jeff Dell for pointing out
unified/unified2 errors in Snort Manual and inconsistencies in
sfportscan documentation.
2007-11-06 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Includes/pcre.h:
* src/win32/WIN32-Includes/pcreposix.h:
* src/win32/WIN32-Libraries/pcre.lib:
Update Win32 LibPCRE to version 7.4.
2007-11-05 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fix debug to correctly call inet_ntoa. Thanks to rmkml for reporting
the problem.
2007-09-07 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* src/build.h:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Prj/snort_installer.nsi:
* rpm/snort.spec:
* snort.8:
2.8.0 Final release prep. Update spec file to relocate installed
schemas and be more consistent with location of docs.
* src/parser.c:
Initialize rule_count variables. Thanks to Ken Steele for pointing
it out.
* src/signature.c:
* src/detection-plugins/sp_urilen_check.c:
* src/plugbase.c:
Fix typos in comments. Thanks rmkml for reviewing.
* src/tag.c:
* src/sfutil/sf_ip.c:
* src/sfutil/sf_iph.c:
Cleanup printing of IPv6 Addresses.
* src/detection-plugins/sp_pcre.c:
Initialize the found offset so that it contains correct value
when not found.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Improve checking on ftp commands from client.
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
Disable ftptelnet when compiled with IPv6.
* src/decode.c:
* src/snort.c:
After logging alert for BSD IPv6 Fragmentation vulnerability,
reset the pseudo packet that is used for logging purposes.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Memory cleanup of mime boundary regular expressions at Snort exit.
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/spp_sfportscan.c:
Memory cleanup of portscan hash table at Snort exit.
* src/output-plugins/spo_alert_prelude.c:
Correctly get IP Header length for logging.
* src/output-plugins/spo_alert_sf_socket.c:
Complete initialization after rules are read for specific GID/SID
alerts to log via sf socket.
* src/output-plugins/spo_unified2.c:
Code cleanup.
* src/preprocessors/spp_frag3.c:
Handle VLAN tags in fragmented traffic and include in rebuilt packets
if part of original traffic.
* src/preprocessors/spp_stream5.c:
Initialize memory for flowbits after all configuration is processed,
as config flowbitsize option might change default. Handle byte
alignment issue on Solaris with the flowbits data structure used
by Stream5. Thanks to JJC & Shane Castle for helping us troubleshoot
these issues and testing the patches.
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/stream_api.h:
Handle strange sequences of multiple TCP Reset packets on the same
session when some of those Resets also contain other flags. Thanks
to Siim Poder for reporting the problem.
2007-08-31 Steven Sturges <ssturges@sourcefire.com>
* src/parser.c:
Updates to prevent variable defintions of the same name as a portvar,
var and ipvar.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Fix copying of IP address from packet when determining client config
that resulted from IPv6 port.
* src/output-plugins/spo_alert_prelude.c:
Updates to write GID in alert data. Thanks to Yoann Vandoorselaere
for the update.
* src/output-plugins/spo_unified2.c:
Don't write tagged packets the same as unified. Packets that are
part of stream reassembly refer to the original event directly from
the packet record header.
* src/sfutil/sfportobject.c:
* src/sfutil/sfportobject.h:
Code cleanup and free data correctly on parsing errors.
2007-08-30 Steven Sturges <ssturges@sourcefire.com>
* doc/Makefile.am:
Include README.ipv6 & README.variables in the distribution tarball.
Thanks to Jeff Dell for pointing out that it was missing.
* RELEASE.NOTES:
Fix some spelling errors. Thanks rmkml for pointing it out.
* etc/snort.conf:
Update to use new portvar syntax for HTTP_PORTS, ORACLE_PORTS,
and SHELLCODE_PORTS. Thanks to rmkml for mentioning this.
2007-08-22 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* src/sf_types.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fixes to build 2.8.0 Beta on OpenBSD.
* doc/README.variables:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update PortList documentation.
2007-08-20 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* src/build.h:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Prj/snort_installer.nsi:
* rpm/snort.spec:
2.8.0 Beta prep.
* src/Makefile.am:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/event.h:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/output-plugins/spo_unified2.c:
* src/pcap_pkthdr32.h (added):
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/preprocessors/stream_api.h:
* src/snort_packet_header.h (removed):
* src/win32/WIN32-Prj/snort.dsp:
* src/snort.c:
Renamed snort_packet_header.h to pcap_pkthdr32.h and changed instances of
SnortPktHdr with pcap_pkthdr except in Event struct and unified code where
pcap_pkthdr32 is used because 32 bit timevals are required.
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/plugbase.c:
* src/plugbase.h:
* src/util.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_httpinspect.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/snort.c:
Added framework for preprocessors to print stats at exit or USR1 signal.
Preprocessors register a function that will print the stats and they will
be printed when DropStats() is called.
* src/detection-plugins/sp_pattern_match.c:
Commented out 'content-list' rule option code since it is
broken and there are no plans in the near future to fix it.
* src/checksum.h:
* src/decode.c:
* src/decode.h:
* src/detect.c:
* src/detect.h:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_ttl_check.c:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-preprocessors/dynamic_preprocessors.dsp:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dns/sf_dns.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ftptelnet/ftpp_include.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.h:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/fpdetect.c:
* src/fpdetect.h:
* src/generators.h:
* src/ipv6.c (removed):
* src/ipv6.h (removed):
* src/ipv6_port.h (added):
* src/log.c:
* src/Makefile.am:
* src/output-plugins/spo_alert_arubaaction.c:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_alert_full.c:
* src/output-plugins/spo_alert_prelude.c:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_alert_syslog.c:
* src/output-plugins/spo_alert_unixsock.c:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/output-plugins/spo_unified2.c:
* src/parser/IpAddrSet.c:
* src/parser/IpAddrSet.h:
* src/parser.c:
* src/parser.h:
* src/plugbase.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_ui_server_lookup.h:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream.h:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/stream_ignore.h:
* src/rules.h:
* src/sfthreshold.c:
* src/sfthreshold.h:
* src/sfutil/ipobj.c:
* src/sfutil/Makefile.am:
* src/sfutil/sf_ip.c (added):
* src/sfutil/sf_ip.h (added):
* src/sfutil/sf_iph.c (added):
* src/sfutil/sf_iph.h (added):
* src/sfutil/sf_ipvar.c (added):
* src/sfutil/sf_ipvar.h (added):
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
* src/sfutil/sf_vartable.c (added):
* src/sfutil/sf_vartable.h (added):
* src/snort.c:
* src/snort.h:
* src/tag.c:
* src/util.c:
* src/win32/WIN32-Prj/build_all.dsp:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
* src/win32/WIN32-Prj/snort_installer.nsi:
* doc/README.ipv6:
Added 1st phase of support for IPv6. Added support for ip variables
and improved IP address list handling. See README.ipv6 for specifics
on what portions of Snort fully support IPv6. Certain preprocessors
are not supported -- and cannot be turned on with an IPv6 enabled
snort.
* src/output-plugins/spo_unified.c:
Added configuration option to not append timestamps to unified log/alert
files.
* src/output-plugins/spo_unified2.c (added):
* src/output-plugins/spo_unified2.h (added):
* src/plugbase.c:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added unified2 logging/output format.
* src/cpuclock.h (added):
* src/detect.c:
* src/fpdetect.c:
* src/fpdetect.h:
* src/Makefile.am:
* src/parser.c:
* src/ppm.c (added):
* src/ppm.h (added):
* src/profiler.h:
* src/rules.h:
* src/snort.c:
Added support for packet performance monitoring. Allows Snort to be
configured to only spend a certain time period on a given packet
and/or rule and automatically suspend performance-intensive rules.
See README.ppm for details.
* src/bounds.h:
* src/byte_extract.c:
* src/byte_extract.h:
* src/debug.c:
* src/debug.h:
* src/decode.c:
* src/decode.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1_detect.c:
* src/detection-plugins/sp_asn1_detect.h:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_session.c:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/dynamic-plugins/sf_engine/bmh.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/ftp_client.h:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/log.c:
* src/log.h:
* src/mstring.c:
* src/mstring.h:
* src/preprocessors/HttpInspect/anomaly_detection/hi_ad.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/include/hi_ad.h:
* src/preprocessors/HttpInspect/include/hi_client.h:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_mi.h:
* src/preprocessors/HttpInspect/include/hi_norm.h:
* src/preprocessors/HttpInspect/include/hi_server.h:
* src/preprocessors/HttpInspect/include/hi_util.h:
* src/preprocessors/HttpInspect/mode_inspection/hi_mi.c:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/server/hi_server.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf-flow.h:
* src/preprocessors/perf.h:
* src/preprocessors/portscan.c:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/sfutil/bitop_funcs.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/snort.c:
Changed packet payload pointers to use const qualifier to
eliminate inadvertant writes to the packet buffer.
* src/preprocessors/HttpInspect/include/hi_util_kmap.h:
* src/preprocessors/HttpInspect/include/hi_util_xmalloc.h:
* src/preprocessors/HttpInspect/util/hi_util_kmap.c:
* src/preprocessors/spp_httpinspect.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
Cleanup memory at Snort exit from session & client configurations.
* src/debug.h:
* src/preprocids.h:
* src/generators.h:
Added defines for SKYPE.
* src/dynamic-plugins/sf_engine/sf_snort_plugin_rc4.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
Fixed a few typos in comments. Thanks to rmkml for pointing them out.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Cleaned up a few typos in various sections. Thanks to rmkml, Joel
Ebrahimi for pointing out the misspellings & errors.
* src/decode.h:
* src/detect.c:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_frag3.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/stream_api.h:
* src/rules.h:
* src/sfutil/Makefile.am:
* src/sfutil/sfrt.c (added):
* src/sfutil/sfrt.h (added):
* src/sfutil/sfrt_dir.c (added):
* src/sfutil/sfrt_dir.h (added):
* src/sfutil/sfrt_trie.h (added):
* src/signature.c:
* src/signature.h:
* src/snort.c:
* src/snort.h:
* src/target-based/Makefile.am (added):
* src/target-based/sf_attribute_table_parser.l (added):
* src/target-based/sf_attribute_table.y (added):
* src/target-based/sftarget_hostentry.c (added):
* src/target-based/sftarget_hostentry.h (added):
* src/target-based/sftarget_protocol_reference.c (added):
* src/target-based/sftarget_protocol_reference.h (added):
* src/target-based/sftarget_reader.c (added):
* src/target-based/sftarget_reader.h (added):
* src/util.c:
Added experimental support for Target-Based processing for Stream
reassembly, IP Frag reassembly, and rule processing. Enable via
--enable-targetbased option to configure. A thread is created to
reload the attribute table upon receipt of a signal 30.
* src/detect.c:
* src/detect.h:
* src/detection-plugins/sp_clientserver.c:
* src/detection-plugins/sp_clientserver.h:
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser.c:
* src/parser.h:
* src/pcrm.c:
* src/pcrm.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/rules.h:
* src/sfutil/sfportobject.c (added):
* src/sfutil/sfportobject.h (added):
* src/sfutil/sfrim.c (added):
* src/sfutil/sfrim.h (added):
* src/signature.c:
* src/signature.h:
* src/snort.c:
* src/util.c:
Added Port Lists & Port Range functionality and added port variable
handling.
* preproc_rules/preprocessor.rules:
* preproc_rules/decoder.rules:
* preproc_rules/Makefile.am:
* configure.in:
* etc/snort.conf:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_dsize_check.c:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_id_check.c:
* src/detection-plugins/sp_icmp_seq_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_ip_id_check.c:
* src/detection-plugins/sp_ip_optioncheck.c:
* src/detection-plugins/sp_ip_proto.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_ip_tos_check.c:
* src/detection-plugins/sp_isdataat.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
* src/detection-plugins/sp_rpc_check.c:
* src/detection-plugins/sp_session.c:
* src/detection-plugins/sp_tcp_ack_check.c:
* src/detection-plugins/sp_tcp_flag_check.c:
* src/detection-plugins/sp_tcp_seq_check.c:
* src/detection-plugins/sp_tcp_win_check.c:
* src/detection-plugins/sp_ttl_check.c:
* src/detection-plugins/sp_urilen_check.c:
* src/dynamic-plugins/sp_dynamic.c:
* src/event_queue.c:
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/parser.c:
* src/plugbase.c:
* src/plugbase.h:
Added support to provide action control (alert, drop, pass, etc)
over preprocessor and decoder generated events, as well as references
and classifications via a rule. These rules do not include IP
addresses as the individual preprocessor/decoder configuration
dictates the traffic to which an event applies. In conjunction
with this, certain post-processing rule options (tag, logto, etc)
may be added to those rules, while other options that relate to data
inspection (content, byte_test, etc) may not. Enable via
--enable-decoder-preprocessor-rules option to configure.
* src/dynamic-plugins/sf_dynamic_plugins.c:
Search for other shared library extensions on OpenBSD. Thanks to
Nikns Siankin for the request.
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-preprocessors/dcerpc/Makefile.am:
* src/dynamic-preprocessors/dns/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/ssh/Makefile.am:
Fixes to correct shared library extension on MAC OS.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/stream5_common.h:
* src/generators.h:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added basic TCP session hijacking detection. Detection based on MAC
address used during TCP 3-way handshake and MAC address in subsequent
packets.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* doc/README.stream5:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added stream_size rule option (only supported by Stream5).
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/generators.h:
Improved detection for encrypted ftp sessions, reducing false positives.
Added detection of subnegotiation begin commands without matching
subnegotiation end (evasion attempt).
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_config.h:
* src/dynamic-preprocessors/smtp/smtp_log.c:
* src/dynamic-preprocessors/smtp/smtp_log.h:
* src/dynamic-preprocessors/smtp/smtp_normalize.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.h:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/smtp/spp_smtp.h:
* doc/README.SMTP:
* etc/snort.conf:
* src/generators.h:
Rework much of preprocessor to improve searches, additional
vulnerability checks. Updates include changes to handle case
insensitive searches. Alert on header name length (Exim exploit) and
check for valid mime headers. Add port 587 (see RFC 2476) to
default ports. Improved normalization to separate commands and data.
Updates to config parsing and console startup output.
* src/parser.c:
Handle duplicate rules by using the newer revision or the earlier
appearing rule (if same revision).
* src/sf_types.h (added):
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/flow_cache.h:
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/flow/portscan/scoreboard.c:
* src/preprocessors/flow/portscan/server_stats.c:
* src/preprocessors/flow/portscan/unique_tracker.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf-event.c:
* src/preprocessors/perf-event.h:
* src/profiler.c:
* src/sfutil/util_math.c:
* src/sfutil/util_math.h:
* src/snort.h:
* src/snprintf.h:
* src/util.c:
* src/util.h:
* src/win32/WIN32-Includes/stdint.h:
* src/win32/WIN32-Includes/WinPCAP/time_calls.h:
Updated logging to print 64bit values on various platforms in a more
portable manner.
* configure.in:
* src/decode.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/spp_perfmonitor.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/util.h:
* src/win32/WIN32-Includes/config.h:
Fixed issue with various versions of pcap reporting received &
dropped stats differently. Pcap versions 0.9 & higher accumulate
stats, whereas earlier versions do not.
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/sfghash.c:
* src/sfutil/sfhashfcn.c:
* src/sfutil/sfhashfcn.h:
* src/sfutil/sfprimetable.c (added):
* src/sfutil/sfprimetable.h (added):
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
Improve performance of pattern match engines to not evaluate a rule
with a pattern that has already been seen and the rule already
processed. This changes takes into account if that rule fails because of
an unset flowbit (which may have been set by another rule). Changed hash
table hash functions to use power of two computations instead of prime
numbers.
* src/util.c:
Added PCRE library version information to Snort startup banner.
2007-07-27 Steven Sturges <ssturges@sourcefire.com>
* etc/snort.conf:
Turn off flow since Stream5 is now enabled by default.
* src/snort.c:
Fix printing of threshold counts until after all rules are read.
This issue did not affect thresholding, only display of thresholding.
Thanks to Jeffrey Denton for reporting the problem.
* src/sfutil/ipobj.c:
Fix free of invalid pointer when using a negated IP list.
This is used by sfportscan preprocessor configuration parsing.
Thanks to Anders Ostrem for reporting the problem.
* src/preprocessors/Stream5/snort_stream5_session.c:
Fixed issue when experimental ICMP tracking is used without using
the TCP or UDP session tracking. ICMP was attempting to lookup
TCP or UDP sessions from uninitialized session cache. Thanks to
Koji Shikata for reporting the problem.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fixed invalid session pointer when rule tries to use flowbits after
session ends. Thanks to rmkml for initially reporting the problem.
2007-07-06 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fixed potential invalid memory access when require 3whs option is used.
2007-06-28 Steven Sturges <ssturges@sourcefire.com>
* src/sfutil/acsmx2.c:
* src/sfutil/bnfa_search.c:
Revert previous changes as they resulted in some false negatives
with mixed case patterns and rules. Will address in a future release.
* src/detection-plugins/sp_react.c:
Fixed problem with segfault with flexresp. Thanks to Keith Pachulski
for reporting the issue.
2007-06-20 Steven Sturges <ssturges@sourcefire.com>
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx.h:
* src/sfutil/bnfa_search.c:
Performance improvement to track the last state of a pattern that
match, so if it hits that state again immediately, don't go
re-evaluate all of the same rules.
* src/decode.c:
* src/detect.c:
* src/snort.h:
* src/util.c:
Properly handle UDP checksum if checksum value is 0 in header (do not
calculate). Add stat that tracks number of failed checksums.
* src/detection-plugins/sp_pcre.c:
Add /P flag to PCRE detection to check HTTP inspect's normalized
client request body.
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-examples/Makefile.am:
Fix header file replication.
* src/output-plugins/spo_alert_prelude.c:
Update to write data at Snort exit. Thanks Yoann Vandoorselaere for
the patch.
* src/parser.c:
Update to max line length. Mark 'stateless' option to be deprecated,
use flow:stateless.
2007-06-19 Steven Sturges <ssturges@sourcefire.com>
* src/byte_extract.h:
* src/event_queue.h:
* src/event_wrapper.h:
* src/inline.h:
* src/ipv6.c:
* src/ipv6.h:
* src/packet_time.h:
* src/plugin_enum.h:
* src/preprocids.h:
* src/sfthreshold.h:
* src/snort_packet_header.h:
* src/detection-plugins/sp_asn1.h:
* src/detection-plugins/sp_asn1_detect.h:
* src/detection-plugins/sp_flowbits.h:
* src/detection-plugins/sp_ip_proto.c:
* src/dynamic-examples/Makefile.am:
* src/dynamic-examples/dynamic-preprocessor/sf_preproc_info.h:
* src/dynamic-examples/dynamic-preprocessor/spp_example.c:
* src/dynamic-examples/dynamic-rule/detection_lib_meta.h:
* src/dynamic-examples/dynamic-rule/rules.c:
* src/dynamic-examples/dynamic-rule/sid109.c:
* src/dynamic-examples/dynamic-rule/sid637.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.c:
* src/dynamic-preprocessors/ftptelnet/sf_preproc_info.h:
* src/dynamic-preprocessors/smtp/sf_preproc_info.h:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_httpinspect.h:
* src/preprocessors/snort_stream4_session.h:
* src/preprocessors/snort_stream4_udp.h:
* src/preprocessors/spp_flow.h:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_httpinspect.h:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_sfportscan.h:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
* src/preprocessors/stream.h:
* src/preprocessors/HttpInspect/anomaly_detection/hi_ad.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/include/hi_ad.h:
* src/preprocessors/HttpInspect/include/hi_client.h:
* src/preprocessors/HttpInspect/include/hi_client_norm.h:
* src/preprocessors/HttpInspect/include/hi_eo.h:
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
* src/preprocessors/HttpInspect/include/hi_eo_log.h:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_mi.h:
* src/preprocessors/HttpInspect/include/hi_norm.h:
* src/preprocessors/HttpInspect/include/hi_return_codes.h:
* src/preprocessors/HttpInspect/include/hi_server.h:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_ui_iis_unicode_map.h:
* src/preprocessors/HttpInspect/include/hi_ui_server_lookup.h:
* src/preprocessors/HttpInspect/include/hi_util.h:
* src/preprocessors/HttpInspect/include/hi_util_hbm.h:
* src/preprocessors/HttpInspect/include/hi_util_kmap.h:
* src/preprocessors/HttpInspect/include/hi_util_xmalloc.h:
* src/preprocessors/HttpInspect/mode_inspection/hi_mi.c:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/server/hi_server.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_iis_unicode_map.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/HttpInspect/utils/hi_util_hbm.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/HttpInspect/utils/hi_util_xmalloc.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
* src/preprocessors/flow/common_defs.h:
* src/preprocessors/flow/flow.c:
* src/preprocessors/flow/flow.h:
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/flow_cache.h:
* src/preprocessors/flow/flow_callback.c:
* src/preprocessors/flow/flow_callback.h:
* src/preprocessors/flow/flow_class.c:
* src/preprocessors/flow/flow_class.h:
* src/preprocessors/flow/flow_config.h:
* src/preprocessors/flow/flow_error.h:
* src/preprocessors/flow/flow_hash.c:
* src/preprocessors/flow/flow_hash.h:
* src/preprocessors/flow/flow_print.c:
* src/preprocessors/flow/flow_print.h:
* src/preprocessors/flow/flow_stat.c:
* src/preprocessors/flow/flow_stat.h:
* src/preprocessors/flow/int-snort/flow_packet.c:
* src/preprocessors/flow/int-snort/flow_packet.h:
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps.h:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/flow/portscan/flowps_snort.h:
* src/preprocessors/flow/portscan/scoreboard.c:
* src/preprocessors/flow/portscan/scoreboard.h:
* src/preprocessors/flow/portscan/server_stats.c:
* src/preprocessors/flow/portscan/server_stats.h:
* src/preprocessors/flow/portscan/unique_tracker.c:
* src/preprocessors/flow/portscan/unique_tracker.h:
* src/sfutil/acsmx2.h:
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/sfutil/ipobj.c:
* src/sfutil/ipobj.h:
* src/sfutil/sfeventq.c:
* src/sfutil/sfeventq.h:
* src/sfutil/sfghash.c:
* src/sfutil/sfghash.h:
* src/sfutil/sfhashfcn.c:
* src/sfutil/sfhashfcn.h:
* src/sfutil/sflsq.c:
* src/sfutil/sflsq.h:
* src/sfutil/sfmemcap.c:
* src/sfutil/sfmemcap.h:
* src/sfutil/sfsnprintfappend.c:
* src/sfutil/sfsnprintfappend.h:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
* src/sfutil/util_math.c:
* src/sfutil/util_math.h:
* src/sfutil/util_net.c:
* src/sfutil/util_net.h:
* src/sfutil/util_str.c:
* src/sfutil/util_str.h:
* src/win32/WIN32-Code/inet_aton.c:
* src/win32/WIN32-Code/name.h:
Update copyright dates & info and add GPL header.
2007-06-01 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Update to hourly timestats from Bill Parker.
2007-06-01 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
Fix configuration parsing to validate parameters for memcap,
max_frags, prealloc_frags. Thanks to Joel Ebrahimi for pointing
out the issue.
2007-05-30 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Cleanup xlink2state processing and remove potential read beyond
end of packet.
* src/preprocessors/stream_api.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update handling of timed out session cleanup when the 'same' (IPs/ports)
session is picked up midstream.
2007-05-23 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/README.stream5:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/stream5_common.h:
Update Stream5 to use 65535 << 14 as max allowable value for
the 'max_window' option.
* src/decode.c:
* src/detect.c:
* src/snort.c:
* src/snort.h:
When checking for IPv6 BSD frag vulnerability, use a pseudo packet
with false IPv4 headers for logging purposes rather than writing
the IPv4 header within the original packet buffer.
* src/preprocessors/spp_frag3.c:
Update to not change original packet buffer when rebuilding fragments
with IP options.
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_rpc_decode.h:
Update to use the altdecode buffer for normalization.
2007-05-22 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update for 2.7.0.
* configure.in:
* src/debug.c:
* src/debug.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/win32/WIN32-Includes/config.h:
Check for wchar.h and don't try to use it if not present.
Fixes builds on OpenBSD 3.5 and others.
* src/dynamic-plugins/sf_dynamic_detection.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ppftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/event_queue.c:
* src/event_queue.h:
* src/ipv6.c:
* src/ipv6.h:
* src/mempool.c:
* src/parser.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/sfutil/sfeventq.c:
* src/sfutil/sfeventq.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/sfutil/sfxhash.c:
* src/snort.c:
Added code to cleanup memory at Snort exit/restart.
* src/output-plugins/spo_log_tcpdump.c:
Update to timestamp writing on 64bit platforms.
* src/dynamic-preprocessors/smtp/smtp_normalize.c:
Update normalization for postfix and sendmail servers that
normalize any space except '\n'.
* src/preprocessors/str_search.c:
* src/sfutil/bnfa_search.c:
* src/sfutil/mpse.c:
Use BNFA, smaller memory footprint for searches from SMTP.
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/include/hi_eo_log.h:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
Update way in which Body vs URI's are normalized, checked for
anomalies and alerted on.
* src/preprocessors/snort_stream4_udp.c:
Fix use of ignore_any keyword when dealing with portscan
and/or rules that have flow/flowbits.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update to timestamp handling and anomaly detection with invalid
timestamps on RST packets.
* src/snort.c:
* src/snort.h:
Add --loop option to be used with -r for pcap readback mode.
2007-05-09 Adam Keeton <akeeton@sourcefire.com>
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
Added code to prevent URI-related alerts from firing when the
body is being normalized.
2007-05-08 Adam Keeton <akeeton@sourcefire.com>
* src/preprocessors/HttpInspect/client/hi_client.c:
Fixed pointer initialization relating to POST normalization.
2007-04-27 Steven Sturges <ssturges@sourcefire.com>
* src/decode.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Provide new rule keyword modifier for content option that allows a
rule to search for a pattern in the body of an HTTP client request.
* src/util.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/include/hi_client.h:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/include/hi_util_xmalloc.h:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
Update to normalize the body of a client request to allow rules to
check specifically for parameters of a POST or GET request. Also
add stats that are part of the hourly stats that track various
HTTP encodings and normalizations that have occured.
* src/preprocessors/spp_stream4.c:
Fix potential memory leak.
* doc/README.ipv6:
Updates for clarity.
* doc/faq.tex:
* configure.in:
Add minimal PCRE version.
* etc/gen-msg.map:
* src/decode.c:
* src/generators.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Handle TCP window scale option that is > 14. Added decoder alert for
this and adjust the scale per RFC 1323 in Stream5.
* etc/snort.conf:
Make Stream5 the default stream engine.
* src/decode.c:
Add alert for multiple GRE encapsulations.
* src/ipv6.c:
Additional structure name changes to avoid conflicts on Win32.
* src/parser.c:
Update the maximum number of entries in an IP List to 1024 (was 128).
Added ability to configure Timestats interval, default is 3600 seconds
(1 hour) when enabled via --enable-timestats.
* src/snort.c:
* src/snort.h:
* src/util.h:
Revised signal handler for Timestats.
* src/util.c:
Update Timestats to include Wifi, GRE, Frag & TCP Stream info. Thanks
to Bill Parker for the update.
* src/detection-plugins/sp_icmp_code_check.c:
* src/detection-plugins/sp_icmp_type_check.c:
Update to parsing of icmp rule options for better grammar enforcement.
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
Specify TCP window of 0 for RST packets that are sent.
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/sf_dynamic_preproc_lib.c:
Make Preprocess() function available to dynamic preprocessors. Thanks
Vladimir Shcherbakov for the request.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
Code cleanup and a minor reorganization.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fix truncated buffer in when compiled in debug mode.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream_api.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update to track additional stats for TCP session cache and session states.
* src/preprocessors/spp_perfmonitor.c:
Fix behaviour of 'accumlate' option.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update for 64bit platforms.
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* doc/README.stream5:
Updates to config validation. Code cleanup for readability. Update
TCP Window Scale use and sequence validation to be RFC 1323 compliant.
Document min/max values for parameters, etc.
2007-04-13 Steven Sturges <ssturges@sourcefire.com>
* src/decode.h:
* src/decode.c:
* src/ipv6.c:
Changed structure declaration and usage to not conflict with OpenBSD.
2007-03-28 Steven Sturges <ssturges@sourcefire.com>
* rpm/snort.spec:
Remove smp_flags from spec file to not parallelize building.
* doc/README.ipv6
* etc/gen-msg.map:
* src/Makefile.am:
* src/decode.c:
* src/decode.h:
* src/generators.h:
* src/ipv6.c (added):
* src/ipv6.h (added):
* src/parser.c:
* src/snort.c:
* src/snort.h:
* src/win32/WIN32-Prj/snort.dsp:
Added ability for Snort to track fragmented ICMPv6 to check for the
remote BSD exploit (Bugtraq ID 22901, CVE-2007-1365).
* src/win32/WIN32-Code/syslog.c:
* src/win32/WIN32-Code/win32_service.c:
* src/plugbase.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/stream_ignore.c:
* src/profiler.c:
* src/snort.c:
Cleanup to use safe snprintf and strncpy functions, check return values
of SafeMemcpy, use calloc or SnortAlloc, and other static size buffer
bounds checks.
* src/parser.c:
Fix issue with printing rule information twice.
* src/profiler.h:
* src/preprocessors/spp_flow.c:
Fix miscalculation of processor time attributable to flow.
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
Added hasXXX functions for Content, ByteTest, and PCRE.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_structs.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
Code cleanup to perform bounds checking, validation of memcpy
success, remove potential memory leak. Code readability improvements
and update DCE endianness checks.
* src/dynamic-preprocessors/dns/sf_preproc_info.h:
* src/dynamic-preprocessors/dns/spp_dns.c:
Code cleanup for initialization of memory allocations and add
early termination when at end of packet payload.
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/sf_preproc_info.h:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Code cleanup for initialization of memory allocations and remove
dead/unused code for directory and user state tracking.
* src/dynamic-preprocessors/smtp/sf_preproc_info.h:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_log.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Code cleanup for initialization of memory allocations, fix normalization
to prevent read beyond packet payload. Generate SMTP command overflow
even if packet payload doesn't contain complete command (missing LF).
* src/preprocessors/spp_frag3.c:
Further update to handle iptables (and other datalink layers) that
do not have ethernet headers to be included in rebuilt fragment.
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
* doc/README.stream5:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Add verification of options for ICMP, TCP, UDP configurations are
within reasonable limits. Reorganize reassembly flush initialization.
Print list of UDP rules that are effectively ignored with ignore_any_rules
option. Update session timeout handling.
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
Allow use of limit on number of nodes in hash table instead of
relying on memcap for limiting sessions.
* src/bounds.h:
* src/debug.c:
* src/detect.c:
* src/fpdetect.c:
* src/log.c:
* src/parser.c:
* src/pcrm.c:
* src/plugbase.c:
* src/profiler.c:
* src/sfthreshold.c:
* src/snort.c:
* src/ubi_BinTree.c:
* src/util.c:
* src/util.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_session.c:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/output-plugins/spo_alert_prelude.c:
* src/output-plugins/spo_alert_syslog.c:
* src/output-plugins/spo_alert_unixsock.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/parser/IpAddrSet.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/flow/flow_print.c:
* src/preprocessors/flow/flow_print.h:
* src/sfutil/acsmx2.c:
* src/sfutil/ipobj.c:
* src/sfutil/sfghash.c:
* src/sfutil/sfmemcap.c:
* src/sfutil/sfxhash.c:
Cleanup to use safe snprintf and strncpy functions, check return values
of SafeMemcpy, use calloc or SnortAlloc, and other static size buffer
bounds checks. Add handling for FatalError not returning for static
code analysis tools.
* src/sfutil/sfthd.c:
Fix memory leak in global config. Thanks Boris Lytochkin for pointing
this out.
2007-02-20 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Update copyright date to include 2007.
2007-02-17 Steven Sturges <ssturges@sourcefire.com>
* src/parser.c:
Code cleanup, remove tab characters going to syslog.
* src/detection-plugins/sp_clientserver.c:
Handle flow keyword with Stream5 UDP sessions.
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
Add bounds checking to ReassembleSMBWriteX; use Safememcpy for calculated
length buffer copies.
2007-02-09 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
Added support for libpcap that depends on libpfring. Thanks to
Jason Wallace for the patch. Also updated description as to why
libpcap check might fail and what files might be missing, thanks
to James Affeld for that suggestion.
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update configuration parsing and validation checks and fix issue
with static flushpoints not really being static.
* src/output-plugins/spo_database.c:
Code cleanup to check that a query was not truncated when using
snprintf and guarantee NULL terminated string.
2007-02-07 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/detection-plugins/sp_ip_same_check.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_react.c:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/parser.c:
* src/plugbase.c:
* src/preprocessors/flow/flow_print.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/flow/portscan/scoreboard.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_stream4.c:
* src/snort.c:
* src/tag.c:
* src/win32/WIN32-Code/misc.c:
Code & warning cleanup.
* src/parser.c:
Add file and line number to an error message. Thanks to
rmkml for pointing out the omission.
2007-02-05 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/fpdetect.c:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_ascii.c:
* src/parser/IpAddrSet.c:
* src/parser.c:
* src/plugbase.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/mode_inspection/hi_mi.c:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/server/hi_server.c:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_iis_unicode_map.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/sfutil/acsmx2.c:
* src/sfutil/ipobj.c:
* src/signature.c:
* src/snort.c:
* src/tag.c:
* src/ubi_BinTree.c:
* src/util.h:
More code cleanup, eliminate warnings on Win32 platform.
2007-02-02 Steven Sturges <ssturges@sourcefire.com>
* doc/README.stream5:
Cleanup spelling, etc.
* src/bounds.h:
* src/preprocessors/spp_frag3.c:
Fix issue when Snort is inline using iptables, without either the
ipconntrack or NAT modules. This should not occur using the recommended
snort inline configuration, since the OS is supposed to handle IP
fragment reassembly. The Ethernet header doesn't exist in the packet
received by Snort, causing snort to dereference an invalid pointer.
Thanks to Panda Software and Joel Ebrahimi for reporting the issue."
* src/parser.c:
Fix benign warning when using -E on Win32.
* src/plugbase.c:
* src/preprocessors/spp_telnet_negotiation.c (removed):
* src/preprocessors/spp_telnet_negotiation.h (removed):
* src/preprocessors/Makefile.am:
* src/win32/WIN32-Prj/snort.dsp:
Removed deprecated telnet preprocessor.
* src/profiler.c:
* src/profiler.h:
Added profiling code for 64 bit Intel and PPC platforms.
* src/decode.h:
* src/detect.c:
* src/fpdetect.c:
* src/log.c:
* src/mstring.c:
* src/parser.c:
* src/plugbase.c:
* src/profiler.c:
* src/profiler.h:
* src/sfthreshold.c:
* src/signature.c:
* src/snort.c:
* src/strlcatu.c:
* src/strlcpyu.c:
* src/ubi_BinTree.c:
* src/util.c:
* src/util.h:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_react.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_ttl_check.c:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf.c:
* src/preprocessors/portscan.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/str_search.c:
* src/preprocessors/stream.h:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_iis_unicode_map.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/flow/flow.h:
* src/preprocessors/flow/int-snort/flow_packet.h:
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx2.c:
* src/sfutil/bitop_funcs.h:
* src/sfutil/getopt_long.c:
* src/sfutil/ipobj.c:
* src/sfutil/sfghash.c:
* src/sfutil/sflsq.c:
* src/sfutil/sfsnprintfappend.c:
* src/sfutil/sfxhash.c:
* src/win32/WIN32-Code/misc.c:
* src/win32/WIN32-Code/syslog.c:
* src/win32/WIN32-Code/win32_service.c:
Code cleanup, change malloc/calloc to SnortAlloc, use safer functions
SnortSnprintf, SnortStrncpy, etc. Check pointers before use.
* src/win32/WIN32-Code/win32_service.c:
Fix issue with service initialization and parameter validation.
Thanks Hideki Saito for pointing out the problem.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
Code cleanup, update calculating for valid length to handle
alternate padding. Update to use safer functions.
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/stream_api.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
Allow portscan to work with Stream5 UDP session tracking (because
it replaces flow preprocessor). Added API function to get direction
of packet (not supported in Stream4).
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/stream5_common.h:
Stream5 config parsing improvements. Check option parameters for
reasonable values (prevent huge memcaps, etc).
2007-01-29 Steven Sturges <ssturges@sourcefire.com>
* src/debug.c:
* configure.in:
Handle platforms that don't support vswprintf and vwprintf. Thanks
Nikns Siankin for pointing that out for OpenBSD.
* src/profiler.h:
* src/profiler.c:
* src/rules.h:
Use 64 bit values to store profiling counters.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added a table for content modifiers and links to their respective
sections. Removed old preprocessor sections and moved ASN.1 from
preprocessor to detection plugins section. Added section for Stream5.
* src/win32/WIN32-Prj/snort.dsp:
Always use DYNAMIC_PLUGIN.
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Includes/LibnetNT.h:
Code cleanup.
* src/detection-plugins/sp_flowbits.c:
* src/preprocessors/spp_stream5.c:
Fix issue with flowbits for UDP streams.
* src/detection-plugins/sp_flowbits.c:
Add check when stream4 or stream5 are not enabled to still support
flowbits. Will be removed when Flow preprocessor and Stream4 are
deprecated. Thanks to Nathan Ching for pointing out the issue.
* src/snort.c:
Fix to allow dynamic rules to load correctly.
* doc/README.stream4:
* doc/README.stream5:
Cleanup.
2007-01-18 Steven Sturges <ssturges@sourcefire.com>
* etc/generators:
* src/generators.h:
Remove generator IDs that are no longer used.
* doc/README.tag
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added info on snort.conf config option tagged_packet_limit and added
README.tag info file for the tag option in rules.
* doc/README.http_inspect:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Emphasized in httpinspect documentation that a flow_depth between
1 and 1460 will only inspect at most that many bytes of a server's
response, stream reassembled or not and that rules written to inspect
more than flow_depth bytes will be ineffective. Thanks to Christian
Seifert for pointing this out.
2007-01-17 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* snort.8:
* RELEASE.NOTES:
* etc/snort.conf:
* rpm/snort.spec:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Prj/snort_installer.nsi:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update for 2.7.0 Beta
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/win32/Makefile.am:
* src/win32/WIN32-Code/getopt.c:
* src/win32/WIN32-Code/getopt_long.c:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Includes/getopt.h:
* src/win32/WIN32-Includes/getopt1.h:
* src/win32/WIN32-Includes/stdint.h:
* src/win32/WIN32-Prj/.cvsignore:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
Update Win32 build enviornment for 2.7.0.
* doc/README.stream5:
* doc/README.ftptelnet:
Fix a few typos and add better descriptions for alerts.
* etc/gen-msg.map:
* etc/generators.h:
Add Stream5 alert.
* etc/snort.conf:
* src/preprocessors/spp_frag2.c (removed):
* src/preprocessors/spp_frag2.h (removed):
* src/preprocessors/Makefile.am:
* src/plugbase.c:
* src/plugbase.h:
Remove deprecated Frag2.
* src/sfutil/mwm.c (removed):
* src/sfutil/mwm.h (removed):
Remove deprecated mwm pattern matcher.
* src/detection-plugins/sp_ipoption_check.c:
* src/decode.h:
* src/decode.c:
* src/log.c:
Add handling of IP Option ESEC (Extended Security).
* src/debug.h:
* src/bounds.h:
* src/fpcreate.h:
* src/fpdetect.h:
* src/tag.c:
* src/detection-plugins/sp_respond2.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_include.h:
* src/preprocessors/portscan.h:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/HttpInspect/include/hi_include.h:
* src/preprocessors/flow/common_defs.h:
* src/sfutil/bitop_funcs.h:
Move definition of INLINE for inline functions to a common place.
* src/debug.c:
* src/debug.h:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
Add DebugWideMessageFunc for use with Wide Character sets, however
it does not write to syslog.
* src/debug.c:
* src/decode.c:
* src/detect.c:
* src/detect.h:
* src/fpcreate.c:
* src/fpdetect.c:
* src/log.c:
* src/mstring.c:
* src/parser.c:
* src/pcrm.c:
* src/plugbase.c:
* src/profiler.h:
* src/sf_sdlist.c:
* src/sfthreshold.c:
* src/sfthreshold.h:
* src/signature.c:
* src/snort.c:
* src/snort.h:
* src/tag.c:
* src/util.c:
* src/util.h:
* src/detection-plugins/sp_ip_fragbits.c:
* src/detection-plugins/sp_pcre.c:
* src/detection-plugins/sp_rpc_check.c:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/smtp/smtp_confic.c:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssh/spp_ssh.h:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/str_search.c:
* src/preprocessors/stream_ignore.c:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/ipobj.c:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/mwm.c:
* src/sfutil/mwm.h:
* src/sfutil/sfeventq.c:
* src/sfutil/sfghash.c:
* src/sfutil/sfghash.h:
* src/sfutil/sfhashfcn.c:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/sfutil/sflsq.c:
* src/sfutil/sflsq.h:
* src/sfutil/sfmemcap.c:
* src/sfutil/sfsnprintfappend.c:
* src/sfutil/sfthd.c:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
* src/sfutil/util_match.c:
* src/sfutil/util_net.c:
Code cleanup, change malloc to calloc, use safer functions
SnortAlloc, SnortStrdup. Check pointers before use.
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
* src/sfutil/mwm.c:
* src/sfutil/mwm.h:
Added caller usable state tracking to pattern matcher.
* src/parser.c:
* src/parser.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
To better handle rule options that are provided by dynamic
preprocessors, make 2 passes through snort.conf at startup.
* src/parser.c:
* src/snort.c:
Improve dynamicengine keyword and commandline option to allow for
specifying directory or file.
* src/detect.c:
* src/event_queue.c:
* src/event_queue.h:
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/fpcreate.c:
* src/parser.c:
* src/signature.c:
* src/signature.h:
Unify logging to a single code path and added ability to have
rule stubs for preprocessor and decoder events.
* src/snort.c:
Fix code that looks for .snortrc. Thanks to Benjamin Bennett
for pointing out the issue.
* src/preprocessors/portscan.c:
* src/preprocessors/spp_sfportscan.c:
Fix false alert where destination IP was not in range reported by
sfportscan alert.
* src/preprocessors/spp_sfportscan.c:
Reset threshold checking at end of portscan alerting so that other
events generated for packet wouldn't use old value returned from
testing portscan thresholding/suppression. Thanks to Andreas
Ostling for pointing this out.
* src/preprocessors/spp_frag3.c:
Cleanup of GRE code for GRE nested fragments.
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_session.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/Stream5/stream5_common.h:
Added memcap for TCP reassembly packet storage. Reduced memory
consumption of session tracking data structures. Added target-based
reassembly for HPUX 11, HPUX 10.2, Windows 2003, Windows Vista.
Added target-based support for processing of TCP timestamps, TCP
Resets, and repeated SYN packets. Improved Session cache management.
Update flushpoint management. Improved handling of midstream
session establishment. Code cleanup to use safe functions for
memory allocation. Set tcp policy for both sides of session,
rather that by first packet seen, correctly does target-based
reassembly for each side. Simplify code handling sessions to ignore.
2007-01-07 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/decode.h:
Fixed issue where GRE decoder was attempting to assign a potentially
negative value to an unsigned integer. This value, which would then
be positive, was then checked to see if it was less than zero, which
would indicate whether the calculated length of the header was greater
than the length of the rest of the packet capture. This would always
return false and the assumed length of the packet would potentially
be larger than the actual length, leading to a potential dereferning
of invalid memory. Thanks to Chris Rohlf for pointing this out.
2006-12-04 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Configuration validation update.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
Additional updates for bounds checking.
* src/detection-plugins/sp_isdataat.c:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added an option to specify rawbytes for the buffer.
2006-11-30 Steven Sturges <ssturges@sourcefire.com>
* src/tag.c:
Fix logging of tagged packets when -G (event source ID) is used.
* src/event.h:
* src/snort_packet_header.h:
* src/output-plugins/spo_unified.c:
Fix unified to work correctly on 64bit platforms. Thanks Nikns Siankin
for the report. Nikns provides a patch to barnyard that may be
required to use this functionality on a 64bit systems. Grab the
patch from here: http://secure.lv/~nikns/stuff/barnyard_64bit.diff
* src/snort.c:
* src/snort.h:
Reorganize code for inline fail-open to create pattern matcher rule
groups in the thread.
* src/util.c:
Code cleanup
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
Fix segfault caused by integer overflow and add additional checks
to protect against other underflow/overflow conditions.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Add capability to have multiple application layer preprocessors store
data within the stream to better handle autodetection and multi-protocol
packets. Fix additional issue with high CPU and reprocessing rebuilt
packets that are split across a sequence wrap.
2006-11-22 Steven Sturges <ssturges@sourcefire.com>
* preprocessors/spp_stream4.c:
Fix problem with snort using high CPU and reprocessing the same
rebuilt packets at session end or ACK in middle of packet when
there are gaps in the packet sequence.
2006-11-16 Andrew Mullican <amullican@sourcefire.com>
* etc/gen-msg.map:
Add DCE/RPC preprocessor alert.
2006-11-07 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
Updates for printing of options and handling of memcap.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Add print for config option.
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_session.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_udp.c:
Add UDP session tracking stats. Improved TCP Timestamp handling.
Seperate MacOS policy from BSD, as they differ slightly. Improved
performance of session pruning.
* src/snort.c:
Updates to inline thread initialization.
2006-10-30 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
Fix debug prints.
* src/detection-plugins/sp_isdataat.c:
Fix problem with this option not being marked as relative when
'relative' is used. This change should've been made with changes
for not rechecking non-relative options on 2006-08-16.
2006-10-27 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
Output user-selected server profile at startup.
* src/parser.c:
Detect corrupt files and handle mixed windows and unix line endings.
* doc/README.dcerpc:
Update description of DCE/RPC auto-detect.
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_structs.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
Fix various bugs relating to unicode, ntohs, bounds-checking,
and SMB chained AndX commands.
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
Print out mempcap and max_frag_size on startup.
2006-10-23 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Updated stream4 documentation in the Snort manual to reflect
new UDP options and inline option updates. Corrected error with
event_queue parameter - changed max_events to max_queue.
* doc/faq.tex:
Updated FAQ to reflect disuse of ACID in favor of BASE.
Added references to FLoP and Mudpit as output systems for Snort.
Added references to two IDS books.
* doc/README.decode:
Added README file for the Snort decoder
* doc/README.stream4:
Made minor changes to language
* etc/snort.conf:
Added commented out decoder options with description -
enable_decode_oversized_alerts and enable_decode_oversized_drops
* doc/README.http_inspect:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Updated tab_uri_delimiter section in document to reflect deprecation.
Removed the deprecated tab_uri_delimiter from server profiles since
it's redundant with whitespace_chars.
* src/preprocessors/snort_httpinspect.c:
Allow user-specified ports to override internal defaults.
* src/detection-plugins/sp_pattern_match.c:
Fix error message with max pattern size.
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/dns/spp_dns.h:
Fix spelling of obsolete in macros.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Fix spelling of DETECT_ANOMALIES macro.
* src/profiler.c:
Removed tabs from preprocessor stats output. Tabs aren't compliant
with syslog RFC.
* doc/README.ftptelnet:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Added documentation on Telnet configuration option detect_anomalies
* src/preprocessors/spp_stream4.c:
Fixed potential for infinite loop when only part of a packet being
used in reassembly is ACK'd.
* src/preprocessors/perf-base.c:
Fixed packet count stats when in readback mode.
2006-10-13 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_flowbits.c:
Fixed an off-by-one error message that prevented the maximum number
of flowbits from being used. Include number of flowbits used in
summary of flowbits usage.
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/dns/spp_dns.h:
Fix parser to properly error if misconfigured ports.
* src/decode.c:
* src/decode.h:
* src/parser.c:
Added new config option "enable_decode_oversized_alerts" and
"enable_decode_oversized_drops" to allow alerting on packets with
extra bytes at the end of their payload
2006-10-12 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* RELEASE.NOTES:
Prepare for 2.6.1 RC.
* configure.in:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Start a thread if running in inline mode that passes traffic through
once pcap is opened and snort is not ready to start inspection (ie,
loading rules, creating pattern matcher, etc). Thread is terminated
when snort is ready to process packets.
Compiled in via --enable-inline-init-failopen option to configure
script. Disable by --disable-inline-init-failopen commandline option or
'config disable_inline_init_failopen' in snort.conf/user.conf in the
case that the interface is fail-closed. Requires libpthread.
* src/parser.c:
Require a sid for every rule.
* src/dynamic-preprocessors/ssh/spp_ssh.c:
Verifies that the stream preprocessor is enabled.
Version string bounds checking now uses the length of the version
string versus the length of the entire payload.
* src/preprocessors/snort_stream4_udp.c:
Update UDP session stats (packet count, start/end time, bytes, etc).
* doc/README.stream4:
* doc/Makefile.am:
Finally a description for Stream4. Thanks Todd!
* src/parser.c:
* src/signature.c:
Allow for variable metadata in rule options. Ignore unknown metadata
fields.
* etc/gen-msg.map:
* src/decode.c:
* src/generators.h:
Added additional TCP length checking and UDP length checking and new
decode alerts for anomalous lengths.
2006-10-09 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_stream4.c:
Fix problem with reassembly of server side traffic. Thanks
rmkml and Crusoe Researchers for notifying us of the issue.
* src/preprocessors/spp_stream4.c:
* src/generators.h:
* etc/gen-msg.map:
Fix Stream4 to handle duplicate SYN packets by purging existing
packets queued for reassembly after the seq of the SYN. Also,
properly handle retransmitted data that is overlapping the current
packet and when trimmed overlapping the next packet.
2006-10-04 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
Fixed issue in GRE code where data could
potentially be dereferenced past the end
of the packet.
* src/parser.c:
Fix log message.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_session.h:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Add stats tracking for UDP sessions to perfmonitor and stream4's
session stats (keepstats option). Update Stream4 to purge
UDP session cache on a timeout basis, similar to the way TCP
session cache is purged. Remove cache_clean_percent option.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
Fixes for CORE SMB fragmentation. Also, fix for perf-profiling.
2006-09-27 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
Fix issue with use of Stream4 cache_clean_percent option
that resulted in a segfault when the max session limit was
reached. Thanks to Jason Ish for reporting the problem.
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* doc/README.http_inspect:
Split the IIS profile in the HTTP inspect preprocessor into
IIS, ISS4, and ISS5_0. ISS 4.0 and ISS 5.0 both support double
decoding, but ISS 5.1 and beyond do not. Double decoding alerts
are now disabled in the ISS profile, but remain enabled for the
IIS 4.0 and IIS 5.0 profiles. Thanks to Pratap Ramamurthy for
pointing out that IIS 5.1 does not support double decoding
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/util.h:
Fixed issue where iface_ADDRESS variable wasn't getting set before
configuration file was read. Now all up interfaces will get a
variable created. Note that these will NOT get set if the
readmode flag is set. Thanks to Paul Melson for reporting the
problem.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Handle reassembly of first packet for midstream pickups (first packet
wasn't part of an established session at that point, so some rules
might fail).
* src/preprocessors/Stream5/snort_stream5_session.c:
Fix handling of cache clean by percent.
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
Fix problem with relative options not being marked as relative (for
distance/within keywords).
2006-09-21 Steven Sturges <ssturges@sourcefire.com>
* src/generators.h:
* src/snort.c:
* src/sfutil/bitop_funcs.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Update for GRE additions and compilation on Win32.
* src/preprocessors/spp_stream4.c:
Fix issue with alerts missing in DEBUG mode.
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
Fix signedness issue that caused HttpInspect to miss certain
oversized chunk alerts.
* src/sfutil/ipobj.c:
Fix parsing that prevented multiple IP lists from being parsed
correctly. This fixes a problem with sfportscan configuration when
'watch_ip', 'ignore_scanners', and 'ignore_scanned' options are
used together. Thanks to Rob Sharp and Husnu Demir for reporting
the bug.
2006-09-18 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* doc/INSTALL:
* gen-msg.map:
* src/decode.c:
* src/decode.h:
* src/generators.h:
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_stream4.c:
Added support to decode GRE encapsulated traffic. Only IP as transport
protocol is supported and only one layer of encapsulation will be
decoded - packets with multiple GRE headers will be discarded. Thanks
Todd Wease (and welcome to the Snort team!) for this contribution.
* configure.in:
* doc/README.ARUBA:
* doc/Makefile.am:
* doc/snort_manual.tex:
* src/plugbase.c:
* src/output-plugins/Makefile.am:
* src/output-plugins/spo_alert_arubaaction.c:
* src/output-plugins/spo_alert_arubaaction.h:
Added support for communcation with an Aruba Networks wireless
mobility authentication/access control system.
* configure.in:
GCC 4.x.x has strict aliasing on by default with optimization level 2.
However, Snort uses aliases in a number of places. configure now checks
the gcc compiler version for 4 and disables strict aliasing with
-fno-strict-aliasing. Thanks to Ronald Henderson and Keith Konecnik
for simultaneously (and independently) discovering and reporting this
issue.
2006-09-15 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c:
Cleanly fail with content patterns that are > 2048 bytes.
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
Fix memcap to be global. Turn off memcap alerts by default.
Add config item to enable alerting on exceeded memcap.
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/mpse.c:
Code cleanup
2006-09-13 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/log.c:
* src/log.h:
* src/generators.h:
* etc/gen-msg.map:
Added code to print original datagram for all ICMP error types if
alerted on.
Fix to print original datagram on alert if original datagram was ICMP.
Thanks to John Papapanos for pointing out the above 2 issues.
Added additional decoder alerts for ICMP error types.
Removed fragtracking of ICMP original datagram - it never made sense
since only an ICMP response to the first frag is ever returned.
Fixed issue where data and size pointers were not set correctly for
ICMP error types.
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Remove checks for duplicate alerts within a given session, as
this is now handled within the general alerting mechanism
and session tracking.
* src/parser.c:
When a variable was redefined, a call to LogMessage() was missing a
parameter. Thanks to Greg Baran for pointing this out.
2006-09-11 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
Fix to remove uses of strlen or wcslen. Properly validate andXOffset.
Fix bug in DCE/RPC fragment reassembly.
2006-09-07 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Fix output for the USR1 signal when calculating statistics for
pcap counts. Keep a tally of packets seen/dropped/etc and
use deltas, rather than the 'most recent' value when determining
percentages after each USR1 signal. Thanks to Colin Grady for
pointing out the issue.
* src/parser.c:
Allow for a line without an end of line marker in snort.conf.
2006-09-06 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/detect.c:
* src/log.c:
* src/snort.c:
* src/detection-plugins/sp_respond.c:
* src/detection-plugins/sp_respond2.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fix memory leak in ascii and cmg output modules.
Remove calls to ClearDumpBuf() from related calls
PrintIPPkt() and PrintNetData(), as it is no longer
needed.
2006-08-31 Steven Sturges <ssturges@sourcefire.com>
* rpm/snort.spec:
* etc/snort.conf:
Add DNS preprocessor to packaging and config.
* doc/Makefile.am:
* doc/README.stream5:
Add Stream5 README.
2006-08-30 Steven Sturges <ssturges@sourcefire.com>
* src/sfutil/ipobj.c:
Additional fix for parsing of IP lists that are not space seperated.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Treat spaces as part of a filename in 'string' parameter validation.
Thanks Bamm Visscher for pointing out the issue.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_session.h:
Remove the ifdef'd splay tree code for packet and session storage.
It has been replaced by a hash table and is no longer needed.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/preprocessors/stream_api.h:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/stream5_common.h:
Add a few functions to the Stream API to allow a protocol
analyzer to change the reassembly characteristics (direction,
flush policy) for an individual session.
* configure.in:
* doc/Makefile.am:
* doc/README.dns:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* etc/gen-msg.map:
* src/build.h:
* src/debug.h:
* src/generators.h:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/dns/Makefile.am:
* src/dynamic-preprocessors/dns/sf_preproc_info.h:
* src/dynamic-preprocessors/dns/spp_dns.c:
* src/dynamic-preprocessors/dns/spp_dns.h:
Add a dynamic preprocessor to decode and analyze DNS responses
over TCP and UDP. The TCP portion is stateful and requires
stream is enabled.
2006-08-29 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c:
Fix unchecked free. Thanks Krzysztof Burghardt for
pointing out the problem.
* src/sfutil/acsmx2.c:
Fixed off by one to sparse index calculation and off by 2 ps
increment for SparseBands.
200-08-24 Steven Sturges <ssturges@sourcefire.com>
* src/fpcreate.c:
* src/sfutil/mpse.c:
* src/sfutil/Makefile.am:
Fix issues with using lowmem. It was reporting an out of
memory error. This was broken with the addition of the
smaller memory Aho-Corasick pattern matcher.
2006-08-17 Steven Sturges <ssturges@sourcefire.com>
* doc/README.dcerpc:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* etc/snort.conf:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
Change config option max_memory to memcap for DCE/RPC.
2006-08-16 Steven Sturges <ssturges@sourcefire.com>
* src/rules.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pcre.c:
Resolve issue with rechecking rule options that follow a content or
PCRE that are relative. Only recheck if the next option is relative.
Thanks to Randy Smith for pointing out the issue.
* configure.in:
Enable dynamicplugins by default. Can override
with --disable-dynamicplugin.
* snort.8:
* doc/snort_manual.pdf:
* doc/snort_manual.tex:
* doc/Makefile.am:
* doc/README.ssh:
* doc/README.dcerpc:
* etc/snort.conf:
* src/win32/WIN32-Prj/snort_installer.nsi:
Added SSH and DCE/RPC preprocessor sections and description of
new command line options.
2006-08-15 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
Remove obsolete file.
* src/preprocessors/Stream5/Makefile.am:
Update to include header files.
* src/preprocessors/Stream5/stream5_common.c:
* src/preprocessors/flow/flow_cache.c:
* src/sfutil/util_math.c:
* src/sfutil/util_math.h:
Cleanup Win32 warnings.
* src/sfutil/mpse.c:
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
Remove references to MWM and sfksearch.
2006-08-14 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* etc/gen-msg.map:
* etc/snort.conf:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
* src/dynamic-preprocessors/Makefile.am:
* src/preprocessors/Makefile.am:
* src/preprocessors/spp_stream5.c:
* src/preprocessors/spp_stream5.h:
* src/preprocessors/Stream5/snort_stream5_tcp.c:
* src/preprocessors/Stream5/snort_stream5_tcp.h:
* src/preprocessors/Stream5/snort_stream5_udp.c:
* src/preprocessors/Stream5/snort_stream5_udp.h:
* src/preprocessors/Stream5/snort_stream5_icmp.c:
* src/preprocessors/Stream5/snort_stream5_icmp.h:
* src/preprocessors/Stream5/Makefile.am:
* src/preprocessors/stream_api.h:
* src/generators.h:
* src/plugbase.h:
* src/Makefile.am:
* src/plugin_enum.h:
New target-based Stream module. Moved flow & flowbits to
be part of Stream API.
* src/debug.h:
* src/generators.h:
* src/preprocids.h:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/dcerpc/Makefile.am:
* src/dynamic-preprocessors/dcerpc/dcerpc.c:
* src/dynamic-preprocessors/dcerpc/dcerpc.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.c:
* src/dynamic-preprocessors/dcerpc/dcerpc_util.h:
* src/dynamic-preprocessors/dcerpc/dcerpc_config.c:
* src/dynamic-preprocessors/dcerpc/sf_dcerpc.dsp:
* src/dynamic-preprocessors/dcerpc/sf_preproc_info.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_andx_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_andx_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_file_decode.c:
* src/dynamic-preprocessors/dcerpc/smb_file_decode.h:
* src/dynamic-preprocessors/dcerpc/smb_file_structs.h:
* src/dynamic-preprocessors/dcerpc/smb_structs.h:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/snort_dcerpc.h:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.c:
* src/dynamic-preprocessors/dcerpc/spp_dcerpc.h:
New dynamic DCE/RPC protocol normalizer.
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/ssh/sf_ssh.dsp:
* src/dynamic-preprocessors/ssh/Makefile.am:
* src/dynamic-preprocessors/ssh/spp_ssh.c:
* src/dynamic-preprocessors/ssh/spp_ssh.h:
* src/dynamic-preprocessors/ssh/sf_preproc_info.h:
New dynamic ssh protocol normalizer.
* src/detection-plugins/sp_clientserver.c:
* src/preprocessors/Makefile.am:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_udp.c:
* src/preprocessors/snort_stream4_udp.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Stream4 UDP session tracking support. Reassembly performance
improvements. Add ability to block TCP sessions.
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_rc4.c:
Added RC4 dynamic rule option.
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
* src/pcrm.c:
* src/sfutil/Makefile.am:
* src/sfutil/bnfa_search.c:
* src/sfutil/bnfa_search.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
Added smaller memory consumption pattern matcher.
* src/decode.h:
* src/fpdetect.c:
* src/inline.c:
Improved handling for stateless rules.
* configure.in:
* src/parser.c:
* src/parser.h:
* src/rules.h:
* src/snort.c:
* src/snort.h:
Remove use of ifdefs for rule state.
* src/parser.c:
* src/snort.c:
* src/snort.h:
Add ability to give directory or specific library for dynamic
engine.
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_events.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_log.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Add alerts and normalization for telnet subnegotiation begin
that doesn't have a matching end. Could result in an evasion
over the FTP command channel.
* src/snort.c:
* src/snort.h:
* src/util.c:
Added counter for segments queued for reassembly.
* src/snort.c:
* src/dynamic-plugins/sf_dynamic_detection.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
Improved handling of different versions of same shared library.
* src/detect.c:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/dynamic-plugins/sf_engine/bmh.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/output-plugins/spo_alert_fast.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/sfutil/acsmx.c:
Code cleanup, 2.6.1 Beta prep.
2006-08-09 Steven Sturges <ssturges@sourcefire.com>
* doc/faq.tex:
* doc/faq.pdf:
Add information on snort responding to kill signal.
2006-08-02 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_alert_prelude.c:
Update to provide links to Snort classification reference information.
Thanks Yoann Vandoorselaere.
* src/sfutil/ipobj.c:
Fix parsing of IP lists that are not space seperated.
* src/configure.in:
Update for HPUX 11.
* src/snort.c:
* src/util.c:
Fix race condition with daemonization.
* src/dynamic-plugins/sf_dynamic_plugins.c:
Update for shared library extensions on HP & MAC. Thanks J. Aaron
Pendergrass for raising the HP issues and testing.
2006-07-25 Andrew Mullican
* src/preprocessors/HttpInspect/client/hi_client.c:
Fix to HttpInspect to check for non-RFC whitespace (ie, CR) after URI.
* src/preprocessors/spp_frag3.c:
Eliminate spurious log messages.
2006-07-20 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
No longer require HELO (or EHLO) first in an SMTP conversation.
Some servers (such as ArGoSoft) don't require it.
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
Handle normalization when Subnegotiation Begin doesn't have a
matching Subnegotiation End command by normalizing just the
begin. Thanks to Pratap Ramamurthy for pointing out the
potential issue.
2006-07-14 Steven Sturges <ssturges@sourcefire.com>
* src/decode.h:
* src/detect.c:
* src/fpdetect.c:
Handle pass rule that hits a pipelined URI and an alert
that matches a secondary pipelined URI.
* src/preprocessors/spp_frag3.c:
Fix issue with First policy when dealing with whole overlaps.
Thanks Russ S for sending in the bug report.
* src/preprocessors/spp_stream4.c:
Performance improvement for logging tagged packets. Thanks Victor
Julien for pointing out the area for improvement.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fix potential access violation.
2006-07-12 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_database.c:
Update to gracefully disconnect from Oracle DB. Thanks to
Nikns Siankin for the patch.
* src/output-plugins/spo_csv.c:
Fix issue with parsing config other than default.
* src/decode.c:
* src/parser.c:
* src/snort.h:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Change default inline behaviour to not drop packets with decoder
errors, invalid IP & TCP options and invalid checksums. Drop
behaviour can be enabled by using new options, noted in the
Snort Manual.
2006-06-30 Steven Sturges <ssturges@sourcefire.com>
* schemas/Makefile.am:
Add create_db2 srcipt to be included in distro.
* src/mstring.c:
Address potential read overflow.
* src/sfthreshold.c:
* src/tag.c:
* src/win32/WIN32-Includes/stdint.h:
* src/win32/WIN32-Includes/NETINET/IN_SYSTM.h:
Code cleanup.
* src/snort.c:
* src/util.c:
Fix issue with daemonization on MAC OSX and parent not exiting
cleanly.
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/util.h:
* snort.8:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Provide support for locking the PID file so that no additional snort
process is able to start using the same PID file. Can be overridden
with --nolock-pidfile.
* src/detection-plugins/sp_pattern_match.c:
Fix issue with replace option and replaced data always being placed
at the beginning of the packet.
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Fix issue with parsing default server configuration on Win32 platform.
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
Fix potential read beyond end of buffer and update configuration to
use less memory.
* src/preprocessors/spp_stream4.c:
Fix reassembly issue.
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Handle additional whitespace characters on a per server configured
basis. Defaults are to treat Htab (\t, 9), VTab (\v, 11),
Form Feed (\f, 12), and CR (\r, 13) as whitespace.
* src/sfutil/ipobj.c:
Revise IP list parsing code.
2006-05-31 Steven Sturges <ssturges@sourcefire.com>
* src/inline.c:
Update to handle signals received when no traffic is flowing
when snort is compiled with inline ipq. Thanks Victor Julien
for the patch.
* configure.in:
Fix issue with using postgresql and dynamic plugins.
Thanks Nikns Siankin for pointing out the issue.
* src/sfutil/ipobj.c:
Fix problem when parsing multiple hosts in an IP list.
2006-05-24 Steven Sturges <ssturges@sourcefire.com>
* etc/gen-msg.map:
* src/generators.h:
* src/preprocessors/spp_stream4.c:
Fix potential evasion in Stream4. Thanks Brandon Franklin for the
find.
* src/snort.c:
* src/parser.c:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/preprocessors/HttpInspect/utils/hi_util_hbm.c:
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/sfutil/acsmx2.c:
* src/sfthreshold.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/flow/portscan/server_stats.c:
* src/preprocessors/flow/portscan/server_stats.h:
Further code review cleanup. Cleanup possible null pointer
dereferences, memory leaks, etc.
* src/preprocessors/HttpInspect/client/hi_client.c:
Fix to HttpInspect to check for non-RFC whitespace (ie, CR) after URI.
Thanks to Blake Hartstein for mentioning the problem.
2006-05-17 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_rpc_check.c:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/dynamic-plugins/sf_engine/bmh.h:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_iis_unicode_map.c:
* src/preprocessors/HttpInspect/utils/hi_util_hbm.c:
* src/sfutil/acsmx.c:
* src/sfutil/event_wrapper.c:
* src/sfutil/mwm.c:
* src/sfutil/sfthd.c:
Further code review cleanup. Cleanup possible null pointer
dereferences, memory leaks, etc.
* src/decode.h:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
Move SPARC_TWIDDLE to common place.
2006-05-12 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* doc/README.sfportscan:
Proofreading updates.
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf.h:
Correctly close performance stats file on HUP and exit.
* src/snort.c:
* src/snort.h:
* configure.in:
Signal handler updates for SEGV and HUP. Define CATCHSEGV in
snort.c to trap segv signals. Can also define NOCOREFILE to
prevent snort from leaving a core file on receipt of a segv.
* src/parser.c:
Fix variable definition parsing code to handle user supplied
value if variable isn't defined. Thanks to Jeremey Hewlett for
pointing out the problem.
* src/snort.c:
* src/detection-plugins/sp_session.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/perf.c:
* src/preprocessors/perf.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/sfutil/mwm.c:
Further code review cleanup. Cleanup possible null pointer
dereferences, memory leaks, etc.
2006-05-01 Steven Sturges <ssturges@sourcefire.com>
* rpm/snort.spec:
* etc/snort.conf:
Include a default path for the dynamicpreprocessors and engine.
* src/detect.c:
* src/parser.c:
* src/pcrm.c:
* src/sfthreshold.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_iis_unicode_map.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/portscan/server_stats.c:
* src/sfutil/ipobj.c:
* src/sfutil/mpse.c:
* src/sfutil/sfghash.c:
* src/sfutil/sfksearch.c:
* src/sfutil/sfxhash.c:
Code review cleanup. Cleanup possible null pointer dereferences,
memory leaks, etc. Thanks to Adam Keeton (and welcome to the project)!
2006-04-27 Steven Sturges <ssturges@sourcefire.com>
* RELEASE.NOTES:
Add information about memory consumption with pattern matching
engines.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update to list all options for pattern matching and note that
Wu-Manber is going to be deprecated.
* src/util.c:
Update output info to account for packets buffered by pcap but
not yet received by snort. Corrected protocol breakdown.
* src/output-plugins/spo_database.c:
Update to correctly strip timestamp precision for MySQL.
Thanks Axton Grams for the patch and Nikns Siankin and
Vlatko Kosturjak for testing.
Update to handle when interface isn't specified in config or
commandline (finial initialization done post PCAP initialization).
Thanks Jonathan Miner for pointing out the problem.
* schemas/create_db2:
Updated to include gid in schema and version 107 to
match the other schemas. Thanks Vlatko Kosturjak for the
update.
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
Fix compilation problems with Sun CC and others that support C99
standard. Thanks Chris Kern for noticing the problem.
* src/preprocessors/spp_stream4.c:
* src/sfutil/acsmx2.h:
Fix compilation problems with Sun CC compiler.
2006-04-11 Steven Sturges <ssturges@sourcefire.com>
* src/fpdetect.c:
* src/profiler.h:
* src/rules.h:
* src/detection-plugins/sp_flowbits.c:
Update rule performance profiling to handle flowbits:noalert
option correctly (it is a match even though there wasn't an
alert).
* src/output-plugins/spo_database.c:
Updates to be ANSI SQL compiliant. Thanks Vlatko Kosturjak
for the updates.
* src/preprocessors/spp_stream4.c:
Fix incorrectly ignored Reset packets with overlapped/retransmitted
data.
* src/inline.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/preprocessors/stream_api.h:
Allow retransmitted packets through in inline mode if they have not
been ACK'd by other side.
2006-03-29 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
Do not check beyond 4 characters for an FTP command.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Free SMTP session memory.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Updates to previous checks for duplicate alerts. Better
performance. Fix cleanup when stream is flushed.
2006-03-24 Steven Sturges <ssturges@sourcefire.com>
* src/snort.c:
Update to fix signal handling issue with libprelude and to
disable segv signal handler when compiled for Debug mode.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Display warnings with configurations that are required
for other detection capabilities (ie, normalization is
required for ayt threshold and encryption detection).
* src/dynamic-preprocessors/smtp/smtp_config.c:
Clear default ports if ports are specified.
Correctly handle specifying valid commands as invalid.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fix alerts possibly giving incorrect information.
Move debug code inside DEBUG ifdef; fix possible SEGV in
debug code. Disable detection for to-be-rebuilt packets.
* src/preprocessors/spp_frag3.c:
Correctly calculate the number of preallocated frags when
preallocating based on a memory limit.
* configure.in:
* src/snort.c:
Remove pcap_setnonblock() call. Was causing performance
problems on certain OSs. Reverts change made with previous
checkins.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/preprocessors/stream_api.h:
* src/fpdetect.c:
Fix potential issue for duplicate alerts on the same data in
the original packet and the Stream reassembled packet.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Proofreading...
2006-03-15 Steven Sturges <ssturges@sourcefire.com>
* schemas/create_mssql:
* schemas/create_mysql:
* schemas/create_oracle.sql:
* schemas/create_postgresql:
Updated to include gid in schemas. Schema version 107.
Thanks Nikns Siankin for the updates and all the testing.
* src/profiler.h:
Add support for AMD processor. Thanks Alex Kirk for trying this out.
* configure.in:
* src/snort.c:
Use pcap_setnonblock() if available to help with snort exiting
on SIGTERM (and others) when no traffic is flowing.
* src/decode.c:
Fix pflog decoding for OpenBSD platforms.
* src/dynamic-plugins/sf_engine/Makefile.am:
* doc/INSTALL:
Updates for FreeBSD 6.x compilation. Thanks Richard Bejtlich for
testing.
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Fixed a few typos and added a warning about the to be deprecated
telnet decode preprocessor.
2006-03-07 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Fixed potential segfault condition in stateless mode.
* src/preprocessors/spp_frag3.c:
Added Fatal error messages for unknown config options.
* src/snort.c:
* src/preprocessors/spp_perfmonitor.c:
Code cleanup
2006-03-02 Steven Sturges <ssturges@sourcefire.com>
* configure.in:
* src/output-plugins/spo_alert_prelude.c:
Additional fixes from Yoann Vandoorselaere. Require libprelude
version 0.9.6.
* src/preprocessors/spp_perfmonitor.c:
Initialize the pcap counters the first time we get a packet.
* src/fpdetect.c:
Fix leaking of classification info between rules and
preprocessor/decoder alerts.
2006-02-28 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-preprocessors/Makefile.am:
Install required header files when --enable-dynamicplugin used
with configure.
* src/preprocessors/spp_stream4.c:
If ignoring a packet because it is a duplicate (retransmitted),
drop it if in inline mode. Original packet was either dropped
or passed through.
2006-02-27 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugion/sp_flowbits.c:
Update parsing to handle spaces and correct keyword checking.
2006-02-23 Steven Sturges <ssturges@sourcefire.com>
* src/snort.c:
* src/snort.h:
* src/fpdetect.c:
* src/parser.c:
* src/event_queue.h:
* doc/README:
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
* snort.8:
Changed command line options --flush-all-events to --process-all-events
and --alert-on-drop to --treat-drop-as-alert. Updated docs/manpage.
* src/output-plugins/spo_unified.c:
Fix unified log file rollover to correctly write magic numbers.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.c:
Update some comments relative to endianness.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
Fix issues with SMTP preprocessor causing rules to not fire.
Thanks Andy Mullican for the fix.
2006-02-22 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
* doc/README.frag3:
Added option to preallocate frags based on a memcap (combination
of memcap and prealloc_frags options). Perform preallocation
post-pcap open because of memory issues with certain versions
of pcap.
2006-02-21 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_alert_prelude.c:
packet_to_data()
Standardize AdditionalData fields name. Support more packet fields,
remove unused one. Send rule revision and TCP/IP options code/value
as AdditionalData. Thanks Yoann Vandoorselaere for the updates.
event_to_reference()
Double check that system->url is not NULL.
Support ICMP headers, patch from Andrea Barisani.
* src/snort.c:
* src/snort.h:
* src/util.c:
Updates to signal handlers to better deal with reentrant
issues in syslog and libc.
* src/dynamic-plugins/sf_dynamic_plugins.c:
Print warning if dynamic library directory doesnt exist or is empty.
Thanks Andy Mullican for the fix.
2006-02-20 Steven Sturges <ssturges@sourcefire.com>
* src/sfutil/sfeventq.c:
Fix issue when more than max events are added to event queue.
* src/parser.c:
* src/plugbase.c:
* src/plugbase.h:
* src/snort.c:
* src/output-plugins/spo_unified.c:
* src/output-plugins/spo_log_tcpdump.c:
Fix issue with output plugins that depend on datalink and
snaplen (which are set in OpenPcap). Caused by reordering
of initialization on 2006-01-26. Thanks Matt Bedynek and
Jeremy Hewlett for the find.
2006-02-17 Steven Sturges <ssturges@sourcefire.com>
* doc/INSTALL:
Updated to include current options and added a
section for compilation on MAC OSX.
* src/signature.c:
Strip whitespaces from reference system and id. This fixes a
reference lookup problem resulting in an invalid URL in case
the reference begins with a space character (example:
reference: x,y; would fail). Thanks Yoann Vandoorselaere
for the patch.
2006-02-16 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
Fix ip options handling. Thanks to Vyacheslav Burdjanadze for
finding the issue.
* src/dynamicpreprocessors/ftptelnet/snort_ftptelnet.c:
Fix processing of configuration without options.
* src/snort.c:
Fix OpenPcap merge issue.
2006-02-15 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Update perfmonitor section. Thanks to Passreality for
pointing out the omissions.
* src/preprocessors/spp_stream4.c:
Only increment memory counter once per allocation.
2006-02-14 Steven Sturges <ssturges@sourcefire.com>
* doc/snort_manual.tex:
* doc/snort_manual.pdf:
Updates to manual for 2.6.0
* src/win32/WIN32-Prj/snort.dsp:
Added missing files.
2006-02-13 Steven Sturges <ssturges@sourcefire.com>
* src/parser.c:
Handle longer lines for config
* src/sfutil/acsmx2.c:
Change visual name of Aho-Corasick sparse bands.
* src/preprocessors/spp_frag3.c:
When a timeout occurs on a Fragmented session, purge the existing
fragments and treat it as a new session. Allows for proper
defragmentation, per OS target configuration.
2006-02-09 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Fix -M flag to log Fatal and regular Error messages to syslog as
well. Thanks Andy Mullican.
* snort.8:
* doc/README:
* src/snort.c:
Add info on additional commandline switches.
* src/preprocessors/spp_stream4.c:
Fix compilation issue on some platforms.
2006-02-08 Steven Sturges <ssturges@sourcefire.com>
* src/parser.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
Allow default configuration without options
2006-02-06 Steven Sturges <ssturges@sourcefire.com>
* etc/snort.conf:
* src/dynamic-examples/dynamic-preprocessor/Makefile.am:
* src/dynamic-examples/dynamic-rule/Makefile.am:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
Add info to snort.conf on how to load dynamic libraries
and update Makefiles to use path similar t othat of
snort.conf.
* src/parser.c:
Fixed error message when dynamic<xxx> token is used.
2006-02-03 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-examples/dynamic-preprocessor/Makefile.am:
* src/dynamic-examples/dynamic-rule/Makefile.am:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-plugins/sf_dynamic_plugins.c:
Fix installation directories
* src/preprocessors/Makefile.am:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream_api.c:
Fixes for MacOS X compilation.
2006-02-02 Steven Sturges <ssturges@sourcefire.com>
* src/detect.c:
* src/event_queue.c:
* src/event_queue.h:
* src/fpdetect.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
* src/sfutil/sfeventq.c:
Changed rule ordering to better handle drop and pass rules
when other alerts trigger on the same packet. Thanks Marc
Norton for the changes.
* src/profiler.c:
* src/profiler.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
Win32 fixes.
* src/snort.c:
Fix SigHup processing.
* src/util.c:
Code Cleanup.
* src/detection-plugins/sp_pattern_match.c:
Return non-zero when search goes out-of-bounds.
* src/preprocessors/snort_httpinspect.c:
Fix from Chris Sherwin for pipelined requests.
* src/preprocessors/spp_frag3.c:
Change noisy LogMessage to Debug.
2006-01-30 Steven Sturges <ssturges@sourcefire.com>
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
Include config.h if required.
* configure.in:
* src/Makefile.am:
* src/dynamic-examples/.cvsignore:
* src/dynamic-examples/Makefile.am:
* src/dynamic-examples/dynamic-preprocessor/.cvsignore:
* src/dynamic-examples/dynamic-preprocessor/Makefile.am:
* src/dynamic-examples/dynamic-preprocessor/sf_preproc_info.h:
* src/dynamic-examples/dynamic-preprocessor/spp_example.c:
* src/dynamic-examples/dynamic-rule/.cvsignore:
* src/dynamic-examples/dynamic-rule/Makefile.am:
* src/dynamic-examples/dynamic-rule/detection_lib_meta.h:
* src/dynamic-examples/dynamic-rule/rules.c:
* src/dynamic-examples/dynamic-rule/sid109.c:
* src/dynamic-examples/dynamic-rule/sid637.c:
Added examples for manual of dynamic preprocessor and dynamic rule
library.
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
More fixes to cleanup.
2006-01-26 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_stream4.c:
Fixed a few retranmission alerts that are not toggled
off by diasble_evasion_alerts config.
* src/parser.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/util.h:
Addressed some startup issues when running daemon mode.
Configuration is validated prior to daemonizing, therefore
if config errors exist, snort will exit, returning error to
initialization script/process. Parent process doesn't exit
until config file is read and a child is forked and has
created its pid file. Thanks to Marc Norton and Chris Sherwin
for their work on this.
Fixed issue with opening pcap prior to reading it from a
config file. Thanks Martin Olsson for noting this.
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
Fixed builds on FreeBSD.
2006-01-24 Steven Sturges <ssturges@sourcefire.com>
* src/win32/Makefile.am:
Win32 Updates.
* doc/Makefile.am:
Added files.
* src/win32/WIN32-Prj/snort.dsp:
Removed deprecated src files.
* src/win32/WIN32-Prj/snort_installer.nsi:
Added dynamic modules, updated version number.
2006-01-23 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_flow.c:
Fixed error message when parsing flow configuration.
* src/snort.c:
* src/snort.h:
Fixed issue with creating PID files.
* src/util.c:
Fixed issue with DropStats and unopened pcap.
* src/Makefile.am:
* src/dynamic-plugins/Makefile.am:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/sfutil/Makefile.am:
Updates to handle make dist and make distcheck.
Win32 Updates.
2006-01-20 Steven Sturges <ssturges@sourcefire.com>
* schemas/create_mysql:
* src/output-plugins/spo_database.c:
Updated to write GID when logging events. Thanks to Graham Keeling
for the patch and Kevin Johnson for helping test.
* src/snort.c:
* doc/README:
* snort.8:
Added info on new command line options.
* src/snort.c:
Updated CreatePidFile to use interface name if available when in
inline mode (and using a bridging interface).
2006-01-19 Steven Sturges <ssturges@sourcefire.com>
* src/util.c:
Updated Timestats to print packet stats per hour and breakdown
per protocol. Thanks Bill Parker for the update. To use this
feature, use --enable-timestats.
* src/sfutil/sfthd.c:
Fix parameter ordering in test routine. Thanks Yin Zhaohui for the find.
* src/detect.c:
Fixed DEBUG_WRAP statement. Thanks Yin Zhaohui for pointing this out.
2006-01-19 Steven Sturges <ssturges@sourcefire.com>
* autojunk.sh:
* configure.in:
Added use of libtool to build dynamically loadable modules,
--enable-dynamicplugin.
Added performance profiling, --enable-perfprofiling.
Added separation of rules being enabled from them appearing in
snort.conf, --enable-rulestate.
Added pthread linkage, --enable-pthread.
* src/win32/WIN32-Prj/snort.dsp:
* src/win32/WIN32-Prj/snort.dsw:
* src/win32/WIN32-Prj/build_all.dsp:
Added dynamically loadable modules and updated workspace for
other project files (new preprocessors, DLLs, and utility project
to build everything).
* RELEASE.NOTES:
* doc/Makefile.am:
* doc/README:
Updated for new files and 2.6.0 release preparation.
* doc/README.PerfProfiling:
* src/profiler.c:
* src/profiler.h:
Added performance profiling metrics. Can measure both rules
and preprocessor performance. Enable via --enable-perfprofiling.
See profiler.h for MACROs to use and various preprocessors for
examples.
* doc/README.SMTP:
* src/dynamic-preprocessors/smtp/.cvsignore:
* src/dynamic-preprocessors/smtp/Makefile.am:
* src/dynamic-preprocessors/smtp/sf_preproc_info.h:
* src/dynamic-preprocessors/smtp/sf_smtp.dsp:
* src/dynamic-preprocessors/smtp/smtp_config.c:
* src/dynamic-preprocessors/smtp/smtp_config.h:
* src/dynamic-preprocessors/smtp/smtp_log.c:
* src/dynamic-preprocessors/smtp/smtp_log.h:
* src/dynamic-preprocessors/smtp/smtp_normalize.c:
* src/dynamic-preprocessors/smtp/smtp_normalize.h:
* src/dynamic-preprocessors/smtp/smtp_util.c:
* src/dynamic-preprocessors/smtp/smtp_util.h:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.c:
* src/dynamic-preprocessors/smtp/smtp_xlink2state.h:
* src/dynamic-preprocessors/smtp/snort_smtp.c:
* src/dynamic-preprocessors/smtp/snort_smtp.h:
* src/dynamic-preprocessors/smtp/spp_smtp.c:
* src/dynamic-preprocessors/smtp/spp_smtp.h:
* src/preprocessors/spp_xlink2state.c (removed):
* src/preprocessors/spp_xlink2state.h (removed):
* src/preprocessors/xlink2state.c (removed):
* src/preprocessors/xlink2state.h (removed):
Added dynamically loadable SMTP preprocessor. Thanks Andy Mullican
for the work and research. Renders xlink2state mini preprocessor
defunct.
* doc/README.ftptelnet:
* src/dynamic-preprocessors/ftptelnet/.cvsignore:
* src/dynamic-preprocessors/ftptelnet/Makefile.am:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_bounce_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftp_client.h:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftp_cmd_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftp_server.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_events.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_log.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_eo_log.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_include.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_return_codes.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_si.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_client_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_config.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c:
* src/dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.h:
* src/dynamic-preprocessors/ftptelnet/ftpp_util_kmap.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_kmap.h:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.c:
* src/dynamic-preprocessors/ftptelnet/hi_util_xmalloc.h:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.c:
* src/dynamic-preprocessors/ftptelnet/pp_ftp.h:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.c:
* src/dynamic-preprocessors/ftptelnet/pp_telnet.h:
* src/dynamic-preprocessors/ftptelnet/sf_ftptelnet.dsp:
* src/dynamic-preprocessors/ftptelnet/sf_preproc_info.h:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c:
* src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.h:
* src/preprocessors/spp_telnet_negotiation.c:
Added dynamically loadable FTP/Telnet preprocessor. Thanks
Steven Sturges for the work and research. Replaces telnet
decoder.
* doc/README.sfportscan:
* src/preprocessors/spp_sfportscan.c:
Updated for preprocessor protocol ordering.
Added performance measurements.
Added ACK scan detection and false positive prevention with
sessions picked up midstream and dropped packets.
* etc/gen-msg.map:
* etc/generators:
* src/generators.h:
Added generator IDs for new preprocessors.
* etc/snort.conf:
Added examples for new preprocessors
* src/Makefile.am:
Added performance metric modules, new subdirs.
* src/build.h:
Seperated build version from snort.h.
* src/debug.h:
Added new preprocessors.
* src/decode.c:
* src/detect.c:
Performance measurments of packet decoder, detection, rule evaluation
and preprocessors.
* src/decode.h:
* src/detect.h
Change to use dynamicly sized preprocessor array since more than 32
preprocessors may be loaded.
* src/inline.c:
* src/inline.h:
Updated to always set drop flag for packets that are dropped
for logging purposes.
* src/plugbase.c:
* src/plugbase.h:
* src/plugin_enum.h:
* src/preprocids.h:
Support for new preprocessors, added checks to verify preprocessor
configuration. Removed deprecated preprocessors. Added cleanup
and shutdown functionality for preprocessors. Move preprocessor
bitmasks from plugbase.h into preprocids.h. Added protocol stack
based ordering of preprocessors, so that IP-layer preprocessors are
run before TCP/UDP layer ones.
* src/snort.c:
* src/snort.h:
Added longname option support. Added dynamic module commandline
options, see README for details. Updated signal handling and
exit/restart code. Switched to using pcap_dispatch from pcap_loop
for better control of packet processing. Added performance measurements.
Fixed -T flag and commandline help functionality. Added -M flag
to write messages/warnings to syslog (doesn't write alert data there)
when not in daemon mode.
* src/tag.c:
Put limit on tagging to alleviate overloaded databases that result
in every packet being tagged on high bandwidth sensors. Prevents
database DoS with tagging rules.
* src/util.c:
* src/util.h:
Fixed issue with reentrant signal handlers. At exit because of signal,
snort now logs to snort_exit file instead of syslog. Updated pid
file creation when in Inline mode.
* src/detection-plugins/Makefile.am:
* src/detection-plugins/sp_asn1.c
* src/detection-plugins/sp_asn1_detect.c:
* src/detection-plugins/sp_asn1_detect.h:
* src/detection-plugins/sp_urilen_check.c:
* src/detection-plugins/sp_urilen_check.h:
Modularized ASN1 detection code.
Added URI Length check rule keyword. Thanks to Chris Sherwin
for the new functionality.
* src/dynamic-plugins/.cvsignore:
* src/dynamic-plugins/Makefile.am:
* src/dynamic-plugins/sf_dynamic_common.h:
* src/dynamic-plugins/sf_dynamic_detection.h:
* src/dynamic-plugins/sf_dynamic_engine.h:
* src/dynamic-plugins/sf_dynamic_meta.h:
* src/dynamic-plugins/sf_dynamic_plugins.c:
* src/dynamic-plugins/sf_dynamic_preprocessor.h:
* src/dynamic-plugins/sp_dynamic.c:
* src/dynamic-plugins/sp_dynamic.h:
* src/dynamic-plugins/sp_preprocopt.c:
* src/dynamic-plugins/sp_preprocopt.h:
* src/dynamic-plugins/sf_engine/.cvsignore:
* src/dynamic-plugins/sf_engine/Makefile.am:
* src/dynamic-plugins/sf_engine/bmh.c:
* src/dynamic-plugins/sf_engine/bmh.h:
* src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c:
* src/dynamic-plugins/sf_engine/sf_snort_packet.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_byte.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_hdropts.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_loop.c:
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
* src/win32/WIN32-Prj/sf_engine.dsp:
* src/rules.h:
Added dynamically loadable rule detection capability.
Can write compiled rules that are "blackboxed", yet still loaded
at runtime. Thanks Andy Mullican, Steven Sturges and Marc Norton.
* src/fpcreate.c:
* src/fpcreate.h:
* src/fpdetect.c:
Performance measurments, added support for dynamic rule detection,
and fix issue with non-content rules not being evaluated.
* src/parser.c:
* src/parser.h:
Added dynamic rule and preprocessor parsing, rule state parsing,
performance profiling parsing.
* src/signature.c:
* src/signature.h:
Added 'gid' and 'metadata' fields to rules.
* src/detection-plugins/sp_pcre.c:
Provide ability to turn off PCRE checks via config nopcre.
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.c:
* src/dynamic-plugins/sf_preproc_example/sf_dynamic_preproc_lib.h:
* src/dynamic-preprocessors/.cvsignore:
* src/dynamic-preprocessors/Makefile.am:
* src/dynamic-preprocessors/dynamic_preprocessors.dsp:
* src/dynamic-preprocessors/initialize_headers.sh:
* src/dynamic-preprocessors/sf_dynamic_initialize/.cvsignore:
* src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp:
Added dynamically loadable preprocessor support. Simplifies
development of preprocessors for quicker release of new preprocessor
code. Thanks Andy Mullican, Steven Sturges and Marc Norton.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/perf.c:
Added metric for inline blocked packets.
* src/preprocessors/perf-flow.c:
* src/preprocessors/perf-flow.h:
Added better performance tracking for flow data for ports under 1024
and those above.
* src/preprocessors/portscan.c:
Added code to ignore certain ports. Added performance measurements.
* src/preprocessors/snort_httpinspect.c:
Updated for stream API. Added performance measurements.
* src/preprocessors/spp_frag2.c:
Updated for preprocessor protocol ordering.
To be deprecated in next release. Added performance measurements.
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_sfportscan.c:
Updated for preprocessor protocol ordering.
Added performance measurements.
* src/preprocessors/Makefile.am:
* src/preprocessors/spp_portscan.c (removed):
* src/preprocessors/spp_portscan.h (removed):
* src/preprocessors/spp_portscan2.c (removed):
* src/preprocessors/spp_portscan2.h (removed):
* src/preprocessors/spp_conversation.c (removed):
* src/preprocessors/spp_conversation.h (removed):
Deprecated old portscan preprocessors.
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
Modularized this code for use by the dynamic SMTP preprocessor.
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/event_wrapper.c:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/stream.h:
* src/preprocessors/stream_api.h:
* src/preprocessors/stream_ignore.c:
* src/preprocessors/stream_ignore.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream4.h:
Added api for Stream4 to help with development of next generation
Stream processing. Flowbits are now stored as part of the Stream.
Updated output plugins to use Stream api for logging reassembled
packets. Added performance measurements.
* src/sfutil/Makefile.am:
* src/sfutil/getopt.h:
* src/sfutil/getopt1.h:
* src/sfutil/getopt_long.c:
Added longname commandline option support.
* src/sfutil/ipobj.c:
* src/sfutil/ipobj.h:
Updated IP Set to include port sets.
* src/sfutil/mpse.c:
Added performance measurements.
* src/snort_packet_header.h:
* src/win32/WIN32-Includes/libnet/gnuc.h:
* src/debug.c:
* src/detection-plugins/sp_pattern_match.c:
* src/output-plugins/spo_alert_prelude.c:
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/flow/portscan/server_stats.c:
* src/sfutil/bitop.h:
* src/sfutil/bitop_funcs.h:
* src/sfutil/mwm.h:
* src/sfutil/sfghash.h:
* src/sfutil/sfksearch.c:
* src/sfutil/sfksearch.h:
* src/.cvsignore:
Misc code cleanup.
2006-01-09 Steven Sturges <ssturges@sourcefire.com>
* src/sfutil/mwm.c:
Fixed bug with multiple recurring patterns in Wu-Manbher implementation.
Thanks to Evan Stawnyczy for pointing it out and Marc Norton for the
fix.
* src/parser/IpAddrSet.c:
Fixed problem with parsing conf file and rules when DNS is not working.
Thanks Martin Olsson for mentioning this and testing the fix.
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/perf-base.c:
Handle wrapping on 64-bit platforms
2005-11-17 Andrew Mullican <amullican@sourcefire.com>
* src/sfutil/sfxhash.c:
* src/preprocessors/portscan.c:
Add tracker without using bogus data, to avoid internal buffer overrun.
Thanks Sandro Poppi for the find.
2005-11-11 Steven Sturges <ssturges@sourcefire.com>
* src/snort.c:
Allow value of 0 to be used with -G flag
* src/preprocessors/spp_bo.c:
Code Cleanup
* src/preprocessors/spp_frag3.c:
Fix memory leak and mishandling of IP Options. Thanks Yin
Zhaohui for the find.
2005-10-16 Steven Sturges <ssturges@sourcefire.com>
* etc/gen-msg.map:
* etc/snort.conf:
* src/generators.h:
* src/preprocessors/spp_bo.c:
Fixed potential buffer overflow in BackOrifice preprocessor and
added an alert on attempt to overflow buffer in snort. Thanks
Andy Mullican for the fix.
2005-10-11 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Prj/snort_installer.nsi:
Updated to mention WinPCAP 3.1 with correct website. Thanks
Gianluca Varenni for mentioning the discrepancy.
2005-10-04 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Libraries/libnet/LibnetNT.lib:
* src/win32/WIN32-Prj/LibnetNT.dll:
Rebuilt and updated LibnetNT linked with WinPCAP 3.1.
2005-09-23 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_log_database.c:
* schemas/create_mysql:
Fixes to address schema being a keyword in MySQL 5.0. Thanks Wes Young,
Adolfo Gomez, and Aleem Mawji for the updates.
2005-09-19 mfr <roesch@sourcefire.com>
* src/output-plugins/spo_log_tcpdump.c:
don't try to actually open the log file when in test mode
2005-09-19 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Includes/NETINET/IP.H:
* src/win32/WIN32-Includes/NETINET/IP_VAR.H:
* src/win32/WIN32-Includes/libnet/LibnetNT.h:
Always use winsock2.h
2005-09-16 mfr <roesch@sourcefire.com>
* src/snort.c:
New command line switch, -K, to explicitly set logging mode. Available
arguments are "none", "pcap" and "ascii".
Pcap mode is now the default logging mode of Snort.
CheckLogDir() is no longer called in IDS mode until after reading in
the snort.conf file to prevent unncessary exiting due to logdir being
specified in snort.conf and inadvertantly checking for the existence
of /var/log/snort.
* src/util.c:
Included CheckLogDir() call in CreatePidFile() on the off chance
we have to fall back to using pv.log_dir which can happen due to
the IDS mode logdir check being removed in src/snort.c
* src/decode.c:
Added check for bad length of TCP SACK option.
* snort.8:
Updated for -K command line switch
* doc/README:
Updated for new command line options and default logging mode.
2005-09-16 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
Additional fixes to better handle various targets and extensions to
the Shankar/Paxson model. Thanks Judy Novak for all of the OS
testing & pcap work.
2005-09-14 Andrew Mullican <amullican@sourcefire.com>
* etc/gen-msg.map
* src/generators.h
* src/preprocessors/spp_rpc_decode.c:
Added new alert on zero-length RPC fragment.
2005-09-14 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Includes/pcap-namedb.h (removed):
* src/win32/WIN32-Includes/pcap.h (removed):
* src/win32/WIN32-Includes/WinPCAP/Devioctl.h:
* src/win32/WIN32-Includes/WinPCAP/Gnuc.h:
* src/win32/WIN32-Includes/WinPCAP/Ntddndis.h:
* src/win32/WIN32-Includes/WinPCAP/Ntddpack.h:
* src/win32/WIN32-Includes/WinPCAP/Packet32.h:
* src/win32/WIN32-Includes/WinPCAP/Win32-Extensions.h:
* src/win32/WIN32-Includes/WinPCAP/bittypes.h:
* src/win32/WIN32-Includes/WinPCAP/bucket_lookup.h:
* src/win32/WIN32-Includes/WinPCAP/count_packets.h:
* src/win32/WIN32-Includes/WinPCAP/ip6_misc.h:
* src/win32/WIN32-Includes/WinPCAP/memory_t.h:
* src/win32/WIN32-Includes/WinPCAP/normal_lookup.h:
* src/win32/WIN32-Includes/WinPCAP/pcap-bpf.h:
* src/win32/WIN32-Includes/WinPCAP/pcap-int.h:
* src/win32/WIN32-Includes/WinPCAP/pcap-stdinc.h:
* src/win32/WIN32-Includes/WinPCAP/pcap.h:
* src/win32/WIN32-Includes/WinPCAP/pthread.h:
* src/win32/WIN32-Includes/WinPCAP/remote-ext.h:
* src/win32/WIN32-Includes/WinPCAP/sched.h:
* src/win32/WIN32-Includes/WinPCAP/semaphore.h:
* src/win32/WIN32-Includes/WinPCAP/tcp_session.h:
* src/win32/WIN32-Includes/WinPCAP/time_calls.h:
* src/win32/WIN32-Includes/WinPCAP/tme.h:
* src/win32/WIN32-Includes/mysql/Libmysql.def (removed):
* src/win32/WIN32-Includes/mysql/config-netware.h:
* src/win32/WIN32-Includes/mysql/config-os2.h:
* src/win32/WIN32-Includes/mysql/config-win.h:
* src/win32/WIN32-Includes/mysql/dbug.h (removed):
* src/win32/WIN32-Includes/mysql/errmsg.h:
* src/win32/WIN32-Includes/mysql/libmysql.def:
* src/win32/WIN32-Includes/mysql/libmysqld.def:
* src/win32/WIN32-Includes/mysql/m_ctype.h:
* src/win32/WIN32-Includes/mysql/m_string.h:
* src/win32/WIN32-Includes/mysql/my_alloc.h:
* src/win32/WIN32-Includes/mysql/my_dbug.h:
* src/win32/WIN32-Includes/mysql/my_getopt.h:
* src/win32/WIN32-Includes/mysql/my_global.h:
* src/win32/WIN32-Includes/mysql/my_list.h:
* src/win32/WIN32-Includes/mysql/my_pthread.h:
* src/win32/WIN32-Includes/mysql/my_sys.h:
* src/win32/WIN32-Includes/mysql/mysql.h:
* src/win32/WIN32-Includes/mysql/mysql_com.h:
* src/win32/WIN32-Includes/mysql/mysql_embed.h:
* src/win32/WIN32-Includes/mysql/mysql_time.h:
* src/win32/WIN32-Includes/mysql/mysql_version.h:
* src/win32/WIN32-Includes/mysql/mysqld_error.h:
* src/win32/WIN32-Includes/mysql/raid.h:
* src/win32/WIN32-Includes/mysql/typelib.h:
* src/win32/WIN32-Libraries/Packet.lib:
* src/win32/WIN32-Libraries/wpcap.lib:
* src/win32/WIN32-Libraries/mysql/mysqlclient.lib:
* src/win32/WIN32-Prj/snort.dsp:
Updated to use WinPCAP 3.1 and MySql client 4.13. Preparation for
Snort 2.4.1 release on Win32.
2005-09-14 Steven Sturges <ssturges@sourcefire.com>
* src/snort.c:
Mark -z option as to be deprecated.
* src/preprocessors/spp_frag3.c:
Fix issue with Teardrop alerts introduced with last update.
2005-09-01 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/decode.h:
Fix snort decoder to correctly handle PPP over Ethernet decoding.
Thanks Aristeu Gil Alves Jr for the pcap.
* src/snort.c:
* src/util.c:
* configure.in:
Added patch for time stats from Bill Parker. Enable with
configure --enable-timestats.
* src/snort.c:
Do not allow -T (test mode) & -D (daemonize) together.
* src/preprocessors/spp_frag3.c:
Fix issue with Teardrop alerts.
* src/preprocessors/spp_portscan.c:
* src/preprocessors/spp_portscan2.c:
Add deprecation warning. These will be deprecated in the next
snort build.
2005-08-31 Steven Sturges <ssturges@sourcefire.com>
* src/snort.c:
* src/decode.c:
* src/decode.h:
Added decoder for IPEnc for Open BSD. Thanks Jason Ish for the
patch (long time ago) and Chris Kuethe for reraising the issue.
* src/snort.c:
Allow snort to use usernames (-u) and groupnames (-g) that include
numbers. Thanks to Shaick for the patch.
2005-08-29 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_sfportscan.c:
* etc/snort.conf:
* doc/README.sfportscan:
Change ip_proto to ip for portscan configuration. Thanks David Bianco
for pointing this out and Andy Mullican for the updates.
* src/snort.c:
Fix broken -T option. Thanks Andy Mullican for the fix.
* src/output-plugins/spo_alert_prelude.c:
Fix for prelude initialization. Thanks Yoann Vandoorselaere for the
update.
* src/preprocessors/spp_frag3.c:
* doc/README.frag3:
Update to address Solaris reassembly issues. Update README to
include info about new target-based policy.
2005-08-23 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
Resolve some issues with handling of overlap conditions, multiple
fragments with MoreFrags bit not set and added target based policies
for windows and solaris (since they are actually different in
certain cases).
* src/preprocessors/stream.h:
Added data structure padding to fix issues with 64bit Solaris.
* src/log.c:
Fix problem in sniffer mode when incomplete TCP option data is received.
Thanks A Hernandez for the find.
* src/decode.c:
Set the source & dest ports used for logging before doing checksum
verification. If invalid checksum, ports will be logged (even though
they may be invalid).
Wrapped alerts for same src/dst and loopback in mode==IDS & decoder
alert checks.
* src/plugbase.h:
Use hex values for preprocessor bitmask constants instead of the
decimal equivalent.
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_byte_check.c:
Allow for signed offset values to handle negative offset in
rules. Fixes potential issue on 64-bit architectures.
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
For content matches, when subsequent rule options fail, start searching
again in correct location instead of again at end of the currently
found pattern.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/perf.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/spp_xlink2state.c:
* src/preprocessors/str_search.c:
* src/preprocessors/xlink2state.c:
* src/sfutil/asn1.c:
* src/sfutil/mpse.h:
* src/plugbase.c:
* src/snort.c:
Code/compiler warning cleanup.
2005-08-15 Steven Sturges <ssturges@sourcefire.com>
* src/decode.c:
* src/win32/WIN32-Includes/NETINET/IN_SYSTM.H:
Updated Win32 to handle pflog patch.
2005-08-15 Steven Sturges <ssturges@sourcefire.com>
* src/output-plugins/spo_alert_prelude.c:
* etc/snort.conf:
Fix GCC4 warning, make the arguments parser more robust and
less fault tolerant. Correct parsing of IDMEF severity mapping.
Don't try to initialize Prelude support when 'output alert_prelude'
is not specified. Removed deprecated documentation from the conf
file. Thanks Yoann Vandoorselaere for the updates.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/stream.h:
Fixed problem on Solaris when reassembling at exit.
Thanks Andrew Rucker Jones for identifying the issue.
* src/decode.c:
* src/decode.h:
* src/snort.c:
Added support for new OpenBSD pflog format. Older pflog format,
OpenBSD 3.3 and earlier, is still supported. Thanks Breno Leitao
and Christian Reis for the patch.
* src/decode.c:
* src/decode.h:
* src/util.c:
Added statistics counter for ETH_LOOPBACK packets. Thanks rmkml
for the patch.
2005-07-29 mfr <roesch@sourcefire.com>
* rpm/snort.spec:
Fix epoch inclusion for RPM generation
2005-07-29 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_stream4.c:
Fixed debug prints for new flush behavior changes.
* src/detection-plugins/sp_pattern_match.c:
Added checks to ensure some syntax correctness for content
rules. Thanks Erik de Castro Lopo for the patch.
2005-07-27 mfr <roesch@sourcefire.com>
* etc/snort.conf:
Changed snort.conf to reflect flush_behavior changes
2005-07-24 mfr <roesch@sourcefire.com>
* src/preprocessors/spp_stream4.c:
Fix parsing problem in the flush_behavior config directive
* etc/snort.conf:
Turn perfmonitor off by default
2005-07-22 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_stream4.c:
Changed flush_behavior to use names instead of numeric value.
New behaviors names are 'default', 'large_window', and 'random'
2005-07-22 Steven Sturges <ssturges@sourcefire.com>
* src/win32/WIN32-Includes/config.h:
Changed Snort version number
* src/detection-plugins/sp_pattern_match.c:
Fixed error message for replace
2005-07-22 mfr <roesch@sourcefire.com>
* src/preprocessors/HttpInspect/client/Makefile.am:
* src/preprocessors/HttpInspect/event_output/Makefile.am:
More cleanup
2005-07-22 mfr <roesch@sourcefire.com>
* src/preprocessors/HttpInspect/anomaly_detection/Makefile.am:
* src/preprocessors/HttpInspect/mode_inspection/Makefile.am:
* src/preprocessors/HttpInspect/normalization/Makefile.am:
* src/preprocessors/HttpInspect/server/Makefile.am:
* src/preprocessors/HttpInspect/session_inspection/Makefile.am:
* src/preprocessors/HttpInspect/user_interface/Makefile.am:
* src/preprocessors/HttpInspect/utils/Makefile.am:
Remove references to files in other directories
2005-07-22 mfr <roesch@sourcefire.com>
* rpm/snort.spec:
Fixup the spec file to reflect new method of rules distribution
2005-07-22 mfr <roesch@sourcefire.com>
* configure.in:
Fix PostgreSQL support
2005-07-21 mfr <roesch@sourcefire.com>
* src/snort.h:
Bump build number
2005-07-21 mfr <roesch@sourcefire.com>
* rpm/snort.spec:
* rpm/generate-all-rpms:
Setup for 2.4.0 release, removed inline build option from RPM generation
for the time being
* configure.in:
* Makefile.am:
* doc/Makefile.am:
Updated for 2.4.0 release to remove references to sig docs and rules,
which are now external to the distro
* etc/snort.conf:
Updated snort.conf for 2.4 release
2005-07-20 mfr <roesch@sourcefire.com>
* autojunk.sh:
Added --copy switch to automake call, patch from
Jeff Nathan <jeff@snort.org>
* congfigure.in:
Added maintainer mode call to prevent endless configure reruns. From
Jeff Nathan <jeff@snort.org>
2005-07-20 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/perf-base.c:
* src/preprocessors/perf.c:
Improved file handling of perfmon stats file rollover.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Provided ability to use 2 sets of static flushpoints as well as
random flushpoints for reassembly. Thanks Jason Brvenik for the
patch.
* src/plugbase.c:
* src/plugbase.h:
* src/preprocessors/snort_stream4_session.h:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/spp_stream4.c:
* src/snort.c:
* src/snort.h:
Added code to process unflushed Streams at snort exit
and when stream is purged from cache because of memory
issues.
* src/preprocessors/spp_telnet_negotiation.c:
Small fix for normalization of subnegotiation options.
2005-07-19 mfr <roesch@sourcefire.com>
* doc/BUGS:
Updated BUGS file for 2.4 release.
* configure.in:
Added PostgreSQL fixes and exit code patch from Javier
Fernandez-Sanguino Pena <jfs@computer.org>
2005-07-18 mfr <roesch@sourcefire.com>
* doc/README:
Updated the README file to reflect the current version of Snort and
command line switches that are available (and the ones that no longer
are available as well...)
2005-07-11 Steven Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_byte_jump.c:
Fixed log message.
* src/log.c:
Convert ICMP Router Advertisement time to host byte order before
printing.
* src/snort.c:
* src/snort.h:
* src/preprocessors/perf.c:
* src/preprocessors/perf.h:
* src/preprocessors/spp_perfmonitor.c:
Use singal to rollover perf stats file without having to restart
snort. Thanks Andrew Mullican for the patch.
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/spp_frag3.c:
Performance update for Frag3. Also added stats fields to Perfmon
for Frag3.
* src/sfutil/mwm.c:
Fix to handle multiple instances (different case) of the same pattern
when the matching one occurs later than the others.
* src/snort.c:
* src/output-plugins/spo_alert_prelude.c:
* src/output-plugins/spo_alert_prelude.h:
Fix to handle heartbeat and pthread issues with Prelude. Thanks Yoann
Vandoorselaere for the patch.
* src/sfutil/mwm.c:
* src/preprocessor/spp_sfportscan.c:
* src/preprocessor/HttpInspect/normalization/hi_norm.c:
Data initialization fixes. Thanks Yoann Vandoorselaere
for the patch.
* src/output-plugins/spo_database.c:
Update for Oracle output. Thanks Joel Esler for the fix.
* src/output-plugins/spo_unified.c:
Provide additional reliabilty for NT_SPECIAL_OUTPUT. Thanks
Eric Lauzon for the fix.
2005-06-10 Jeremy Hewlett <jh@snort.org>
* src/output-plugins/spo_alert_prelude.c:
Handle case when Packet pointer is NULL for Portscan alerts.
* src/preprocessors/spp_frag3.c:
* src/decode.c:
Fixed processing of fragmented UDP traffic.
2005-05-20 Jeremy Hewlett <jh@snort.org>
* src/preprocessors/spp_perfmonitor.c:
Fixed misprinted filename (mnorton).
* src/snort.c:
Allow -T flag when MUST_SPECIFY_DEVICE is enabled (mnorton).
2005-05-19 Jeremy Hewlett <jh@snort.org>
* src/parser/IpAddrSet.c:
Fixed problem with parsing IP addresses of 255.255.255.255 for
rules (ssturges).
2005-05-18 Jeremy Hewlett <jh@snort.org>
* src/decode.h:
* src/decode.c:
* src/generators.h:
* src/preprocessors/spp_frag3.c:
Added processing of IP Options in fragmented packets (ssturges).
Thanks Brice Cotte for getting us discussing this topic.
* src/preprocessors/snort_stream4_session.c:
Fixed potential memory corruption (ssturges).
2005-05-09 Jeremy Hewlett <jh@snort.org>
* src/parser.c:
Increase limit on number of rule options to 256 (was 64).
Report error if limit is reached -- previously, extra options
were ignored. Also increased max line length to 4096 chars, from
1024.
2005-05-09 Andrew Mullican <amullican@sourcefire.com>
* src/preprocessors/xlink2state.c:
Bugfix for PowerPC architecture.
2005-05-05 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/perf-base.c:
Updated to better match true on the wire and user data
values (Marc Norton).
2005-04-28 Jeremy Hewlett <jh@sourcefire.com>
* src/snort.c:
Added check for MUST_SPECIFY_DEVICE #ifdef, which if used,
requires either a -i or -r commandline switch to start snort. If
not used, current behavior remains (Marc Norton).
* autojunk.sh:
* configure.in:
* Makefile.am:
* etc/snort.conf:
* m4/libprelude.m4:
* m4/Makefile.am:
* src/plugbase.c:
* src/output-plugins/Makefile.am:
* src/output-plugins/spo_alert_prelude.c:
* src/output-plugins/spo_alert_prelude.h:
Added support for prelude, enable with --enable-prelude. Thanks
Yoann Vandoorselaere!
2005-04-26 Jeremy Hewlett <jh@sourcefire.com>
* src/parser/IpAddrSet.c:
Fixed Snort not resolving hostnames that start with a numeric and
also parsing of invalid CIDR blocks (Daniel Cid).
* src/plugbase.c:
* src/plugbase.h:
Remove unused functions str2s, hex2s, and int2s (Andy Mullican).
Thanks Jeff Nathan for pointing this out.
* src/preprocessors/spp_rpc_decode.c:
Ignore multiple rpc requests if in a rebuilt packet (Thanks Andy
Mullican).
* src/inline.c:
File descriptor clean up from Will Metcalf.
2005-04-22 Andrew Mullican <amullican@sourcefire.com>
* etc/gen-msg.map:
* src/generators.h:
* src/plugbase.c:
* src/preprocessors/Makefile.am:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream4.h:
* src/preprocessors/spp_xlink2state.c:
* src/preprocessors/spp_xlink2state.h:
* src/preprocessors/xlink2state.c:
* src/preprocessors/xlink2state.h:
* src/preprocessors/str_search.c:
* src/preprocessors/str_search.h:
Added xlink2state mini-preprocessor to catch MS Exchange buffer
X-Link2State data overflow.
2005-04-11 Jeremy Hewlett <jh@sourcefire.com>
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
Fixed error messages in byte_jump & byte_test rule options (Marc
Norton).
* detection_plugins/sp_byte_jump.c:
Fixed issue with 'multiplier' option. It is now being done before
the 'align' option. This helps with rules that look at SMB
traffic (Steve Sturges).
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/Makefile.am:
* src/preprocessors/snort_stream4_session.c:
* src/preprocessors/snort_stream4_session.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream4.h:
* src/sfutil/sfxhash.c:
* src/sfutil/sfxhash.h:
* etc/snort.conf:
Performance Improvements to Flow & Stream4 session management.
Also added limit to number of active sessions for Stream4, default
of 8192. Old memcap value now only applies to packets stored for
reassembly. Configure using preprocessor stream4: max_sessions
16384 in snort.conf (Steve Sturges).
* src/preprocessor/spp_perfmonitor.c:
* src/preprocessor/spp_perfmonitor.h:
* src/snort.c:
Added -Z flag to set full path name to PerfMonitor stats file.
This will override the file or snortfile configuration option
(Marc Norton).
2005-04-05 Jeremy Hewlett <jh@sourcefire.com>
* src/detect.c:
* src/fpdetect.c:
* src/log.c:
* src/snort.c:
* src/snort.h:
* src/tag.c:
* src/output-plugins/spo_unified.c:
Added a -G flag that specifies an instance identifier for the event
logs. Can be used when running multiple instances of snort, either
on different CPUs or on same CPU but different interface. Each
snort instance will use the value specified to generate unique
event ids. Can specify either a decimal value (-G 1) or hex value
preceeded by 0x (-G 0x11). Thanks Steve Sturges.
* src/decode.h:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
Fix to remove unnecessary ICMP echo extension, and update output
plugins to use ICMP header info. Thanks Kevin Douglas for finding
this and Andrew Mullican for the fix.
* src/decode.h:
* src/detect.c:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* etc/snort.conf:
Add option to Stream4 to limit server-side inspection for improved
performance. Similar to HttpInspect's flow-depth, this option
limits rule-inspection of server traffic to the set number of bytes
(in 1 or more packets) until another client request is seen. Thanks
Steve Sturges & Marc Norton
* src/plugbase.c:
Fix issue generating ascii strings. Thanks Sandro Poppi for the fix.
2005-04-01 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/spp_sfportscan.c:
Additional fixes for suppression issue with sfPortscan and Open
Ports. Fix for packets logged with bogus ip lengths (related to
Open Port alerts). Thanks Andy Mullican.
2005-03-25 Jeremy Hewlett <jh@sourcefire.com>
* src/output-plugins/spo_alert_syslog.c:
* src/snort.c:
Add snort's PID to syslog. Thanks Steve Sturges.
* src/preprocessors/spp_stream4.c:
Added to default ports in Stream4 and cleaned up Stream4
configuration processing. Thanks Steve Sturges.
* src/preprocessors/spp_frag3.c:
Added packet dump (debug only) to Frag3. Patch from Steve Sturges.
* src/sfthreshold.c:
Added detail to config error messages for thresholding. Patch from
Steve Sturges.
* src/fpdetect.c:
* src/plugbase.h:
* src/detection-plugins/sp_flowbits.c:
* src/preprocessors/spp_sfportscan.c:
Code Cleanup (general), thanks Steve Sturges.
* rpm/snort.org.spec:
* rpm/snort.logrotate:
Added schemas to distro, and 'sharedscripts' to logrotate. General
clean up of spec file. Thanks Josh Kelley for pointing this out.
2005-03-25 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/spp_sfportscan.c:
Fixed suppression issue with sfPortscan and Open Ports. Patch from
Andy Mullican.
2005-03-15 Jeremy Hewlett <jh@sourcefire.com>
* src/decode.c:
* src/parser/IpAddrSet.c:
* src/parser/IpAddrSet.h:
* src/preprocessors/spp_frag3.c:
* etc/generators:
Updates/Fixes to Frag3 IP reassembler (thanks ssturges):
1) Push first fragmented UDP packet through, but do not inspect
other fragmented packets (until rebuilt).
2) Printing of Configuration Info
3) Code readability
* src/parser.c:
Removal of comment parsing code added for 2.3.1.
* src/decode.c:
* src/generators.h:
Added support for detection of Lookback & Same src/dest attacks in
the packet decoder. This obsoletes sids 527, 528. Thanks Marc
Norton for the feature.
* src/detection-plugins/Makefile.am:
* src/plugbase.c:
* src/detection-plugins/sp_ftpbounce.c:
* src/detection-plugins/sp_ftpbounce.h:
Added FTP Bounce detection Plugin. Thanks Steve Sturges.
* src/detection-plugins/sp_flowbits.c:
Increased Flowbits hash table size. Thanks Marc Norton.
* src/fpcreate.c:
Performance improvement in pattern matcher from Marc Norton.
* src/decode.c:
* src/decode.h:
* src/fpdetect.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_frag3.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/snort.c:
* src/snort.h:
Eliminate duplicate alerts on Rebuilt Streams/IP reassembled packets.
Patch from Andy Mullican and Steve Sturges.
* src/preprocessors/portscan.c:
* src/preprocessors/sfportscan.c:
* doc/README.sfportscan:
* etc/generators:
* etc/gen-msg.map:
Added handling of midstream sessions in portscan preprocessors.
Thanks Andy Mullican.
* src/generators.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
* src/ubi_BinTree.c:
* src/ubi_BinTree.h:
* src/ubi_SplayTree.c:
* src/ubi_SplayTree.h:
* etc/gen-msg.map:
* etc/snort.conf:
Stream4 fixes - Handle PAWS, NULL TCP Flags in established session,
limit overlaps in established session, update ACK when server sends
RST. Performance changes for cleaning up session cache. Thanks
Steve Sturges and Andy Mullican for the patches.
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
* src/preprocessors/snort_httpinspect.c:
* doc/README.http_inspect:
Added uri_tab_delimiter option to HttpInspect. Patch from Andy
Mullican.
* src/preprocessors/perf-base.c:
Updates to PerfMon to handle multiple CPUs properly. Thanks Steve Sturges.
* src/preprocessors/spp_telnet_negotiation.c:
Fixed telnet decoder bug when ignoring Sub-negotiation end command.
Thanks Steve Sturges.
2005-03-08 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/spp_flow.c:
* src/detection-plugins/sp_flowbits.c:
Increased number of flowbits (mnorton)
2005-03-08 Steven Sturges <ssturges@sourcefire.com>
* src/parser.c:
Fixed parsing of comments at end of line in config file. In
snort.conf, anything that follows a # on a line is considered a
comment.
2005-03-04 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/spp_sfportscan.c:
Fixed alignment issue causing sfPortscan to crash on Solaris/HPUX.
Thanks Andy Mullican for the fix. Thanks Senthil Prabu.S and
Jonathan Miner for working with us on this.
2005-01-28 Jeremy Hewlett <jh@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/output-plugins/spo_unified.c:
* src/preprocessors/HttpInspect/utils/hi_util_kmap.c:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_sfportscan.c:
* src/sfthreshold.c:
Fixed compiler warnings and code formatting (tabs to spaces).
2005-01-20 Andrew Mullican <amullican@sourcefire.com>
* src/generators.h:
* src/preprocessors/spp_bo.c:
Added 2 BackOrifice alerts (1 client, 1 server) so that some alerts
can be suppressed.
2005-01-18 Steven Sturges <ssturges@sourcefire.com>
* src/plugbase.c:
* src/plugbase.h:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/snort_httpinspect.h:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_httpinspect.c:
* src/snort.c:
Change to verify that preprocessors have sufficient configuration
data to correctly operate.
* src/preprocessors/spp_frag3.c:
Fixes to Frag3 to only have one instance of preprocessor. Uses
policy context internally based on destination address of packet.
Previously, each Frag3 Policy would result in a separate
preprocessor instance. Also fixed use of ttl_limit option.
2005-01-18 Andrew Mullican <amullican@sourcefire.com>
* src/decode.c:
* src/decode.h:
* src/parser.c:
Added ability to ignore packets based on port. Syntax in
snort.conf is
config ignore_ports: <tcp|udp> <list of ports separated by whitespace>
where list of ports can also include port ranges (ports separated by :).
2005-01-17 Steven Sturges <ssturges@sourcefire.com>
* src/inline.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/perf.h:
* src/preprocessors/sfprocpidstats.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_frag3.c:
* src/preprocessors/spp_perfmonitor.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
Performance fixes to get correct 'on-the-wire' statistics. Added
'atexitonly' option for perfmonitor that results in performance
stats only being dumped when snort exits, rather than periodically
throughout snort's lifetime.
2005-01-13 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_frag3.c:
Fixed parsing of frag3 options to use space delimited options to
handle IP address lists correctly.
* etc/snort.conf:
Updated example options for frag3
2005-01-13 Marc Norton <mnorton@sourcefire.com>
* src/preprocessors/spp_sfportscan.c:
Fixed arithmetic to correctly set the ip packet length in the ip
header prior to writing the portscan info to the packet. Thanks Jon
Hart for the test case and finding the bug.
2004-12-23 Steven Sturges <ssturges@sourcefire.com>
* src/detect.c:
* src/detection-plugins/sp_byte_jump.c:
* src/detection-plugins/sp_pattern_match.c:
* src/parser.c:
* src/plugbase.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/snort_httpinspect.c:
* src/preprocessors/spp_conversation.c:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_stream4.c:
* src/sfthreshold.c:
* src/snort.c:
* src/util.c:
* src/util.h:
* src/sfutil/Makefile.am:
* src/sfutil/sfsnprintfappend.c:
* src/sfutil/sfsnprintfappend.h:
Fixed problem with logging that appeared in Snort 2.3.0 RC2, where
single lines were broken up when sent to syslog. Thanks Sekure for
pointing out the problem with thresholding.
* src/sfthreshold.c:
Fixed xatou function to check for non-digit parameter. Thanks nnposter for submitting
a patch!
2004-12-20 Jeremy Hewlett <jh@sourcefire.com>
* src/decode.h:
* src/win32/WIN32-Includes/config.h:
* src/win32/WIN32-Includes/stdint.h:
* src/win32/WIN32-Includes/syslog.h:
Reduces the number of warning on MingW/gcc. Thanks Gisle Vanem for
the patch!
2004-12-17 Jeremy Hewlett <jh@sourcefire.com>
* src/decode.c:
Fixed issue with snort not properly decoding ppp links on MacOS X.
Thanks Allan Jensen for reporting this and working with us on the
fix (Roelker).
2004-12-14 Jeremy Hewlett <jh@sourcefire.com>
* doc/README.http_inspect:
Updated documentation on flow_depth and HTTP headers per
conversations with Joe Patterson. Thanks Joe!
2004-12-09 Jeremy Hewlett <jh@sourcefire.com>
* src/preprocessors/spp_arpspoof.c:
Added variable names to function prototypes and made cosmetic
changes to debug messages. In ARPspoofHostInit() fixed a problem
where the list of configured IP/MAC entries would contain only one
entry and leaked memory. In DetectARPattacks() made a small
performance improvement by eliminating a copy of the ARP source
protocol (IP) address (Jeff Nathan).
* src/snort.h:
* src/snort.c:
* src/parser.c:
Fixed a problem affecting MacOS X where linking may fail with
non-standard libraries when global symbols are encountered multiple
times. Removed duplicate globals and externed globals in headers.
Defined globals in source. Made sure frag2 is only linked once
(Jeff Nathan).
2004-12-08 Daniel Roelker <djr@sourcefire.com>
* src/detect.c:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/fpdetect.c:
* src/inline.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
If the 'Q' option (inline) is set, set a global variable that can
be used externally.
* src/preprocessors/snort_httpinspect.c:
Update error message when IIS Unicode map file is not found.
* src/preprocessors/spp_stream4.c:
Ignore RST|ACK midstream pickup case so we don't get an evasive TCP
alert. Thanks for the report, Sekure.
* src/util.c:
* src/util.h:
* src/snort.c:
Change SanityChecks() to CheckLogDir() so the function name now
makes sense. Move CheckLogDir() to after parsing snort.conf (for
IDS mode), so the logdir config will work if the default or
command-line logdir does not exist on the system.
2004-11-19 Steven Sturges <ssturges@sourcefire.com>
* src/preprocessors/spp_telnet_negotiation.c:
Fixed issues with how telnet options are handled.
2004-11-18 Steve Sturges <ssturges@sourcefire.com>
* src/detection-plugins/sp_pcre.c:
Fixed bug when setting the doe_ptr on a successful pcre match.
It is now set relative to base_ptr.
* src/detection-plugins/sp_byte_jump.c:
Added from_beginning and multiplier options for byte_jump.
from_beginning skips bytes from the beginning of the content,
instead of from the location immediately following the number
of bytes to skip. multiplier takes a numeric argument, and
skips x times that number of bytes.
2004-11-04 Andrew Mullican <amullican@sourcefire.com>
* src/detect.c:
* src/detect.h:
* src/log.c:
In "fast" output, now log only actual packet contents when UDP
data length is greater than actual data length. Thanks Brian
Caswell for spotting this.
2004-11-04 Jeremy Hewlett <jh@sourcefire.com>
* configure.in:
Added --enable-64bit-gcc to set up the build environment for 64bit
(tested only on Solaris9). Still are some memory alignment issues
to work out before 64bit mode is fully functional, Patches are
welcomed. Thanks Chris Baker for doing 64bit testing.
* src/sfutil/sfmemcap.c:
Better support for 64bit Snort (mnorton).
2004-11-04 Andrew Mullican <amullican@sourcefire.com>
* src/output-plugins/spo_unified.c:
Fixed reference times to match log time for first packet, for an event
generated by a reassembled packet. Incremented event ID to give
unique ID for each packet. Also made unified logging compatible with
Windows.
2004-11-02 Jeremy Hewlett <jh@sourcefire.com>
* configure.in:
Changed linking order of libmysqlclient.
* src/detection-plugins/sp_rpc_check.c:
* src/preprocessors/spp_frag2.c:
* src/sfutil/acsmx2.c:
Fixes for compilation on 64-bit Solaris. Snort 2_3 branch compiles
cleanly (jhewlett, mnorton). Should be a few more changes coming
shortly.
* src/plugbase.c:
Compilation fix for AIX. Thanks Markus Waldeck.
* src/preprocessors/spp_perfmonitor.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/perf-base.h:
* src/preprocessors/perf.c:
* src/preprocessors/perf.h:
perfmonitor config line can now be configured with accumulate or
reset. (mnorton). Thanks Barry Basselgia for pointing out the issue.
Thanks Scott Dexter and Andreas Ostling for doing some initial
testing.
2004-10-21 Daniel Roelker <droelker@sourcefire.com>
* src/preprocessors/HttpInspect/client/hi_client.c:
Don't include the version string length as part of the
directory length. Caused some false positives if the oversize
directory length was set to small numbers. Thanks Jeremy
Hewlett for catching this one.
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/snort_httpinspect.c:
Fix false positives that were occurring on some events. Thanks
to Vjay Larosa for the report.
* src/preprocessors/perf-base.c:
* src/preprocessors/sfprocpidstats.c:
Fix linux perfmonitoring stats for the 2.6 kernel. Thanks to
everyone that reported this bug.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/stream.h:
Add an enforce_state keyword to stream4 so we won't pick up midstream
sessions. This works well for asynchronous links and also for
just monitoring legitimate traffic.
2004-10-13 Daniel Roelker <droelker@sourcefire.com>
* src/detect.c:
Fix suppression/thresholding bug for non-rule alerts. Thanks to
Alex Butcher for reporting it to us.
2004-10-11 mfr <roesch@sourcefire.com>
* src/util.c:
Fix divide by zero bug in TimeStats()
2004-10-05 Daniel Roelker <droelker@sourcefire.com>
* src/parser.c:
Fix bug in preprocessor error statement that referenced freed
memory. Thanks to Dennis George for submitting fix.
* src/detection-plugins/sp_pattern_match.c:
Fix content option modifiers so that they check the option specified
and not offset. Thanks to Petr Kurtin for pointing out this bug.
2004-10-04 Daniel Roelker <droelker@sourcefire.com>
* src/decode.c:
Fix TCP/IP options print bug that was found by Marcin Zgorecki.
* src/plugbase.c:
Move portscan initialization into preprocessors, not plugins.
* preprocessors/portscan.c:
Inspect invalid TCP initiators that stream4 doesn't track for portscans.
Log open ports on TCP portsweeps when we can. Thanks to #snort and
SGUIL guys for their comments and feedback. Also, thanks to David
Lowless for his portscan testing in the UK.
2004-10-04 mfr <roesch@sourcefire.com>
* src/preprocessor/spp_frag3.c:
* src/preprocessor/spp_frag3.h:
* src/generators.h:
* src/plugbase.c:
* src/plugbase.h:
New target-based IP defragmenter for Snort.
* src/parser/IpAddrSet.h:
* src/parser/IpAddrSet.c:
Added functions for improved set parsing, generation, finding
* src/preprocessors/flow/flow_cache.c:
Reformatted output printing for flowcache_stats() function
* src/preprocessor/spp_arpspoof.c:
* src/preprocessor/spp_bo.c:
* src/preprocessor/spp_conversation.c:
* src/preprocessor/spp_flow.c:
* src/preprocessor/spp_frag2.c:
* src/preprocessor/spp_httpinspect.c:
* src/preprocessor/spp_perfmonitor.c:
* src/preprocessor/spp_portscan.c:
* src/preprocessor/spp_rpc_decode.c:
* src/preprocessor/spp_stream4.c:
* src/preprocessor/spp_telnet_negotiation.c:
* src/preprocessor/spp_stream4.c:
Added context pointer handling to PreprocessorFunctionNode calls
* src/sfutil/sflsq.h:
* src/sfutil/sflsq.c:
Added a couple a list node delete and add function for the current ptr
* src/sfutil/sfxhash.h:
* src/sfutil/sfxhash.c:
Exposed sfxhash_free_node() function as a public function
* src/util.c:
* src/snort.c:
Added a modified version of Bill Parker's <dogbert@netnevada.net> run
timing patch
2004-09-20 Daniel Roelker <droelker@sourcefire.com>
* src/util.c:
Fix ts_print to work correctly for localtime logging.
* src/fpdetect.c:
Thresholded drop/sdrop rules should still drop the packet, but we
just won't alert on them. Thanks to Brian Starrfield for finding
this bug.
2004-09-17 Daniel Roelker <droelker@sourcefire.com>
* src/detect.c:
Fix tagging issue that would tag rebuilt TCP streams, which for most
output plugins this means we just relog the packets that we've
already logged. Thanks Jeremy Hewlett and Daniel Cid for finding
this bug.
* src/event_queue.c:
* src/event_queue.h:
Only flush a TCP stream on rule alerts and not on preprocessor alerts.
Thanks Jeremy Hewlett and Daniel Cid for finding this bug.
2004-09-13 Jeremy Hewlett <jh@sourcefire.com>
* src/detection_plugins/sp_react.c:
* src/detection_plugins/sp_react.h:
Wrap sp_react in #ifdef tests so it can be enabled concurrently
with sp_respond2 (Jeff Nathan).
* src/detection_plugins/sp_respond.c:
* src/detection_plugins/sp_respond.h:
Wrap sp_respond in #ifdef tests so it is mutually exclusive of
sp_respond2 (Jeff Nathan).
* configure.in:
* doc/Makefile.am:
* doc/README.FLEXRESP2:
* src/parser.c:
* src/snort.h:
* src/detection_plugins/Makefile.am:
* src/detection_plugins/sp_respond2.c:
* src/detection_plugins/sp_respond2.h:
Import version 2 of the flexible response system written by
Jeff Nathan
2004-09-08 Daniel Roelker <droelker@sourcefire.com>
* src/decode.c:
Drop bad checksums if we're in inline mode and we're doing checksums.
Thanks to William Metcalf and Victor Julien for this patch.
* doc/CREDITS:
Updated CREDITS with some major SourceFire contributors that were
not mentioned.
2004-09-07 Daniel Roelker <droelker@sourcefire.com>
* src/inline.c:
* src/inline.h:
* src/parser.c:
* src/snort.c:
* src/snort.h:
Make reject rule type work with linux bridging. Added config option
'layer2resets', which by default uses the interface specified by
the ipq packet. In addition, you can also specify a src mac address
so the sensor interface information is not apparent. Thanks to
William Metcalf and Victor Julien for this feature.
2004-09-02 Daniel Roelker <droelker@sourcefire.com>
* src/detect.c:
* src/fpdetect.c:
* src/preprocessors/spp_stream4.c:
Add inline state configuration for stream4, so we will drop packets that
are not part of an existing TCP session and are not valid TCP
initiators. Thanks Will Metcalf and Victor Julien for the initial
implementation. Add functionality for drop/sdrop rules that will still
drop a packet if the rule specifies "flow: established". We silently
drop the packet, so as not to be DOS'd by stick/snot attacks. If the
user wants the alerts, then add in the stream4 configuration of
'midstream_drop_alerts'.
* src/rules.h:
* src/detection_plugins/sp_clientserver.c:
Add not_established keyword to the flow detection option. This allows
snort to do dynamic firewall rulesets. Experimental for now, so if
any wants to try let me know.
* src/preprocessors/snort_httpinspect.c:
Fix conditions where snort would log double web alerts that contained
only content options (no uricontents). Thanks to kawa for finding and
reporting this bug.
2004-08-31 Daniel Roelker <droelker@sourcefire.com>
* src/fpdetect.c:
If InlineMode() is set, than the flow: established check will also
look to see if the TCP stream was picked up in midstream. If it was,
then we assume it's established. This also blocks packets that are
generated by stick/snot type attacks, whereas before these packets
were just being passed through because flow: established was not valid.
2004-08-27 Daniel Roelker <droelker@sourcefire.com>
* src/sfutil/sfmemcap.c:
Fix 64-bit bug found and tested by Ryan Matteson (matty91@bellsouth.net)
and Clay McClure (clay@daemons.net). Thanks guys.
* src/preprocessors/spp_stream4.c:
* src/preprocessors/snort_httpinspect.c:
When we pick up TCP sessions in midstream, don't use stream4 direction
to tell us how to inspect client and server traffic. Performance
enhancement for some sites.
* src/preprocessors/portscan.c:
Add more comments and make portscan detail printouts more readable.
2004-08-20 Daniel Roelker <droelker@sourcefire.com>
* src/util.c:
Make ts_print work correctly with timezones. Thanks to Dagobert
Kellner for the fix.
2004-08-19 Daniel Roelker <droelker@sourcefire.com>
* src/util.c:
Log an error when the user tries to setuid/gid and snort is being
run in inline. Thanks Matt Brannigan for finding this bug.
2004-08-13 Daniel Roelker <droelker@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c:
Ignore replace rule options when snort isn't in GIDS mode. (Roelker)
* src/decode.h:
* src/detect.h:
Set a packet_flag for drop alerts. This lets the output plugins
know that we just dropped the packet that we logged. (Roelker)
2004-08-11 Daniel Roelker <droelker@sourcefire.com>
* src/inline.c:
* src/spo_unified.c:
Make inline alerts work with unified output. Thanks for the help
in unified format Andrew Baker.
* src/util.c:
Added ASCII pig (thanks Dug Song) and snort team to snort initialization
printout.
* src/output-plugins/spo_log_tcpdump.c:
Check to make sure we have a pointer before we reference a structure
element.
2004-08-05 Daniel Roelker <droelker@sourcefire.com>
* src/log.c:
* src/detect.c:
Make tagging work for more than 1 second. (Daniel Roelker)
* src/detect.c:
* src/fpdetect.c:
Get thresholding/suppression to work for alerts that do not
contain an iph header (primarily decode alerts). Thanks
Brian Caswell.
2004-08-04 Daniel Roelker <droelker@sourcefire.com>
* src/snort.c:
Fix inline printf's during initialize. Also fix return code on
invalid input for startup. This helps scripts so it returns
an error if the command line arguments in the script are wrong.
Thank you Matt Brannigan for this fix.
2004-07-28 Daniel Roelker <droelker@sourcefire.com>
* configure.in:
Added --include-pcre* configuration option to help cross compiling.
Thanks Erik de Castro Lopo.
* src/event_queue.c:
Fix bug in multi-event logging when thresholding/suppression was enabled
for events in the queue. Thanks once again to Andreas Ostling.
* src/output-plugins/spo_log_tcpdump.c:
When a rebuilt stream causes an alert, log out the original packets
instead of the rebuilt packet. Thanks Marty Roesch.
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Turn off some alerts in the profile that were causing false positives.
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
Turn off encoding alerts in HTTP parameter field. The parameter field
is still normalized, it just doesn't alert. This helps reduce alerts
that are generated from complex parameter queries.
2004-07-08 Daniel Roelker <droelker@sourcefire.com>
* etc/gen-msg.map:
* src/generators.h:
* src/plugbase.c:
* src/decode.h:
* src/preprocessors/portscan.c:
* src/preprocessors/portscan.h:
* src/preprocessors/spp_sfportscan.c:
* src/preprocessors/spp_sfportscan.h:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_flow.c:
* src/preprocessors/flow/flow.h:
Added new portscan detector. We now detect tcp, udp, icmp, and
ip protocol scans. Along with the following scan types (using
nmap terminology): portscan, decoy portscan, portsweep, and
distributed portscan. The initial version will have three sensitivity
levels, so if you want to change values manually go to portscan.c and
change the values there. I don't want to confuse people out of the
gate with lots of value configurations, so try these preset levels
and give us feedback. (Daniel Roelker)
2004-07-06 Daniel Roelker <droelker@sourcefire.com>
* configure.in:
* src/decode.c:
* src/decode.h:
* src/detect.c:
* src/detect.h:
* src/fpdetect.c:
* src/inline.c:
* src/inline.h:
* src/mstring.c:
* src/parser.c:
* src/rules.h:
* src/snort.c:
* src/snort.h:
* src/detection-plugins/sp_pattern_match.c:
* src/detection-plugins/sp_pattern_match.h:
* src/output-plugins/spo_database.c:
* src/preprocessors/spp_stream4.c:
Added IPS functionality from snort_inline. Thanks everyone that was
involved in that project. For more info, go check out
http://snort-inline.sourceforge.net.
* src/log.c:
Fixed memory leak in "fast" output. Thanks for your bug report
sekure@gmail.com.
2004-06-22 Chris Reid <chris.reid@codecraftconsultants.com>
* src/snort.c:
Clear error code which under Windows was causing a
subsequent false failure in parsing threshold rules.
(thanks to Rich Adamson)
2004-06-16 Daniel Roelker <droelker@sourcefire.com>
* src/sfutil/asn1.c:
* src/sfutil/asn1.h:
* src/detection-plugins/sp_asn1.c:
* src/detection-plugins/sp_asn1.h:
* src/debug.h:
* src/snort.c:
Added ASN.1 parsing and detection functionality to snort.
Please refer to README.asn1 for more information on rule
usage. (Roelker)
* src/parser.c:
Added parsing check from Andreas Ostling so that users don't
assume that destination port lists are allowed because no
error is given.
* src/preprocessors/spp_stream4.c:
Fixed rebuilt TCP packet munging reported by Steve Halligan.
Thanks a lot for getting this problem down to pcap so we could
analyze the problem.
* src/detect.c:
* src/event_queue.c:
* src/log.c:
* src/preprocessors/spp_stream4.c:
* src/sfutil/sfeventq.c:
Improve TCP reassembly flushing for TCP streams that have already
generated an alert. This was illustrated by Brian Bailey in his
SANS GIAC practical examination. Thanks for working with us on
this one.
2004-05-06 Daniel Roelker <droelker@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c:
Fixed rule read up error when parsing hexmode content options.
Thanks for pointing it out Marty. (Roelker)
* src/preprocessors/spp_stream4.c:
Fixed null pointer dereference when detect_scans were enabled and
creating a new session that had funky flags. Thanks to Chad
Kreimendahl for reporting the bug and testing the fix. (Roelker)
* src/snort.h:
at build 28
2004-04-22 Daniel Roelker <droelker@sourcefire.com>
* src/decode.c:
* src/detect.c:
* src/event_queue.c:
* src/event_queue.h:
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/fpcreate.c:
* src/fpcreate.h:
* src/parser.c:
* src/preprocessors/spp_arpspoof.c:
* src/preprocessors/spp_bo.c:
* src/preprocessors/spp_conversation.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_rpc_decode.c:
* src/preprocessors/spp_stream4.c
* src/sfutil/sfeventq.c:
* src/sfutil/sfeventq.h:
* src/signature.c:
* src/signature.h:
* src/snort.c:
Added new event queueing algorithm, so Snort logs multiple events
per packet/stream. The algorithm uses two ordering methods: priority
and content length. (Roelker)
* src/fpcreate.c:
* src/fpcreate.h:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/acsmx.c:
* src/sfutil/acsmx.h:
* src/sfutil/mpse.c:
* src/sfutil/mpse.h:
New Aho-Corasick pattern matchers (Norton). Added content length
tracking on otnx structures.
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/snort_httpinspect.c:
Added webroot alert. This alert is generated when a URL directory
traversal traverses past the webroot. Added new URI discovery
technique pointed out by Kanatoko.
* src/tag.c:
Revert to old tagging behavior. Will add new functionality in a future
version.
* src/util.c:
Changed Snort post-processing stats to unsigned so users won't get
negative stats. Thanks to various people from the community for
reporting this.
2004-03-22 Chris Reid <chris.reid@codecraftconsultants.com>
* src/plugbase.c:
* src/plugbase.h:
* src/output-plugins/spo_database.c:
Updated how current/utc times are calculated, as well
as how they are formatted (thanks Marcus Janoski)
2004-03-18 mfr <roesch@sourcefire.com>
* src/sfutil/acsmx2.c:
Fixed _toupper/_tolower calls on non-Win32 machines (again).
* src/preprocessors/spp_stream4.c:
Uncommented ssnptr set in BuildPacket() for Dan
2004-03-17 mfr <roesch@sourcefire.com>
* src/parser.c:
Added FatalError() in ProcessIP if closing IP-list '[' isn't found
* src/util.c:
Revamped DropStats() function to use screen real estate more efficiently
* src/event_wrapper.c:
QueueEvent checks to see if we're in MODE_IDS before queuing events and
ClearEventQueue() checks to make sure that the event_list has been
initialized.
* src/sfutil/acsmx2.c:
Fixed _toupper/_tolower calls on non-Win32 machines.
* src/sfutil/acsmx2.c:
Fixed acsmx.h call to acsmx2.h.
* doc/Makefile.am:
Mark snort_manual.pdf for cleanup too.
2004-03-16 Jeremy Hewlett <jh@sourcefire.com>
* src/snort.c:
* src/sfutil/acsmx2.c:
* src/sfutil/acsmx2.h:
* src/sfutil/Makefile.am:
New Aho-Corasick pattern matcher from Marc Norton - memory usage reduced by 75%.
* src/snort.h:
Build 26
2004-03-15 Jeremy Hewlett <jh@sourcefire.com>
* src/parser.c:
"config checksum_mode" now supports multiple arguments on one line
instead of multiple lines.
2004-03-15 Daniel Roelker <droelker@sourcefire.com>
* src/util.c:
Calculate dropped packets and received packets correctly. Thanks
Yoann Vandoorselaere for pointing this out.
2004-03-08 Daniel Roelker <droelker@sourcefire.com>
* configure.in:
Thanks to Erik de Castro Lopo for removing warnings.
* src/decode.c:
* src/decode.h:
* src/detect.c:
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/snort.c:
New event queuing and logging for decoder and stream4 events (Marty).
* src/fpdetect.c:
Return value for fpEvalPacket and reset BITOP array on HTTP
pipelines (Marty/Roelker).
* src/generators.h:
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/client/hi_client_norm.c:
* src/preprocessors/HttpInspect/event_output/hi_eo_log.c:
* src/preprocessors/HttpInspect/include/hi_eo_events.h:
* src/preprocessors/HttpInspect/include/hi_ui_config.h:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Added non-rfc chunk length encoding support, thanks for pointing it out
H.D. Moore, and added webroot alert which alerts on webroot directory
traversals (Roelker).
* src/debug.h:
* src/preprocessors/Makefile.am:
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_stream4.h:
* src/preprocessors/stream.h:
Added new TCP state engine (Marty).
* src/output-plugins/spo_unified.c:
Added stream packet logging for unified output, when alerting on
rebuilt streams (Marty).
* src/preprocessors/spp_conversation.c:
Fixed conversation parsing faults so users can operate this
preprocessor (Roelker).
* src/snort_packet_header.h:
Added for future support (Marty).
* src/snort.h:
Now on build 25.
2004-02-25 Jeremy Hewlett <jh@sourcefire.com>
* src/output-plugins/spo_csv.c:
Additional fixes from Alan Milligan with CSV output, thanks!
* src/sfutil/bitop.h:
Cleaning up unsigned/signed warnings
* src/snort.h:
Moving to build 24
2004-02-25 Chris Reid <chris.reid@codecraftconsultants.com>
* src/output-plugins/spo_database.c:
Removed escaping of '%' and '_' characters in MySQL (thanks
Kristofer Karas).
2004-02-23 Jeremy Hewlett <jh@sourcefire.com>
* snort.8:
Updated -T info to include where snort looks for "snort.conf." Thanks
Drew Smith for pointing that out.
* doc/snort_manual.tex:
Doc updates for thresholding - rule thresholds must contain a sid.
* src/detect.c:
* src/plugbase.c:
Changed some startup messages from printf to LogMessage to be more
consistent. Thanks for the patch, nnposter(at)users.sourceforge.net.
* src/snort.h:
Touched source code - bumping to 23
2004-02-17 Jeremy Hewlett <jh@sourcefire.com>
* src/output-plugins/spo_csv.c:
Fixed minor problems with CSV output not printing out src,srcport,
dst,dstport properly. Thanks for the patch, Bill Guyton. Good spot!
* src/snort.h:
Now at build 22
2004-02-13 mfr <roesch@sourcefire.com>
* templates/sp_template.h:
* templates/sp_template.c:
* templates/spp_template.h:
* templates/spp_template.c:
Updated to match the current reality of Snort.
2004-02-10 Jeremy Hewlett <jh@sourcefire.com>
* src/bounds.h:
* src/event.h:
* src/signature.h:
Added fix for compiling on Tru64 - bitypes.h now wrapped in an ifdef.
Thanks Hari Gopal and Darryl Cook for pointing out the problem and
testing.
* etc/snort.conf:
* doc/snort_manual.tex:
Various fixes pointed out by JP Vossen and Felipe Franciosi.
2004-02-09 Jeremy Hewlett <jh@sourcefire.com>
* src/Makefile.am:
Removed unnecessary libintsnort.a, which was causing problems for some
trying to compile on Solaris without the default system tools (ie: the
"ar" problem).
2004-02-05 Jeremy Hewlett <jh@sourcefire.com>
* Makefile.am:
Fixed tab vs space problem on Solaris. Thanks for the report, Chad
Kreimendahl!
2004-02-05 Daniel Roelker <droelker@sourcefire.com>
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps_snort.c:
Fixed alert_once bug that was discovered by Kevin Amorin. Thanks for
pointing out the particulars of the problem, so we could do a quick
fix.
2004-01-30 Daniel Roelker <droelker@sourcefire.com>
* src/decode.h:
* src/detection-plugins/Makefile.am:
* src/detection-plugins/sp_flowbits.c:
* src/detection-plugins/sp_flowbits.h:
* src/parser.c:
* src/plugbase.c:
* src/preprocessors/flow/flow_cache.c:
* src/preprocessors/flow/flow_cache.h:
* src/preprocessors/flow/flow.h:
* src/preprocessors/spp_flow.c:
* src/preprocessors/spp_flow.h:
* src/sfutil/bitop.h:
* src/snort.c:
Added Flowbits detection functionality. Thanks Brian Caswell for
initial code prototype.
* src/sys_include.h:
* src/ubi_BinTree.c:
* src/ubi_BinTree.h:
* src/ubi_SplayTree.c:
* src/ubi_SplayTree.h:
No more Log variables. Die, die, die . . .
2004-01-21 Jeremy Hewlett <jh@sourcefire.com>
* contrib/perfstats.c:
Added utility to parse out perfmon stats
* RELEASE.NOTES:
Added file to keep track of release notes. ChangeLog will migrate to
more detailed, code-oriented comments.
2004-01-20 Jeremy Hewlett <jh@sourcefire.com>
* src/detect.c:
Tagged Packets no longer have NULL msg name.
* src/output-plugins/spo_csv.c:
Minor CSV fixes from Elias Levy (Thanks Elias!)
* doc/snort_manual.pdf:
* doc/snort_manual.tex:
Minor LaTeX fixes from Jen Harvey (Thanks Jen!)
2004-01-16 Jeremy Hewlett <jh@sourcefire.com>
* src/decode.h:
* src/preprocessors/spp_stream4.c:
Fixed http_inspect double alerting on pkts and rebuilt streams. (Thanks
Andreas Ostling)
* src/detect.c:
Fixed double incrementing of pc.log_pkts on non-rule events.
* src/detect.h:
Removed duplicated SnortEvent() function.
* src/event_wrapper.c:
Added additional checks to GenerateSnortEvent().
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/include/hi_si.h:
* src/preprocessors/HttpInspect/session_inspection/hi_si.c:
* src/preprocessors/snort_httpinspect.c:
http_inspect proxy_alert now supports normal proxy networks setups.
http_inspect default server only valid if specified in config. (Thanks
Brent Erickson)
* src/snort.c:
Error on multiple interfaces on command line.
Corrected pcap_compile error. (Thanks Andreas Ostling).
* src/output-plugins/spo_csv.c:
Added string escaping for the msg.
2004-01-13 Chris Reid <chris.reid@codecraftconsultants.com>
* Added Oracle support into Win32 version. Much appreciation
to Adam Peterson and SPL Worldgroup Inc. for sponsoring this
development! This option will now be available within the
Win32 installer thanks to their contribution.
2004-1-13 Jeremy Hewlett <jh@sourcefire.com>
* src/detection-plugins/sp_session.c:
Fixed vague error message with directory creation problems (Thanks
Kenneth Ingham)
* src/event_wrapper.c:
* src/event_wrapper.h:
* src/preprocessors/flow/flow.c:
* src/preprocessors/flow/flow_cache.h:
* src/preprocessors/flow/flow_callback.h:
* src/preprocessors/flow/flow.h:
* src/preprocessors/flow/flow_stat.c:
* src/preprocessors/flow/flow_stat.h:
* src/preprocessors/flow/portscan/flowps.c:
* src/preprocessors/flow/portscan/flowps.h:
* src/preprocessors/flow/portscan/flowps_snort.c:
* src/preprocessors/flow/portscan/scoreboard.c:
* src/preprocessors/flow/portscan/scoreboard.h:
* src/preprocessors/flow/portscan/server_stats.c:
* src/preprocessors/flow/portscan/server_stats.h:
* src/preprocessors/flow/portscan/unique_tracker.c:
* src/sfutil/util_net.c:
* src/sfutil/util_net.h:
Fixed compilation problems on Solaris and some versions of BSD.
Thanks to the Snort community for your support. These fixes change the
variable type to u_int32 to remove the need for stdint.h
* src/output-plugins/spo_alert_unixsock.c:
Close Socket when Snort receives SIGHUP (Based on patch submitted by
Neetu Nangia)
* src/output-plugins/spo_csv.c:
Added GID, SID, and Rev to csv output (Thanks Brennen Reynolds)
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/spp_stream4.c:
Fixed build warnings on FreeBSD 5.0
* src/parser.c:
config chroot readded
* src/parser.c:
* src/parser.h:
Added additional error checking for custom rules (Thanks Andreas
Ostling)
* src/preprocessors/flow/flow_print.c:
Flow now honors -q (quiet)
* src/preprocessors/HttpInspect/client/hi_client.c:
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
Fixed issue with no_alert not quieting some alerts
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Removed non_rfc_chars from default profiles
* src/sfthreshold.c:
* src/sfutil/sfthd.c:
* src/sfutil/sfthd.h:
Added suppression negation (Thanks Andreas Ostling)
* src/sfthreshold.c:
Fixed backwards display of IP addresses on Solaris
* doc/FAQ:
* doc/README.csv:
* doc/README.http_inspect:
* doc/README.thresholding:
* doc/snort_manual.pdf:
* doc/snort_manual.tex:
Minor clarifications and additions.
2004-1-5 Daniel Roelker <droelker@sourcefire.com>
* src/fpdetect.c:
Fixes the signature error that user's were getting after changes
to the AddMatch and SelectEvent routines. Thanks Andreas Ostling,
Ron Shuck, Jon Hart, and Chris Keladis.
2003-12-22 Daniel Roelker <droelker@sourcefire.com>
* src/parser.c:
Andreas Ostling parser fixes and updated error messages.
2003-12-20 Chris Reid <chris.reid@codecraftconsultants.com>
* Win32 version wouldn't run as a service. Thanks to
Michael Steele for pointing this out.
2003-12-17 Chris Reid <chris.reid@codecraftconsultants.com>
* Updated Win32 to 2.1.
* src/output-plugins/spo_database.c:
Better support for ODBC. Better memory management (thanks
Jeff Nathan). Improved escaping of SQL strings.
2003-12-17 Daniel Roelker <droelker@sourcefire.com>
* Snort 2.1 Release
* src/decode.h:
Options struct element len, changed to octet. Thanks
Andrew Rucker.
* src/detection-plugins/sp_pattern_match.c:
Infinite looping patch during specific recursion processing.
Thanks Lawrence Reed.
* src/detection-plugins/sp_pcre.c:
Fixed pcre URI matching. Thanks Jeremy Hewlett.
* sp_respond.c:
Fixes to help respond actions to correlate more closely to
RFCs and now doesn't allow users to shoot themselves in
the foot.
* src/preprocessors/HttpInspect/normalization/hi_norm.c:
Only log DOUBLE DECODE alerts if it's in the URL and not
the parameter section.
* src/preprocessors/spp_stream4.c:
Sync stream4 up with the various versions of it. Fix
problem of out-of-order ACKS that was recognized by
Andrew Rucker. Also fixed off-by-one bug on reassembled
streams that was introduced by previous stream4 patch.
* src/sfutil/mwm.c:
* src/sfutil/mwm.h:
Fixed memory access bug in mwm content matching that multiple
users were able to reproduce.
* src/tag.c:
Pkt tagging configuration now works correctly. Thanks Jeremy
Hewlett for pointing this out.
2003-12-08 Chris Reid <chris.reid@codecraftconsultants.com>
* Updated Snort 2.1 Win32 installer
* Updated spo_database.c to escape sensor name strings.
This had been causing a problem under Windows with MySQL
because of WinPcap sensor names having embedded backslashes.
2003-12-03 Chris Reid <chris.reid@codecraftconsultants.com>
* Updated Snort 2.1 beta to support Win32
2003-11-18 Daniel Roelker <droelker@sourcefire.com>
* src/detection-plugins/sp_ip_proto.c:
Re-added ip_proto structure to ds_list so that the high-speed
detection engine once again optimizes on ip_proto rules.
2003-11-14 Chris Green <cmg@sourcefire.com>
* src/preprocessors/flow/portscan/flowps_snort.c:
* when using pktkludge output format, make destination address
the last one seen.
2003-11-07 Daniel Roelker <droelker@sourcefire.com>
* src/preprocessors/HttpInspect/user_interface/hi_ui_config.c:
Added some additional config options to server profiles all and iis.
* src/preprocessors/HttpInspect/client/hi_client.c:
Return invalid URI for configs that don't allow a tab as a URI
delimiter instead of processing. This helps reduce false positives
for servers that won't accept tabs as valid.
* autojunk.sh:
Added --add-missing to automake so the flow dependencies get installed.
* src/detection-plugins/sp_dsize_check.c:
Validate dsize argument so that it is a decimal number and a
positive integer.
2003-11-07 Martin Roesch <roesch@sourcefire.com>
* src/sfthreshold.c (print_thresholding):
Cleaned up linewrapped separators, cosmetic cleanup for 80-col
terminals
2003-11-06 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c (CheckANDPatternMatch):
Fixed a bug in sp_pattern_match that was introduced with the
recursive processing in 2.0.3 that resulted in a core dump due
to an OOB read
2003-11-04 Chris Green <cmg@sourcefire.com>
* src/log.c (PrintIPHeader): print frag size as the size of the
datagram - header
2003-11-04 Marc Norton <mnorton@sourcefire.com>
* src/snort.c (SnortMain): display thresholding information at
start up
2003-10-30 Chris Green <cmg@sourcefire.com>
* src/log.c (PrintIPHeader):
make fragsize print out the size of the payload rather than the
size of the header
2003-10-28 Marc Norton <mnorton@sourcefire.com>
* src/sfutil/mwm.c:
fixed bug with search-method mwm resulting in retesting removing
an active rule on occasion (Thanks to Raul Siles & David Perez
for a reproducible test case!)
2003-10-28 Chris Green <cmg@sourcefire.com>
* src/util.c (read_infile): make snort FatalErrror on bpf filter
problems (reported by Fran Loehmann)
2003-10-27 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_flow.c
(DEFAULT_MEMCAP):
make default memcaps much smaller
(FlowInit):
display correct memcap
2003-10-20 Chris Green <cmg@sourcefire.com>
* configure.in:
- removed smb alerting since it should be moved to barnyard
Major 2.1 Features
- Suppression/Thresholding by
- HttpInspect replaces http_decode by Dan
- Flow ( replaces spp_conversation )
- Flow-Portscan
- PCRE (www.pcre.org) is now required to build
- pcre keyword for regular expressions incorporated
- isdataat keyword to help with rule writing
See the doc/ subdirectory for more details
2003-10-02 Chris Green <cmg@sourcefire.com>
* src/parser.c (RuleType): func == NULL bug fix for Bart Haagdorens
* Incorporated Steve Grubb's HUP fix for -u users that aren't
doing Chroot.
2003-09-22 Chris Green <cmg@sourcefire.com>
* back from honeymoon
* src/preprocessors/spp_stream4.c (BuildPacket):
fixed DEBUG compilation/zero_flushed_buffers option
2003-09-10 Chris Green <cmg@sourcefire.com>
* Snort 2.0.2
* added flush_data_diff_size and zero_flushed_buffers for
stream4_reassemble
* added threhsolding (see doc/README.thresholding) from
Sourcefire/Marc Norton
2003-09-02 Chris Reid <chris.reid@codecraftconsultants.com>
* Updated Win32 code to properly support logging to
the Windows Event Log without including the Microsoft-
generated warning, as was previously observed.
2003-08-06 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeTCP):
fixed TCP_LARGE_OFFSET with patch from Bob Perkins
2003-07-28 Chris Reid <chris.reid@codecraftconsultants.com>
* Updated sp_pattern_match.c and win32_service.c to play nice with
Visual Studio .NET (thanks for feedback from Louis Jagoe).
2003-07-25 Chris Green <cmg@sourcefire.com>
* Makefile.am (dist-hook):
- add signatures kludges to fix up official tarballs
- fixed verstuff.pl to interpolate variables
* spp_arpspoof patches from Jeff Nathan
- Replaced unchecked malloc() calls with SnortAlloc
- Changed the parameter name ipmel to ip_mac_entry_list in functions
operating on this list for clarity
- Re-ordered sanity tests in the preprocessor function to prevent a null
pointer dereference and to identify early exit conditions
- Minor optimization to the overwrite detection code: if the overwrite list
hasn't been initialized return when entering the overwrite condition tests
- Use FreeToks instead of for() and free() for mSplit tokens.
- Implemented a CleanExit function suitable for CleanExit and Restart.
- Added CallLogFuncs calls to accompany all CallAlertFuncs calls (previously
CallLogFuncs was not used at all).
* src/decode.c (DecodeVlan):
- compile with --enable-debug
2003-07-22 Chris Green <cmg@sourcefire.com>
* Shortly after release:
- added verstuff.pl
- added dist-hook to run verstuff.pl to make the published
tarballs up to date on snort version
* Snort 2.0.1 Released
2003-07-18 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeUDP):
- fixed UDP checksums to not incorrectly calculate with a header
in host byte order
Thanks to Marc Norton & Jeremy Hewlett for helping
* src/detect.c (Preprocess):
- completely ignore invalid IP checksums throughout snort if we
are checking them.
2003-07-09 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeIEEE80211Pkt):
- fixed vlan decoding on lots of advice + patch from Michael
J. Pomraning over at SecurePipe. Thanks!
2003-07-03 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeIP):
- removed redundant flag setting operation
2003-07-01 Chris Green <cmg@sourcefire.com>
* src/preprocessors/http-resp.c (IsHttpServerData):
- ensure TCP state on discarded traffic
* src/preprocessors/spp_stream4.c (GetDirection):
- switch to using IP addresses
* src/preprocessors/spp_frag2.c (Frag2Defrag):
- ignore packets with bad checksums
2003-06-09 Marc Norton <marc.norton@sourcefire.com>
* src/fpdetect.c:
fixed pass not always superceding Alert when rule order was
Pass-Alert-Log
* src/fpcreate.c:
This fixes an initialization problem with the iBirDirection flag.
2003-06-04 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_bo.c:
log packet data
2003-05-30 Chris Green <cmg@sourcefire.com>
* src/snort.c: removed obsolete global flow variable
2003-05-28 Chris Reid <chris.reid@codecraftconsultants.com>
* Win32 patches from Fulvio Risso (of WinPcap) so -i parameter
can support both "-i 1" format, and also support named interfaces
like "-i \Device\Packet_{12345678-90AB-CDEF-1234567890AB}".
Fulvio also provided a more streamlined Win32 print_interface().
2003-05-27 Chris Green <cmg@sourcefire.com>
* src/output-plugins/spo_alert_sf_socket.c:
- made compile w/ debug
* src/detection-plugins/sp_session.c (OpenSessionFile):
refactored to do fatal error inside the lower level function
where filename is defined. Bug Reported by Jon Werrett.
2003-05-27 Andrew R. Baker <andrewb@sourcefire.com>
* Changed evalIndex to give precendence to help work around
problems with rule ordering when not using -o
2003-05-14 Andrew R. Baker <andrewb@sourcefire.com>
* src/Makefile.in:
* src/plugbase.h:
* src/spo_plugbase.h:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_alert_full.c:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_alert_smb.c:
* src/output-plugins/spo_alert_syslog.c:
* src/output-plugins/spo_alert_unixsock.c:
* src/output-plugins/spo_csv.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_null.c:
* src/output-plugins/spo_log_tcpdump.c:
* src/output-plugins/spo_unified.c:
Relocated Output Plugin API definitions to spo_plugbase.h
* src/detect.c:
* src/rules.h:
added support for per OptTreeNode output functions
* src/plugbase.c:
* src/output-plugins/Makefile.in:
* src/output-plugins/spo_alert_sf_socket.c:
* src/output-plugins/spo_alert_sf_socket.h:
Sourcefire UNIX datagram socket output plugin
2003-05-16 Chris Green <cmg@sourcefire.com>
* patches from jeff nathan
- config.h before HAVE's in strc*
- add OSX kludged support for /sw/include to libnet defaults
* added doc/signatures to Makefile.am
2003-05-13 Chris Reid <chris.reid@codecraftconsultants.com>
* Added sanity check in CleanExit() to prevent double-freeing
of memory during recursive call to CleanExit(). (Mark Scott)
2003-05-13 Chris Green <cmg@sourcefire.com>
* patches from Jeff Nathan
- calloc checks in detection-plugins
- old version of autoheader doesn't like arguments to
* add timersub.h to Makefile.am
* src/detection-plugins/sp_byte_check.c (ByteTest):
- FatalError if hex/oct are used w/o specifying the string parameter
* src/detection-plugins/sp_byte_jump.c (ByteTest):
- FatalError if hex/oct are used w/o specifying the string parameter
* src/preprocessors/spp_frag2.c (RebuildFrag):
fix integer wrap around on large packets resulting in invalid IP
dgrm lengths with large packets for frag2. Thanks to Jason Royes for
pointing it out.
will truncate large packets so that the total resulting frame is
less than 65535 unless you define DONT_TRUNCATE in config.h
This is unfortunately required for compatiblity for other pcap
applications.
* src/decode.c (DecodeTCP):
move port number assignment above option decoding so people don't
complain about decoder events on port 0.
2003-05-02 Chris Reid <chris.reid@codecraftconsultants.com>
* updated Win32 LibnetNT.dll (tested by Rich Adamson)
2003-04-28 Chris Green <cmg@sourcefire.com>
* updated create_postgresql (Frank Knobbe)
* solaris forte C compiler patches from Taso Devetzis)
2003-04-25 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_tcp_win_check.c (SetupTcpWinCheck):
- removed initialization message in debug
2003-04-24 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeTCPOptions):
- only alert on T/TCP if there is a CCECHO
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
* src/byte_extract.c:
* src/byte_extract.h:
- move the common extraction code to a single place
- fix 2 byte extraction code on little endian architectures
(Thanks to Jason Miller)
* src/bounds.h (inBounds):
- remove #include <snort.h>
2003-04-21 Chris Green <cmg@sourcefire.com>
* src/mwm.c (mwmPrepHashedPatternGroups):
- upon a fatal error, yell about
config detection: search-method lowmem
2003-04-16 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c (ParsePattern):
- u_int -> int for size check
- (slightly) more readable string handling code
* src/timersub.h:
import timersub macro from glibc and upcased it
* src/snort.c (InterfaceThread):
- Use TIMERSUB
* src/detect.c (AlertAction):
AlertFlushStream takes one argument now
* src/parser.c (ParseConfig):
disable_tcpopt_ttcp_alerts parsing --
Thanks for pointing it out Jeff Dell
* src/preprocessors/spp_stream4.c:
- removed unused argument to DeleteSpd
(AlertFlushStream):
- get the ssnptr variable from the packet structure
- unified logic for server and client side
- removed memthresholding because of large delays
* src/decode.h
(_Stream):
- get rid of dataPtr ( it's always the same thing as &s->data )
- add bytes_tracked variable for more memory protection
* src/preprocessors/spp_stream4.c:
- macroize sequence number type checks
(StoreStreamPkt):
- watch for how many packets we accept
2003-04-14 Chris Green <cmg@sourcefire.com>
* Snort 2.0.0 Released
2003-04-09 Chris Green <cmg@sourcefire.com>
* src/log.c,spo_database.c
(PrintTcpOptions):
(PrintIpOptions):
- correctly print out
* src/log.c,spo_database.c
(PrintTcpOptions):
(PrintIpOptions):
- correctly print out
* src/decode.c:
Last bastions of ErrorMessage @ decode in non-verbose mode
2003-04-09 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_byte_jump.c:
- another argument parsing bug ( Thanks Judy )
2003-04-07 Chris Green <cmg@sourcefire.com>
* src/decode.c:
Change all classifications to DECODE_CLASS
* src/detection-plugins/sp_byte_check.c (ByteJump/ByteCheck) - do
not SetUseDoe() for these functions. Doe is set automatically and
use_doe is only needed to be set by people wishing to make the
previous pattern match relative.
Build 69
* src/decode.h
- handle more FIN conditions
* src/preprocessors/spp_stream4.c (ReassembleStream4):
- adjusted established check
* src/preprocessors/spp_stream4.c (NotForStream4):
- refactoring
2003-04-04 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_byte_jump.c (ByteJump):
- make offsets work for byte_test and byte_jump
(Thanks Judy and Dan)
2003-04-03 Chris Green <cmg@sourcefire.com>
2.0.0rc3
* etc/snort.conf:
config detection: search-method lowmem
Incorporates a lower memory pattern matcher from Marc Norton for
people running into not being able to update to 2.0 due to
memory issues.
* src/snort.c (SnortMain):
- move InitOutputPlugins down ( 1.9 forward fix from Nick )
2003-04-01 Chris Green <cmg@sourcefire.com>
Build 67
* src/output-plugins/spo_alert_unixsock.c:
- moved unix socket format to .h
- moved default socket location to the logdir
( patches from Nick Zitzmann <dreamless@attbi.com>)
2.0.0 RC2
2003-03-31 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (CreateNewSession):
- don't act like a happy wallaby if the IP transport doesn't support
ECN but the reserved flags make it through crystal clear
* src/preprocessors/spp_frag2.c (_FragTracker):
only do 1 fragment tracker alert for things like teardrop
* src/preprocessors/spp_stream4.c:
- DisableDetect() instead of do_detect()
- flush on write ssn stats (andrewb fix)
* src/decode.c (DecodeUDP):
- correctly decode UDP packets (andrewb fix)
2003-03-27 Chris Reid <chris.reid@codecraftconsultants.com>
* src/tag.c
#ifdef should have been #ifndef
* src/acsmx.h
Have WIN32 use definition of "inline" from config.h
instead of a locally defined one
* src/output-plugins/spo_alert_syslog.c
* etc/snort.conf
Changed Win32 default host to "127.0.0.1"
(thanks to Rich Adamson)
* src/win32/WIN32-Prj/snort_installer.nsi
Added further installation instructions to help cut
down on the number of 'newbie' questions.
2003-03-28 Chris Green <cmg@sourcefire.com>
* src/parser.c (ParseConfig):
- make disable ipopt work (Thanks Tim Slighter)
* src/tag.c
(PrintTagNode):
new f()
- added static cling
(ParseTag): fixed parser
(AddTagNode):
- fixed src/dst tagging
- unified both tag cache logics
* src/debug.h:
* src/debug.c:
added DebugThis()
* etc/snort.conf
make the config options do what they say
* src/output-plugins/spo_alert_syslog.c (ParseSyslogArgs):
- only warn if we are parsing snort.conf ( -s )
* src/tag.h (SetTags):
- damn #if 0
* configure.in:
- remove snmp/ssl
2003-03-27 Chris Reid <chris.reid@codecraftconsultants.com>
Build 63
* src/snort.c
* src/output-plugins/spo_alert_syslog.c
Win32 '-s' now takes no arguments. Host/port info is
configured only within snort.conf (output alert_syslog).
2003-03-27 Chris Green <cmg@sourcefire.com>
* configure.in:
- changed to make DEBUG do -O0 and -g with gcc
(-ggdb makes gdb confused. go fig.)
* src/snort.c (ParseCmdLine):
-s means syslog() not -s args on win32
* src/output-plugins/spo_alert_syslog.c (ParseSyslogArgs):
- SnortAlloc
- allow -s to work again
2003-03-26 Chris Green <cmg@sourcefire.com>
* src/decode.c (DecodeTCP):
- bad format args (thanks Tim!)
RC1
* Incorporated Patches from Jeff Nathan
- libnet configure should work again
- randomize flexible response ttls
- add stop descriptor leaking
* src/decode.c (DecodeIPOptions):
truncation alerts for IP options too!
(InitDecoderFlags):
added decoder flags function
* src/log.c (Print(I|Tc)cpOptions):
- print out everything that I can
2003-03-25 Chris Green <cmg@sourcefire.com>
* src/signature.c (ReferenceSystemAdd):
- fixed the dang linked list
* rules/Makefile.in (EXTRA_DIST):
added pop2.rules
* src/decode.h (_Stream):
- removed current_seq to save memory
* src/preprocessors/spp_stream4.c
- added isBetween inline function
(UpdateState):
- incorrect ACTION_ACK_CLIENT_DATA
(StoreStreamPkt):
- comment clarification
* src/bounds.h:
- added new file
- moved standard bounds checking functions to this file
* src/detection-plugins/sp_react.c (ParseReact):
- give react a half a chance of working
(SendTCP):
- see above
* src/detection-plugins/sp_clientserver.c (ParseFlowArgs):
- fatal error on unknown option
* src/output-plugins/spo_database.c
(UpdateLastCid):
- added missing free()
(Database):
- correctly write out the class_id junk
* src/output-plugins/spo_alert_smb.c
(AlertSmb):
- print out the ports like was intended
* src/preprocessors/spp_portscan2.c (SLog):
- use fprintf for what it was designed for
* src/preprocessors/spp_portscan.c (LogScanInfoToSeparateFile):
- use fprintf for what it was designed for
* src/log.c
(PrintArpHeader):
- wireless arp printing fix
(PrintTcpOptions):
- strncpy -> memcpy
(PrintEapolKey):
- aligned printf
* src/decode.c (DecodeTRPkt):
- more truncation style alerts
2003-03-24 mfr <roesch@sourcefire.com>
* src/preprocessors/spp_stream4.c:
- changed PruneSessionCache() to only do timeout flushes if
we're over 50% of the memcap (should help performance)
* src/log.c:
- fixed broken Frag Size calculation in IP header printout routine
2003-03-21 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_session.c:
- fixed memory leak on filename creation
* src/preprocessors/spp_stream4.c (Stream4InitReassembler):
- make serveronly work
* src/preprocessors/spp_telnet_negotiation.c (NormalizeTelnet):
- check the byte, then increment
* src/detection-plugins/sp_byte_check.c (ByteTestParse):
more input validation for byte_check/byte_jump
* src/log.c (PrintWifiHeader):
- watch out for NULL bssid's
* src/tag.c
(TagHost):
- removed redundant check
(AddTagNode):
- accumulate the tag seconds rather than the idx->seconds
* src/detection-plugins/sp_pattern_match.c (PayloadSearchRegex):
- actually die on a regex option
( might actually get it developed later )
* src/decode.c
(DecodeIEEE80211Pkt):
- more truncated packet alerts
(DecodePPPoEPkt):
- alert on truncated pppoe pkts
- separate decoder for encapsulated PPP
(DecodeVlan):
- alert on truncated Vlan headers
(DecodeUDP):
- use the UDP header length field
instead of capture length
* src/detection-plugins/sp_byte_jump.c:
src/detection-plugins/sp_byte_check.c:
- protect against negative offsets
( don't rely on negative offsets working in the long term )
- don't continue when we can't parse string numbers
* src/detection-plugins/sp_respond.c (Respond):
- missing iph check
* src/detection-plugins/sp_ip_proto.c (IpProtoDetectorFunction):
- missing iph check
* sspp_asn1, fnord, spo_xml, spo_SnmpTrap
- removed ( will be available later as a contrib )
* src/preprocessors/spp_http_decode.c:
- switch to using chars for lookup tables
- removed extraneous sprintfing
- removed old TBD feature code
2003-03-17 Chris Green <cmg@sourcefire.com>
* src/snort.c (FPUTS_WIN32):
- changed to blank space rather than NULL
Build 60
New Options added to snort.conf
config: disable_tcpopt_experimental_alerts
config: disable_tcpopt_obsolete_alerts
config: disable_ttcp_alerts
config: disable_tcpopt_alerts
* src/preprocessors/spp_stream4.c
(ReassembleStream4):
- DisableDetect only if the emergency_status is NULL.
(CreateNewSession):
- fixed return logic with detect scans
* etc/gen-msg.map: WARNINGS: -> snort_decoder:
- new tcpopt events
* src/preprocessors/spp_rpc_decode.c (PreprocRpcDecode):
- change to use DisableDetect() instead of do_detect = 0;
(disables futher preprocessors)
(RPC_CLASS): Use the same classification as the other decoder alerts
* src/snort.h (_progvars):
- added DecoderFlags structure for enabling/disabling decoder alerts
* src/snort.h (_progvars):
- added tcpopt_alert_flag
* src/decode.c (DecodeTCP):
- print out warnings on bad header lengths in verbose mode
(DecodeTCPOptions):
- nearly complete rewrite to identify whizbang things like
bubba and skeeter options!
2003-03-14 Chris Reid <chris.reid@codecraftconsultants.com>
Build 59 (really this time)
* src/detect.c
- corrected un-initialized memory in CreateRuleType()
* src/snort.c
- rationalize Unix vs. Win32 command-line options
- add optarg for Win32 syslog '-s' parameter
- bugfix for Win32 syslog initialization
- thanks to Rich Adamson and L. Christopher Luther for helping
with the syslog fixes
* src/util.c
- provide Win32 fix for SetChroot()
* many files
- added missing CVS ID tags
- added missing copyrights
2003-03-13 Chris Green <cmg@sourcefire.com>
Build 59
* src/preprocessors/spp_stream4.c(TcpActionAsync):
- update server side seq numbers on Async State machine
* src/preprocessors/spp_stream4.c
(BuildPacket):
- Use Constants for IP Lens
- Move SPARC_TWIDDLE to only initialization
* src/preprocessors/spp_frag2.c
- removed killme variable from InsertFrag
- untabified
(RebuildFrag):
- converted to creating fake packets the same way as stream4
2003-03-10 Chris Green <cmg@sourcefire.com>
Build 58
* src/util.c:
- new functions SetChroot, CurrentWorkingDir,
SigChrootHupHandler, GetAbsolutePath
- Chroot + HUP == "tough luck for now
* src/snort.c (SnortMain):
- Chroot after parsing the rules file
- use fully qualified pathname for logdir in chroot case
* src/output-plugins/spo_unified.c (UnifiedInitAlertFile):
- removed a printf
2003-03-05 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_byte_check.c (ByteTest):
- never touch doe_ptr on a successful match
- inBounds check off by one when seeing if enough to read
* src/detection-plugins/sp_byte_jump.c (ByteJump):
- inBounds check off by one when seeing if enough to read
* src/detection-plugins/sp_pattern_match.c (uniSearchReal):
- inBounds check off by one when seeing if enough to read
2003-03-04 Chris Green <cmg@sourcefire.com>
* src/util.h (inBounds):
end is always dsize + len so it should be p < end
* src/preprocessors/spp_stream4.c (UpdateState):
- added return ACTION_ACK_CLIENT_DATA
* src/detection-plugins/sp_pattern_match.h (_PatternMatchData):
- changed check_distance to use_doe ( check_distance was not used )
* src/detection-plugins/sp_pattern_match.c
(uniSearchReal):
- new function to unify uniSearchCI & uniSearch
- all "work" related to distance, within, depth, and offset done
in one place now
(CheckANDPatternMatch):
- condensed this down to be a very small wrapper around uniSearch
( now !content will alert with offset on small packets)
(CheckUriPatternMatch):
- condensed this down to be a very small wrapper around uniSearch
* src/detection-plugins/sp_byte_check.c:
* src/detection-plugins/sp_byte_jump.c:
- inBounds function
- doe_ptr
- SetUseDoe
- TEXTLEN constant
* src/generators.h (RPC_MULTIPLE_RECORD_STR):
fixed cut and pasto
* src/util.h (inBounds):
added new inBounds function to check a ptr position against a
known start and end location
* src/mstring.c (mSearch):
subsequent offsets adjusted correctly (Marty)
* src/preprocessors/spp_rpc_decode.c
- redefine MSB
- write fraghdr back into pkt
- removed extraneous printf
* src/preprocessors/spp_rpc_decode.c:
- readded config.h and strings.h (Thanks Chad)
* src/preprocessors/spp_stream4.c
- suspend renabling mode fixes
2003-03-03 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_rpc_decode.c (PreprocRpcDecode):
- alignment errors on non-x86 platforms
- added new space delimited options
alert_fragments
no_alert_multiple_requests
no_alert_large_fragments
no_alert_incomplete
- corrected buffer overflow in fragment normalization
2003-02-28 Daniel Roelker <droelker@sourcefire.com>
* src/bitop.h:
* src/fpcreate.c:
* src/fpdetect.c:
- Fixed a problem when snort runs with only uricontent matches
and no contents. In this case an element in the bitop structure
never got initialized, so it's not good to reference that.
Problem was caught by Chris Green doing some unit testing.
2003-02-27 Chris Reid <chris.reid@codecraftconsultants.com>
* src/win32/WIN32-Prj/snort.dsp
* src/win32/WIN32-Prj/snort.mak
* src/win32/WIN32-Prj/snort.dep
- Removed an unnecessary file from the project (name.mc)
* src/win32/WIN32-Prj/build_releases.bat
- Script to easily compile all configurations of snort.
* src/win32/WIN32-Prj/snort_installer.nsi
* src/win32/WIN32-Prj/snort_installer_options.ini
- Scripts to build a Win32 installation program for snort.
Thanks to Chris Green for suggesting we use NSIS!
2003-02-19 Chris Reid <chris.reid@codecraftconsultants.com>
* src/snort.c
- Win32 '-s' parameter wasn't configured to accept an optarg,
but code expected one, causing null-pointer violation.
2003-02-16 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c (PreprocUrlDecode):
* remove broken checks.
* src/preprocessors/spp_telnet_negotiation.c (NormalizeTelnet):
* remove broken checks.
2003-02-15 bmc <bmc@snort.org>
* src/preprocessors/spp_asn1.c
- don't bother decodeing the packet if its 0 bytes
* src/preprocessors/spp_fnord.c
- don't bother decodeing the packet if its 0 bytes
- set DEBUG to DEBUG_PLUGIN instead of DEBUG_STREAM
* src/preprocessors/spp_http_decode.c
- don't bother decodeing the packet if its 0 bytes
- if stream4 is enabled, only decode if if is client data
on an established session
(This makes using internal_alerts useful)
* src/preprocessors/spp_rpc_decode.c
- don't bother decodeing the packet if its 0 bytes
- if stream4 is enabled, only decode if if is client data
on an established session
* src/preprocessors/spp_telnet_negotiation.c
- don't bother decodeing the packet if its 0 bytes
- if stream4 is enabled, only decode if if is client data
on an established session
2003-02-15 bmc <bmc@snort.org>
* src/detection-plugins/sp_byte_jump.c
actually verify that it needs aligning before aligning.
(more than 0 doesn't need aligned)
2003-02-15 bmc <bmc@snort.org>
* src/detection-plugins/sp_byte_jump.c
0 is already aligned to a 32-bit boundry...
2003-02-14 bmc <bmc@snort.org>
* src/mstring.c
Fix so --enable-debug actually compiles
2003-02-14 mfr <roesch@sourcefire.com>
* src/parser.c
Fixed XferHeader() function to copy the not_*p_flag to the RTNs...
* src/detection-plugins/sp_ip_proto.c
ip_proto options can now be stacked
2003-02-14 mfr <roesch@sourcefire.com>
* src/fpdetect.c
src/mstring.c
src/detection-plugins/sp_byte_check.c
src/detection-plugins/sp_byte_jump.c
src/detection-plugins/sp_pattern_match.c
Fixed distance/within/byte_test/byte_jump relative (stateful)
pattern matching and the like. Complete reimplementation of
payload position tracking. Tested with several different attack
scenarios with 100% detection rate, please test!
2003-02-04 Chris Reid <chris.reid@codecraftconsultants.com>
* src/snort.c
Added sanity checks on command-line parameters, for whenever a user
forgets to put spaces between (ie.) /SERVICE/INSTALL. This only
applies to /SERVICE parameter for Win32.
* src/util.c
- Updated Win32 banner for version 2.0
- Modified FatalError to generate a Win32 EventLog entry
if this is a Win32 Service build, otherwise no errors
are ever presented to the user.
* src/mwm.c
- Added an include of config.h, for Windows build.
- Changed variable names "small" and "large" into "small_value"
and "large_value" to prevent compile errors under Visual C++.
* src/mpse.c
* src/pcrm.c
- Added an include of config.h, for Windows build.
* src/parser/IpAddrSet.c
* src/preprocessors/perf-flow.c
- Added ifndef/endif around non-Win32 header files.
* src/preprocessors/perf-base.c
- Added changes to allow it to compile under Win32.
* src/preprocessors/perf.h
- Prevent definition of UINT64 under Win32.
* src/preprocessors/spp_asn1.c
* src/preprocessors/spp_bo.c
* src/preprocessors/spp_fnord.c
- Added documentation.
* src/win32/WIN32-Includes/config.h
- Added definition for UINT64 and uint64
- Changed VERSION to '2.0.0beta'
* src/win32/WIN32-Code/win32_service.c
- Changed how Win32 registry is opened for reading (was KEY_ALL_ACCESS,
now is KEY_READ). Problem (and patch) was reported by Michael Miller.
* src/win32/WIN32-Prj/snort.dsp
- Removed all references to SFStats compile options, since these stats
provide little useful information under Win32 due to API differences
between Win32 and Unix, specifically the lack of a native getrusage().
* src/win32/WIN32-Prj/snort.ncb
src/win32/WIN32-Prj/snort.opt
src/win32/WIN32-Prj/snort.plg
- Truncated the contents of these files.
2003-01-26 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c
(AlertFlushStream):
- Fixed problem where an alert on a stream
would update sequence numbers incorrenctly
- moved StoreStreamPkt up to avoid crash
Thanks to Lawrence Reed for pointing out problems and almost
perfect solutions
* src/detection-plugins/sp_clientserver.c (CheckForReassembled):
missing return in opt node check
affects only flow: only_stream
2002-1-17 Daniel Roelker <droelker@sourcefire.com>
* src/preprocessors/spp_perfmonitor.c:
Added 'snortfile' parameter to perfmonitor so users can use the
default snort directory to log performance statistics. Suggested
by L. Reed.
* src/preprocessors/spp_stream4.c:
Fixed performance statistic counter for total stream4 sessions. When
a new session is created, we make sure that it was created before
incrementing the counter. Fixed by L. Reed.
2003-01-07 mfr <roesch@sourcefire.com>
* configure.in
Added patch from Jeff Nathan to fix libnet detection
2003-01-05 mfr <roesch@sourcefire.com>
* src/util.h
Added self preservation control struct for the new SPAlloc function.
* src/util.c
Added self preservation-aware memory allocator, this allows coders
to add new subsystems requiring self preservation techniques using
a single allocation interface and management mechanism.
* src/detection-plugins
Changed the URI and AND checking modules to use the context pointer
on the fp_list struct instead of the ds_list. This will cause
all content/uricontent checks to be checked in the sequence that
they appear in a rule so that all the distance/within and
relative byte_test/byte_jump stuff will work properly. Merry Xmas
cazz!
* src/preprocessors/spp_frag2.c
Changed frag2 to use the new SPAlloc mechanism as a testing
platform. If this works right I'll convert all the other stuff
over to it as well.
2002-12-19 Andrew R. Baker <andrewb@sourcefire.com>
* src/detect.c:
* src/fpdetect.c:
* src/fpdetect.h:
* src/parser.h:
* src/rules.h:
* src/snort.c:
* src/snort.h:
Fix custom rule types and arbitrary rule ordering that were broken
with the new detection engine.
2002-12-13 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c (Frag2Defrag):
- added "state_protection" config mechanism to enable/disable
the thresholding operations
* src/preprocessors/spp_stream4.c:
- mark sessions that have been picked up midstream
- protect against people setting up snort behind a tap without
setting asynchronous link
- added "state_protection" config mechanism to enable/disable
the thresholding operations
* src/decode.h (SSNFLAG_MIDSTREAM): added a midstream pickup flag
2002-12-12 Daniel J. Roelker <droelker@sourcefire.com>
* src/fpcreate.c:
* src/fpdetect.c:
Fixed bi-directional rule functionality when unique port was the
destination port in a bi-directional rule. Reported by Brian
Caswell.
2002-11-26 Andrew R. Baker <andrewb@sourcefire.com>
* src/parser.c:
fixed argument handling bugs for snaplen and read_bin_file config
directives in snort.conf
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/util.h:
Modifications to signal handling and CleanExit/Restart
2002-11-26 Daniel Roelker <droelker@sourcefire.com>
* src/checksum.h:
Problem with ICMP checksum. Routine did not return the compliment
of the checksum. Thanks to Del Armstrong for point this out.
* src/decode.c:
Also, UDP checksums are only done if the checksum is 0. Otherwise,
we don't do them, even if the config is set for that. Again,
thanks to Del Armstrong for pointing this out.
2002-11-26 Chris Green <cmg@sourcefire.com>
* src/output-plugins/spo_database.c (BeginTransaction):
* removing BEGIN for oracle ( Chad Kreimendahl )
2002-11-25 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c
(TcpActionAsync):
(TcpAction):
-- removed extra decrements for last_ack
was causing a high false alarm rate for new \r\n rules.
Thanks to Jens Krabbenhoeft for helping on this one
-- disable nmap scans from alerting when we don't use detect_scans.
Thanks to Chad Kreimendahl for this one
2002-11-24 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c:
- fix argument parsing for emergency modes
* src/preprocessors/spp_frag2.c (ParseFrag2Args):
- fix argument parsing for emergency modes
2002-11-19 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c:
fixed a bug where we would shift to suspend mode if
stream4_reassemble wasn't enabled
2002-11-18 Chris Green <cmg@sourcefire.com>
Merging in mfr/cmg mitigations for extreme bogus session loads
* src/preprocessors/spp_stream4.c:
self_preservation_threshold: <bare new sessions/second>
self_preservation_period: <duration of SP mode>
suspend_threshold: <bare new sessions/second>
suspend_period: <duration of suspended operations>
emergency_ports: <port list> <-- port list that will be reassembled
* src/preprocessors/spp_frag2.c:
self_preservation_threshold: <bare new sessions/second>
self_preservation_period: <duration of SP mode>
suspend_threshold: <bare new sessions/second>
suspend_period: <duration of suspended operations>
added Emergency / Suspend mode
* src/generators.h: added Emergency / Suspend alerts to
stream4/frag2 - in the future, these should not generate packet
log alerts but they are required to for the current view of the
world
* src/detect.h (DisableDetect): added function
2002-11-16 Chris Green <cmg@sourcefire.com>
* src/snort.h:
- added a define SNORT_20 so that code will be easier to merge around
2002-11-13 Andrew R. Baker <andrewb@sourcefire.com>
* src/log.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
* src/util.c:
* src/output-plugins/spo_log_ascii.c:
* src/output-plugins/spo_log_tcdump.c:
* src/output-plugins/spo_unified.c:
* src/output-plugins/spo_xml.c:
* src/preprocessors/spp_portscan.c:
* src/preprocessors/spp_stream4.c:
Changes to cleanup the chroot process
2002-11-12 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_log_ascii.c:
fixed output file issues for ascii logging
2002-11-11 Andrew R. Baker <andrewb@sourcefire.com>
* src/log.h:
* src/parser.c:
* src/plugbase.c:
* src/snort.c:
* src/snort.h:
Cleanup command line alert and log configuration
* src/decode.c:
* src/snort.c:
* src/snort.h:
updated run mode determination and representation
relocated log_dir sanity check
relocated test_mode_flag check to outside InterfaceThread
moved global variable declarations into snort.c from snort.h
* src/snort.c:
replaced ReadConfFile with ConfigFileSearch. The configuration file
is now only read in once place.
* src/log.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
* src/output-plugins/spo_alert_fast.c:
* src/output-plugins/spo_alert_full.c:
* src/output-plugins/spo_alert_syslog.c:
* src/output-plugins/spo_database.c:
* src/output-plugins/spo_unified.c:
* src/preprocessors/perf-base.c:
* src/preprocessors/spp_portscan.c:
removed more vestiges of the multiple interface pthread support
2002-11-10 Brian Caswell <bmc@snort.org>
* src/detection_plugins/sp_byte_test.c:
added support for & and ^
2002-11-07 Daniel J. Roelker <droelker@sourcefire.com>
* src/preprocessors/spp_http_decode.c:
Fixed an infinite loop bug that occurred in my last update to
http_decode that dealt with an off-by-one bug. Fixed now. Pointed
out by Jens Krabbenhoeft and Nathan Labadie.
2002-11-07 Andrew R. Baker <andrewb@sourcefire.com>
* src/snort.c:
* src/snort.h:
Removed unused MTU support code
2002-11-06 Daniel J. Roelker <droelker@sourcefire.com>
* src/mwm.c:
* src/mwm.h:
Fixed another bug in mwm search routines when dealing with identical
one byte patterns in multiple rules. There was a theoretical
possibility of overwriting a one byte rule group (example: "~") with
another rule group of ("|00 7e|"). This has now been fixed and
should be the last of the one byte pattern problems.
2002-11-06 Daniel J. Roelker <droelker@sourcefire.com>
* src/mwm.c:
* src/mwm.h:
Fixed bug when comparing multiple one byte rules with the same one
byte pattern. Problem pointed out by Brian Caswell.
2002-11-06 Andrew R. Baker <andrewb@sourcefire.com>
* src/snort.c:
* src/snort.h:
* src/decode.c:
* doc/README:
removed -6 (show IPv6) and -x (show IPX) command line options (they
never did much anyway)
cleaned up ARP, IPv6, and IPX packet counting
* src/preprocessors/Makefile.am:
add missing header (perf-event.h) to libspp_a_SOURCES
2002-11-05 mfr <roesch@sourcefire.com>
* src/plugbase.c:
* src/detection_plugins/sp_byte_jump.c:
* src/detection_plugins/sp_byte_jump.h:
Added byte_jump, we can now decode a length from the app layer and jump
the detect_offset_end (last match pointer) up that number of bytes,
great for decoding RPC with Snort rules
2002-11-04 mfr <roesch@sourcefire.com>
* src/detect.c:
* src/fpdetect.c:
fixed case where multiple rules can have partial matches on content and
fuxor the detect_offset_end calculations (i.e. reset the offset for
every OTN in the system)
2002-11-04 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_byte_check.c:
Make big,little arguments actually interpret the data correctly
2002-11-04 Andrew R. Baker <andrewb@sourcefire.com>
* src/parser.c:
* src/rules.h:
* src/snort.c:
* src/snort.h:
* snort.8:
remove ghetto message reference option (it has not worked since May)
* src/output-plugins/spo_alert_fast.c:
* src/snort.c:
added "-A cmg" alerting mode
2002-11-02 Chris Green <cmg@sourcefire.com>
* HAVE_STRINGS_H all over the place for bzero/Solaris
first reported by John Whitson
2002-11-1 Daniel Roelker <droelker@sourcefire.com>
* src/preprocessors/spp_http_decode.c:
Fixed potential off-by-one bugs. Also fixed %25xx encoding and
%uxxxx encoding for ascii characters. Still much work to be done
but most of this will be added in the next version.
2002-11-01 mfr <roesch@sourcefire.com>
* src/detection_plugins/sp_byte_test.c:
fixed range checks, inclusion of strings.h, byte boundry checks
2002-11-01 mfr <roesch@sourcefire.com>
* src/detection_plugins/sp_byte_test.c:
added test rules to the sp_byte_test.c header comment block
2002-11-01 mfr <roesch@sourcefire.com>
* src/detect.c:
* src/mstring.c:
* src/detection_plugins/sp_pattern_match.c:
fixed various "issues" with the distance/within code, should work
much better now
also removed redundent calls to pattern matcher for rules with mlutiple
content checks
* src/plugbase.c:
* src/plugbase.h:
* src/plugin_enum.h:
* src/detection_plguins/sp_byte_test.c:
* src/detection_plguins/sp_byte_test.h:
added sp_byte_test, detection plugin that let's us perform discrete
value checks on numbers that are encoded in packet payloads, either
in straight binary representation or as strings
2002-11-01 Andrew R. Baker <andrewb@snort.org>
* src/decode.c:
fix logic for generating decoder alerts
* src/decode.c:
* src/parser.c:
* src/snort.c:
* src/snort.h:
* doc/README:
removed broken support for the "-a" (show arp) command line switch
2002-10-31 Andrew R. Baker <andrewb@snort.org>
* src/util.c (GenHomenet & GenObfuscationMask):
fix invalid reference to optarg
* configure.in:
* src/snort.h:
* src/snort.c:
removed pthread support (still need to remove MAX_INTERFACES cruft)
2002-10-30 Chris Green <cmg@sourcefire.com>
* (Repository): removed autogenerated files
use sh autojunk.sh to recreate them if you are using
CVS to compile
2002-10-30 Andrew R. Baker <andrewb@snort.org>
* src/parser/IpAddrSet.c:
* src/parser/IpAddrSet.h:
add API for IpAddrSet data structure
* removed "extern char *file_name" and "extern int file_line" from
scattered places in the source
2002-10-29 Andrew R. Baker <andrewb@snort.org>
* src/detection-plugins/*.c:
add multiple options checks for plugins
2002-10-23 Chris Green <cmg@snort.org>
* src/log.c more output clean ups from James Hoagland
2002-10-22 Chris Green <cmg@snort.org>
* strtol fixes ( Dave Ockwell-Jenner )
* Merged in Glenns changes for net-snmp port declartion
* src/parser.c (ParseRuleOptions):
threshold added back
* src/preprocessors/spp_portscan2.c (DEFAULT_MAX_SCANNER):
change defaults back down
2002-10-22 Daniel Roelker <droelker@sourcefire.com>
* src/fpdetect.c:
Bogus port 0 initialization in fpEvalHeaderTcp/Udp. (Dirk Geschke)
2002-10-18 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_clientserver.c (CheckFromClient):
hide this under a DEBUG_CS
* src/preprocessors/spp_stream4.c (AlertFlushStream):
make AlertFlushStream adjust the base_seq upon a flush point
(Thanks so much to qru for a reproducable test case... this was
a PITA)
2002-10-16 Chris Green <cmg@sourcefire.com>
* src/util.c (CreatePidFile):
use pv.log_dir instead of local variable (Cameron Humpries)
* src/log.c (PrintICMPHeader):
Removed newline amidst a sea of complains from James Hoagland & other
users :)
2002-10-16 Roman Danyliw <roman@danylw.com>
* src/output-plugin/database.c:
- escape the signature name before trying to write it to the
signature.sig_name field (Dirk Geschke)
2002-10-16 Dan Roelker <droelker@sourcefire.com>
* src/fpdetect.c:
- Reverted no content rule checks back to the original
snort behavior. Reassembled packets are now inspected
against no content rules.
(Jens Krabbenhoeft)
* src/preprocessors/spp_perfmonitor.c:
- Adjusted newlines for console statistics prettiness.
2002-10-14 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/database.c:
- Transaction abstraction functions (Begin/Commit/Rollback)
- Fixed transaction SQL for MS-SQL
- Fixed incorrect return value for MS-SQL Insert()
(Hans Nilsson)
2002-10-13 Chris Green <cmg@sourcefire.com>
* src/log.c (PrintXrefs):
newlines on Xrefs... pointed out by too many people to count :)
* src/preprocessors/spp_portscan2.c (targetCompareFunc):
- target compare function incorrect logic
(pointed out by Pat Gorman)
2002-10-12 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/database.c:
- Fixed (PostgreSQL) sensor initialization to the sensor table
by setting a default last_cid value
- Fixed schema detection bug on MS-SQL enabled builds
2002-10-09 Chris Green <cmg@sourcefire.com>
* changed FatalError/exit codes
* merged Sourcefire modifications into snort-head
* kick off of snort-2.0 dev cycle
win32 probably doesn't work yet. :-)
2002-10-09 Marc Norton <mnorton@sourcefire.com>
Daniel Roelker <droelker@sourcefire.com>
* src/decode.h:
p->preprocessors for enable/disable status
* src/fpcreate.c, src/fpcreate.h, src/fpdetect.c, src/fpdetect.h:
Added new detection engine. fpcreate.* creates the new detection
engine and intializes the detection engine components. fpdetect.*
analyzes packets as they come in and decides what happens to them.
* src/pcrm.c, src/pcrm.h:
Added new signature detection classification.
* src/mpse.c, src/mpse.h (Norton):
Added an interface for multi-pattern match routines.
* src/mwm.c, src/mwm.h (Norton):
Added modified Wu-Manber style multi-pattern matcher.
* src/acsmx.c, src/acsmx.h (Norton):
Added Aho-Corasick state machine, using a deterministic finite
automata.
* src/bitop.h:
Added inline functionality for bit operations. Used in the new
detection engine.
* src/preprocessors/spp_httpflow.*, src/preprocessors/http-resp.*:
Added an http protocol flow preprocessor that analyzes client
and server traffic. Useful for HTTP performance.
* src/preprocessors/spp_perfmonitor.*, src/preprocessors/perf*.*:
Added a performance monitor that keeps stats on snort. Some of
those stats are Mbits/sec, Alerts/sec, TCP state information,
network traffic flows and percentages, etc.
* src/preprocessors/sfprocpidstats.c:
Added functionality for multiple CPU stats on linux. For use in
spp_perfmonitor, etc.
* src/parser.c:
Added a new config option, 'detection'. This option allows the
user to configure certain aspects of the detection engine.
* src/checksum.h:
Added new optimized inline checksumming routines.
* src/mstring.c:
Optimized mSearch and mSearchCI.
2002-10-09 Chris Green <cmg@sourcefire.com>
* src/snort.c (ParseCmdLine):
- syslog option on non-win32 does not take the extra argument
(Andrea Barisani)
* updated snort.dsp to not require getrusage
2002-10-01 Chris Green <cmg@sourcefire.com>
* Fixes from Chris Reid
- varchar sql arguments for mssql
- usertime -> systemtime misses
- snort project file updates
2002-09-26 Chris Green <cmg@sourcefire.com>
* configure scripts updated to handle net-snmp as well as ucd
(Glenn Mansfield Keeni and Abe Katsuhisa)
2002-09-25 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c:
moved setting the uri_count to this preprocessor to handle false
alerts on reassembled packets.
2002-09-17 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/spo_database.c
- make sure that a packet payload larger than those supported
in the SQL INSERT are properly terminated.
2002-09-12 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/spo_database.c
- made the updating of the sensor.last_cid more efficient by
only storing the new cid value at shutdown
- removed extranous CR/LF from sensor name
2002-09-05 Chris Green <cmg@sourcefire.com>
* src/log.c (PrintICMPHeader): off by one error in printing
Thanks to Dave Goldsmith
2002-09-05 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/spo_database.c: (DatabaseInit)
- added ignore_bpf configuration option (from Michael Boman)
ignore_bpf - Do we want to create a new sensor definition everytime
the BPF filter is changed? The options are:
[no|0]: (default) Create a new sensor definition if BPF
filter has been modified
[yes|1]: Ignore the BPF part when looking for the server
definition
2002-09-03 Roman Danyliw <roman@danyliw.com>
* src/output-plugin/spo_database.c
- DB schema v106
- Added the sensor.last_cid field to the schema so the
database can store the last used cid for a given sensor.
This field will ensure that a cid will never be reused.
Upgrading from v105 -> v106 is as simple as:
mysql> ALTER TABLE sensor ADD last_cid INT UNSIGNED NOT NULL;
mysql> UPDATE schema SET vseq=106;
psql> ALTER TABLE sensor ADD last_cid INT8;
psql> UPDATE schema SET vseq=106;
- Improved error messages
2002-09-02 Chris Green <cmg@sourcefire.com>
* configure.in:
- cleaned up win32 source packaging
2002-08-27 Andrew R. Baker <andrewb@sourcefire.com>
* src/preprocessors/spp_asn1.c:
do not check fragments
2002-08-26 mfr <roesch@sourcefire.com>
* src/threshold.c src/threshold.h src/detect.c src/rules.h src/parser.c
added thresholds to snort rules language, docs to come
2002-08-26 Andrew R. Baker <andrewb@sourcefire.com>
* src/util.c:
fix GenHomenet and GetObsfMask functions
2002-08-19 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_perfmonitor.c (ParsePerfMonitorArgs): typo in fmt string
2002-08-18 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_rpc_decode.c:
Port changes from Andreas Ostling ( just like all the other ones now )
* win32/perf stuff from Chris Reid
Will probably break again later
the perf stuff is very highly subject to change
* project fixes from Chris Reid
2002-08-16 Brian Caswell <bmc@snort.org>
* src/util.c
- allow daemon mode to dump stats to syslog
2002-08-15 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c
(ParseStream4Args):
- FatalError on unknown argument
(ReassembleStream4):
- Correctly mark sessigons as established with
asynchronous_link enabled
2002-08-14 Chris Green <cmg@sourcefire.com>
* src/snort.c (ParseCmdLine):
-R <id> Include 'id' in snort_intf<id>.pid file name
(Phil Wood)
* src/snort.c (ProcessPacket):
reset uri_count (test case pointed out by Dan Roelker/Sourcefire)
* src/preprocessors/spp_http_decode.c:
uri_count set if not alerting.
2002-08-13 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_conversation.c:
new option alert_odd_protocols
set allowed_ip_protocols to the numbers you like and it will alert on all bad protocols
* src/detection-plugins/sp_session.c (LogSessionData):
sp_session.c:221: warning: suggest parentheses around && within ||
* src/detection-plugins/sp_pattern_match.c (CheckANDPatternMatch):
bug with mutliple decoded alternative contents
2002-08-13 Roman Danyliw <roman@danyliw.com>
* src/output-plugins/spo_database.c (CheckDBVersion):
fixed logic to detect the DB schema version correctly when support for
MS-SQL and another database are present
2002-08-13 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_telnet_negotiation.c:
- cleaner alt_dsize checks
- make sure that we don't decode 1 byte
past the end of the buffer
-(SetTelnetPorts):
preprocessor telnet_decode: 21 23 25 119
(now with port lists!)
* src/detection-plugins/sp_pattern_match.c (PayloadSearchRawbytes):
new pattern match option!
rawbytes -- used to inspect the raw packet data instead of the
alternatively decode application packet buffer
* src/decode.h (DECODE_BLEN): my favorite constant typo.
* src/preprocessors/spp_stream4.c (Stream4InitReassembler):
turning off server side reassembly by default ( was what the
default said it was )
* src/detection-plugins/sp_tcp_flag_check.c (ParseTCPFlags):
adding mask bits to the flag checks
(limitation pointed out by Dirk Mueller)
example: flags: S,12
This checks the SYN flag is set regardless of the values of the
ECN bits. tcp_flags & (0xFF ^ tcp_mask); for those of you that
like to think in C
* src/detection-plugins/sp_pattern_match.c (Check{AND|OR}PatternMatch):
- normalization of telnet stuff into a separate buffer
(this means logged packets will now look like they should on the wire)
2002-08-12 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_telnet_negotiation.c (SetupTelNeg):
- only allow this to be called telnet_decode
- removing redundant function calls
* src/perf-event.c (ProcessEventStats):
- set to 0 (djr@sourcefire)
2002-08-12 Roman Danyliw <roman@danyliw.com>
* src/output-plugins/spo_database.c (Database)
- Fixed length bug in code that generates the SQL INSERT statement
into signature table
2002-08-08 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_arpspoof.c (ARPspoofPreprocFunction):
- include packet w/ alert (Jeff Nathan)
2002-08-07 Chris Green <cmg@sourcefire.com>
* preprocessor perfmonitor
--enable-perfmonitor
lots of statistics from Dan/Marc/Sourcefire
2002-08-06 Chris Green <cmg@sourcefire.com>
* src/checksum.h:
Integrated fix from Marc Norton/Sourcefire
occasional endianess bug in checksum routines
inlined checksum
2002-08-05 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (UpdateState):
make session initiators more lenient
2002-08-04 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (BuildPacket):
- Session fix ( a different approach from Andreas Ostling )
(UpdateState)
(UpdateStateAsync)
- Move == TH_ACK checks to nearly the last of the checks and make catch all
odder flag combinations
- ttl_limit will only alert if the packet ttl is less than 10
(TcpAction*):
- removed stream_pkt->packet_flag sets new ( makes
no sense because we overwrite the packet_flags in BuildPacket
( pointed out by arron walters -- ended up
being the source of a few other bugs )
2002-07-30 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (BuildPacket):
- Mark the session direction establishments correctly
(thanks to Andreas Ostling for noticing )
2002-07-29 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (ReassembleStream4):
- make unestablished sessions and established sessions mutually
exclusive
- use &
2002-07-26 Chris Green <cmg@sourcefire.com>
* src/decode.c:
added decode_alert_flag
one may disable decoder alerts by using
config disable_decode_alerts
* src/preprocessors/spp_portscan2.c (PrunePortscanners):
Portscan2 fixes from Jed Haile ( thanks :-) )
* src/decode.c (DecodeICMP):
8 bytes of extra info in a redirect, not 4
2002-07-23 Chris Green <cmg@sourcefire.com>
* Phil Wood ASN.1 fix
* Phil Wood Classification fix
* Andreas Ostling's BPF comment improvement
* Just for the record, marty added distance/width as content options
distance means there must be atleast N bytes between 2 matches
width means that there must be a match within N bytes
2002-07-23 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_SnmpTrap.c:
- fix null pointer dereference for non-IP packets
2002-07-09 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_dsize_check.c (CheckDsizeRange):
- changed dsize check to always return 0 on fake tcp pkts
( mirrors change made on all other functions .. )
2002-07-08 Chris Green <cmg@sourcefire.com>
* Merged in win32 fixes from Chris Reid (thanks again!)
2002-07-05 Andrew R. Baker <andrewb@sourcefire.com>
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_stream4.c:
- fixed packet_flags problem with rebuilt packets
2002-07-03 Chris Green <cmg@sourcefire.com>
* src/output-plugins/spo_SnmpTrap.c:
- lots of *nArgs = 0 instead of NULL
- added prototype for ipv6_print_hashing
2002-07-02 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (TcpAction):
- switched to using psuedo random flush points
* src/preprocessors/spp_portscan2.c (PrunePortscanners):
- fixed double delete of a tree node
* compilation fixes from Chris Reid for win32 (Thanks!)
2002-07-01 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_conversation.c
(ConvCompareFunc):
- fixed session equalness bug ( portscan2
should actually seem reasonable now )
(ConvFunc):
- changed to use conf_flags for session initiation
2002-06-28 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c
* src/decode.h (PKT_STREAM_INSERT):
added a packet marker for inserted stream packets
2002-06-27 Chris Green <cmg@sourcefire.com>
* src/util.c (FatalError): fflush(*)
* src/detection-plugins/sp_dsize_check.c:
dsize checks always will return 0 for
rebuilt stream packets
(CheckDsizeRange):
added min<>max range support for dsize option
Thanks to Andreas stling
* src/parser.c (ParseConfig): missing return
for config daemon
thanks to Bill McCarty <bmccarty@apu.edu>
2002-06-26 Chris Green <cmg@sourcefire.com>
* From Jeff Nathan:
Moved resp* stuff to the OTN instead of RTN
* spp_conversation rewrite
* portscan2
* SNMP updates from Glenn Mansfield Keeni <glenn@cysols.com>
2002-06-24 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_icmp_seq_check.c (ParseIcmpSeq):
htons(ds_ptr->icmp_seq) from Andereas Ostling
2002-06-20 Andrew R. Baker <andrewb@sourcefire.com>
* src/detect.c:
fix event reference time for unified output
2002-06-20 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_portscan2.c
- parsing fixes from Phil Wood
* src/util.c:
- FreeToks fixes from Phil Wood
2002-06-16 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c
Andrew Hintz bug reports
(BuildPacket):
- reinjected packets are now marked as established as well as rebuilt
(UpdateState):
- Server initiated: APF -> AF -> A was not
properly terminating session
2002-06-13 Chris Green <cmg@sourcefire.com>
* src/output-plugins/spo_log_tcpdump.c (LogTcpdump):
fixed broken -b -l . mode
( assuming iph is set doesn't work )
2002-06-12 Chris Green <cmg@sourcefire.com>
* src/util.c (read_infile):
close fd for -F
2002-06-11 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_arpspoof.c:
Fixes from Jeff Nathan
* src/preprocessors/spp_asn1.c (ASN1Decode):
ASN1 fix from Chris Reid
2002-06-08 Chris Green <cmg@sourcefire.com>
* src/generators.h (FRAG2_TTL_EVASION_STR):
changed TTL Limit exceeded message to make more clear
2002-06-08 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_log_tcpdump.c:
* src/detect.c:
* src/decode.h:
make obfuscation work for all output plugins
2002-06-07 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (ReassembleStream4):
- accidentally inverted logic for async/normal sessions
- marking streams as established correctly
2002-06-05 Chris Green <cmg@sourcefire.com>
* src/generators.h (STREAM4_TTL_EVASION_STR):
changed so that people recognize message as ttl_limit related
and not message related
2002-06-04 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c:
- fixed include order ( fixes compile on FreeBSD )
* src/preprocessors/spp_frag2.c (InsertFrag):
- allow duplicate first fragment to be disabled
2002-06-03 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_clientserver.c (ParseFlowArgs):
- added {no_stream,only_stream} keywords to flow:
used to suppress reassembled streams from being alerted on
* src/plugbase.h: changed machine/param.h -> sys/param.h
2002-06-03 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/log_tcpdump.c:
fix obfuscation
2002-06-02 Chris Green <cmg@sourcefire.com>
* src/Makefile.am:
added plug_base.h ( pointed out by Jeff Nathan )
2002-05-30 mfr <roesch@sourcefire.com>
* src/log.c
src/decode.c:
Fixed non-functional embedded packet decode and printout for ICMP
UNREACH and REDIRECT packets
2002-05-30 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c (Frag2Init):
- left frag2 alerts on by default by accident
(diabled)
2002-05-28 Chris Green <cmg@sourcefire.com>
* src/detect.c (CallLogFuncs):
moved the traversal of the plugins ahead of the setting the
packet logged flag since both check ( should both check? )
2002-05-28 Andrew R. Baker <andrewb@sourcefire.com>
* src/log.c:
fix NULL pointer deref problem printing priority/class info
2002-05-27 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c
(SetPorts):
- fatal error on invalid port description
* rules.c
(VarGet):
- fatal error if undefined variable is called
(ExpandVars):
- don't expand variables inside "'s
2002-05-21 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (StoreStreamPkt):
- sheltered fast restransmission under evasion_alerts
- missing returns
2002-05-20 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c:
- added newer unidecode function from rfp
- added "internal_alerts" keyword
2002-05-19 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_log_ascii.c:
* src/preprocessors/spp_conversation.c:
* src/preprocessors/spp_conversation.h:
* src/preprocessors/spp_portscan2.c:
* src/preprocessors/spp_portscan2.h:
- corrected some global namespace pollution
2002-05-15 mfr <roesch@sourcefire.com>
* looked over and indented the hell out of spp_conversation and
spp_portscan2
* put a FreeToks() function into util.c to clean up after mSplit()'s
* other sundry stuff, conversation and portscan2 should be ready for
testing from what I can see now
2002-05-15 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_SnmpTrap.c:
* src/output-plugins/spo_alert_smb.c:
* src/detections-plugins/sp_react.c:
- fixes for new SigInfo system
* src/output-plugins/spo_idmef.c:
* src/output-plugins/spo_idmef.h:
* doc/README.IDMEF:
* src/plugbase.c:
* src/plugin_enum.h:
- remove IDMEF instead of leaving it in a broken state
2002-05-14 Chris Green <cmg@sourcefire.com>
* src/util.h (GenObfuscationMask):
make compile on OS X
2002-05-14 Andrew R. Baker <andrewb@sourcefire.com>
* *.[ch]:
- proper implementation of priority and reference signature metadata
- other work surrouding signature metadata
2002-05-14 Chris Green <cmg@sourcefire.com>
* templates/sp_template.[ch]:
- updated template for plugbase and modularity
* src/preprocessors/spp_stream4.c (CreateNewSession):
- added SYN_SENT initialization state
* src/preprocessors/spp_http_decode.c:
- fixed includes for WIN32 (Chris Reid)
* src/preprocessors/spp_stream4.c (_Stream4Data):
- added asynchronous_link
useful for places that only see one side of a conversation
- (UpdateState):
mark session as established on asynch links
2002-05-13 Chris Green <cmg@sourcefire.com>
* src/snort.c (ProcessPacket):
- added min_ttl check in front of Preprocess Check
* src/snort.h (_progvars):
- added min_ttl as a snort-wide configuration option
config min_ttl: 1 to drop all things less than 1
config min_ttl: 0 to have none (default)
* src/decode.c
(DecodeTCP):
- fixed bug where we didn't just toss invalid packet after
alerting on it in decoder
(DecodeEapolKey):
- removed CallLogPlugins redundant call
* src/generators.h
- moved all plugin alert descriptions here
* src/plugin_enum.h:
- moved all PLUGIN_ constants to a single header
* src/detection-plugins/sp_pattern_match.h:
- cleaned up commented define
* src/preprocessors/spp_http_decode.c (PreprocUrlDecode):
- commented out spurious debug code
* src/preprocessors/spp_stream4.c (StoreStreamPkt):
- disable evasion alerts
2002-05-12 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_http_decode.c
(PreprocUrlDecode):
- more debug code
- set p->uri_count
* src/parser.c (ParseConfig):
- cleaned up some NULL dereferences
2002-05-09 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c:
- moved SSNFLAG defines to decode.h so that we have access to the
Session data outside of spp_stream4
- added SSNFLAG_HTTP_1_1, SSNFLAG_SEEN_PMATCH
- moved Session,Stream to decode.h
(ReassembleStream4):
session_flags converted to & check instead of == for establishment
* src/decode.h
- added HTTP version constants
2002-05-08 Chris Green <cmg@sourcefire.com>
* src/decode.h
(_Packet):
- removed URI
- added uri_count
(_HttpUri):
- changed to added parameters
(_UriParam):
- added parameter datastructure
(VTH_VLAN):
- fixed missing paren
* src/preprocessors/spp_http_decode.c
(SetPorts):
- removing strncasecmp
(PreprocUrlDecode):
- moved to using UriBufs
* src/decode.c:
Added UriBufs
* src/decode.h:
- changed to use TRH and VLAN macros
bitpacked notation expunging should be done
2002-05-07 Chris Green <cmg@sourcefire.com>
* src/decode.h (_TCPHdr):
- changed to use TCP_OFFSET, TCP_X2 Macros
* src/parser.c (ParseConfig):
* src/snort.c (ParseCmdLine):
- Fixed notcp,noicmp,noudp,noip to only disable
- strcasecmp instead of strncasecmp
* src/preprocessors/spp_http_decode.c:
integrated spp_http_decode.c from rfp
new option set:
* unicode: decode unicode
* iis_alt_unicode: %u000 encoding
* double_encode : detect IIS decoding
* abort_invalid_hex: detect only up
until the first broken encoding
* drop_url_parm: don't decode the stuff following ?
* iis_flip_slash: substitute / for \ ( C:\DOS\RUN )
* full_whitespace: treat \r and <tab> as <space>
2002-05-06 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c:
fixed retranmission checksum alerts to live under evasion
* src/detection-plugins/sp_pattern_match.h:
commented out PATTERN_FAST until it works
* src/generators.h:
internal alerts from spp_http_decode
2002-05-01 Andrew R. Baker <andrewb@sourcefire.com>
* src/plugbase.c:
* src/output-plugins/spo_unified.c:
cleaned up startup message printing
2002-04-25 Chris Green <cmg@sourcefire.com>
* Introduced IP_VER, IP_HLEN, SET_IP_VER, SET_IP_HLEN after
thinking about tcpdump and what Fyodor had talked to me about
months ago regarding cross platform compatiblity. No more
twiddling.
Plugins that use ip_ver, ip_hlen should be tested. No more bit
packed notation allowed in the source tree.
* src/preprocessors/spp_stream4.c:
separated evasion alerts from retransmission/state
evasion alerts default to being on now
disable with disable_evasion_alerts
2002-04-24 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c (Frag2Init):
fixex argument parsing
* src/preprocessors/spp_http_decode.c:
don't process fragments
* src/preprocessors/spp_frag2.c
(InsertFrag):
make sure that we don't run out of memory if someone sends us the
same fragment over and over again
duplicate first frag is a special case
2002-04-23 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c
(InsertFrag):
- adding detection of attack where we would start
reassembling packet fully before the full fragtracker is there
* src/detect.c (EvalPacket):
- fixed alert ip rules
(got clobbered when playing detection engine optimizations )
- generate proper events when decode errors happen
* src/plugbase.c (InitPlugIns): SetupFragOffset()
* src/detection-plugins/sp_ip_fragbits.c:
- added fragoffset:
fragoffset: [!<>] <integer>
defined in fragbits so that I can backport it.
* src/preprocessors/spp_frag2.c (InsertFrag):
- alert on frag2 overlaps
To do this requires keeping the packets around for a while
longer to detect all the multiple fragments and overlaps
Changed the PruneCache to notice when things are completed and
prune them in addition to just by time. Frag mem faults are
going to increase because of this but each time one occurs,
there should be plenty to expire.
2002-04-22 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c
(Frag2Defrag):
Warn/Discard on fragments with IP Options set.
(ParseFrag2Args):
min_ttl
ttl_limit
detect_state_problems
* src/debug.h
DEBUG_FRAG2
* src/preprocessors/spp_stream4.c
(TraverseFunc):
- added next seq check on reassembly
- added alerts on retransmitted sequences...
its ugly as sin right now
(_Stream):
- next_seq added
(StoreStreamPkt):
- added check for restranmitting too fast w/ a different data size
- added tcp checksum retransmission checking
(how much do I need to worry about
data with the same checksum and different payloads...
just throw it away for the moment)
2002-04-19 Chris Green <cmg@sourcefire.com>
* More win32 Service patches from Chris Reid ( Thanks! )
2002-04-18 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_frag2.c (Frag2Defrag):
added ttl_limit detection
* src/generators.h (FRAG2_TTL_EVASION): added
* src/preprocessors/spp_stream4.c (StoreStreamPkt):
-- first cut at TTL evasion detection
keyword: ttl_limit <count> for TCP Sessions
2002-04-16 Andrew R. Baker <andrewb@sourcefire.com>
* src/preprocessors/spp_stream4.c:
* src/preprocessors/spp_frag2.c:
* src/preprocessors/spp_asn1.c:
* src/log.c:
* src/detect.c:
fix broken event reference info for unified output
2002-04-15 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (ParseStream4Args):
added missing parsing line back in
2002-04-10 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_unified.c:
fix unified brokeness
2002-04-10 Andrew R. Baker <andrewb@sourcefire.com>
* src/plugbase.h:
* src/plugbase.c:
* src/parser.h:
* src/parser.c:
Plugin API cleanup
* src/output-plugins/spo_log_tcpdump.c:
make log file timestamps work the same as in unified
2002-04-09 Chris Green <cmg@sourcefire.com>
* src/spp_portscan2.c: new changes from Jed/Jason
2002-04-08 Andrew R. Baker <andrewb@sourcefire.com>
* add profiling configuration option
* src/parser.c:
correct NULL pointer dereference
2002-04-08 Chris Green <cmg@sourcefire.com>
* src/debug.c (GetDebugLevel):
accidenatlly returning debuglevel instead of debug_level
* src/log.c (PrintIPHeader):
Modified fragment offset calculation (reported by Judy Novak)
2002-04-07 Chris Green <cmg@sourcefire.com>
* Fixed --enable-debug
* src/preprocessors/spp_asn1.c:
Missing includes
2002-04-06 Chris Green <cmg@sourcefire.com>
* src/detect.c (EvalHeader):
Corrected incorrect ignore with -z est and PKT_REBUILT_STREAM
* src/detection-plugins/sp_tcp_ack_check.c (ParseTcpAck):
* src/detection-plugins/sp_tcp_seq_check.c (ParseTcpSeq):
Phil Wood's Parsing Change
2002-04-05 Martin Roesch <roesch@sourcefire.com>
* detection engine now walks RTN and OTN lists iteratively instead of
recursively, I guess we should cowtow to the x86 crowd...
* RTNs are now sorted by destination port number allowing for earlier exit
from the detection engine in the average case and improving performance
* destination port is now the first thing checked when an RTN is processed
(for UDP/TCP traffic)
2002-04-05 Chris Green <cmg@sourcefire.com>
* Merged in Nick L. Petroni, Jr.'s 802.11b stuff
* src/detection-plugins/sp_pattern_match.c:
Integrated Mike Fisk's SetMatch stuff ( large performance
increase -- thanks for being so patient with me )
2002-04-04 Chris Green <cmg@sourcefire.com>
* src/snort.c (SnortMain):
Extra call to initoutput plugins commented out..
* src/detect.c (CallAlertPlugins):
DEBUG_WRAPPED Andrew's printfs'
2002-04-03 Chris Green <cmg@sourcefire.com>
* src/debug.h:
DEBUG_WRAP defined
DEBUG WRAP used everywhere...
* src/preprocessors/spp_conversation.c:
ignore rebuilt stream
2002-04-02 Andrew R. Baker <andrewb@sourcefire.com>
* Modularization cleanup
2002-04-02 Chris Green <cmg@sourcefire.com>
* src/debug.c (GetDebugLevel):
only initialize debug_level once ( now easier to use gdb set command )
* src/preprocessors/spp_portscan.c:
No processing on reassembled stream packets
* lots of compilation fixes
* started added spp_conversation
2002-04-01 Andrew R. Baker <andrewb@sourcefire.com>
* config.h should be included almost everywhere....
2002-03-31 Chris Green <cmg@sourcefire.com>
* src/detection-plugins/sp_pattern_match.c (CheckUriPatternMatch):
Check for URI.uri with a packet flag
* src/preprocessors/spp_http_decode.c (PreprocUrlDecode):
- Moved decode ignore check up ( I don't think this is actually
used anywhere )
- Moved somefunctions into CheckHTTPDecode
* decode.h:
- Changed URI.uri to u_int_8t[URI_SIZE]
- URI_SIZE is 512 (should create an alert when that size is exceeded)
- Added PKT_HTTP_DECODE to show if URI was filled in
2002-03-31 Andrew R. Baker <andrewb@sourcefire.com>
* start work on cleaning up the output API
2002-03-30 Chris Green <cmg@sourcefire.com>
* src/output-plugins/spo_alert_unixsock.c:
lots more checking for valid packets on
things like portscan alerts
2002-03-29 Andrew R. Baker <andrewb@sourcefire.com>
* src/parser.c :
Add support for "special" output plugins
* src/output-plugins/spo_unified.h :
* src/output-plugins/spo_unified.c :
Initial work towards a true unified output.
2002-03-29 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c (ReassembleStream4):
* src/snort.h:
removed pv.fake_packet check (old stream stuff)
2002-03-27 Chris Green <cmg@sourcefire.com>
* src/preprocessors/spp_stream4.c :
More debug messages in Stream4
* doc/PROBLEMS:
Added file to document bugs that we really can't work
around easily and aren't necessarily ours.
* src/parser.c (ParseRuleOptions): filename -> file_name for compilation
2003-03-26 Andrew R. Baker <andrewb@sourcefire.com>
* src/output-plugins/spo_unified.c:
fix file rotation bug in spo_unified
write IPs in host order like everything else is
* src/parser.c:
updates to the rule parser. now we only complain for unrecognized
rule options.
2002-03-26 Chris Green <cmg@sourcefire.com>
* src/detect.c (DumpChain):
DebugMessage stuff..
2002-03-25 Chris Green <cmg@sourcefire.com>
* stop stream4 from clobbering itself (Pascal Bouchaeine)
2002-03-24 Chris Green <cmg@sourcefire.com>
* src/plugbase.c (RegisterPlugin):
- allow multiple plugins to start with same prefix
2002-03-23 Brian Caswell <bmc@snort.org>
* initial add of flow: to signatures
2002-03-21 Chris Green <cmg@sourcefire.com>
* Place IP checks after port checks for 1.9
(based on patch from Christian Mock)
* Fixed test header checks (greatly responsible for
slowness on multiple CIDR blocks) (Christian Mock)
2002-03-19 Chris Green <cmg@sourcefire.com>
* Fixed Teardrop detection in frag2 ( Forward bugfix from Marty )
* Replaced most instances of #ifdef DEBUG\nprintf(...) with
DebugMessage
2002-03-11 bmc <bmc@snort.org>
* readded this file :)
* renabled udp portscan detection
* updated ICMP text printing (few bugs, few new features)
* updated BUGS for jackasses on Bugtraq
* fixed a bunch of stream4 stuff
* cleaned a ton of signatures (see signature CVS logs for info)
* number of FAQ updates
* removed unstable/orphaned/unmaintained/deprecated code as we
get ready for 2.0
* massive directory structure reordering
* frag2 options code cleanup (cmg)
* fixed pattern match exit conditions (cmg)
* improved stats calculation (phil wood)
* tweaked decoder code
* improved ICMP ASCII output
* fixed no-packet bug in spo_unified
* moved alert code in spp_frag2 so packet is logged for teardrop
* many stream4 fixes
* added sp_clientserver (to client, to server, from client, from server)
* cleaned infinate loop in regex
* fix double PID write (reported by phil wood)
* updated docs
* ton of new signatures
* split rules.c into parser.c|h and detect.c|h
* smarter pruning for segments that have only partially been streamed
* ethernet headers are now filled in for rebuilt packets
* added case for stream segments that hadn't been completely handled in
previous flush
* added another interface init call when entering daemon mode for linux
boxen that lose promisc mode when the process forks
* strncat in sp_reference
* opts[1] fix to plugin args passing
* updated changes to db stuff from Roman
* removed $default_directory from mysql_directory definition to allow
--with-mysql to work again and select a non-default installation
* fixed calloc call for PPPoE debug #ifdef DEBUG
* Fixed pointer math for Stream4 sesesion
( IOU: Phil Wood; 1 Bar tab )
* Fixed suicidal tree pruning
* ifdef AF_INET6 for decode.c and removal of spp_asn1.h from plugbase.h
* cleaned up decode.c indentation, etc
* added classifications for spp_fnord
* mods to icmp ASCII log code for more informational printouts
* added enhanced conf file parsing for frag2 (Chris Green)
* added pattern match fixes (Chris Green)
* other stuff that escapes me right now
* pflog decoder support from Robert Fleck <rfleck@cigital.com> added
* cleaned up decode.c indentation, etc
* added classifications for spp_fnord
* mods to icmp ASCII log code for more informational printouts
* added enhanced conf file parsing for frag2 (Chris Green)
* added pattern match fixes (Chris Green)
* added enhanced resolution of TCP retransmissions to stream4
* changed default behavior of frag2 to favor old data over new
* fixed screwed up fragbits printout
* Fixed pointer arithmetic in calls to PrintNetData (thanks to Andreas
stling bugreports)
* ntohs(p->iph->ip_len) -- should we have a p->ip_len?
* don't complain about NULL ptr if p->dsize == 0
* Still has one nit in that a badly framed packet is counted twice in -v
mode2
2001-11-29 bmc <bmc@snort.org>
* Fixed crash in frag2 under Linux
* Fixed flexresp code, session sniping should work again and be faster
to boot
* Fixed ICMP decoder and printout routines for new ICMP header data
structs in decode.h
* Added -B command line switch to translate IP addresses in pcap files
from one subnet to another (see the man page).
* Added spo_log_null to give users an option to deactivate logging
output from the snort.conf file.
2001-11-02 mfr <roesch@sourcefire.com>
* fixed UTC timestamps
* fixed SIGUSR1 handling, should reset properly now after getting a signal
* fixed PID path generation code, PID files go in the right place now
* fixed stability problems in stream4
* fixed stability problems in frag2
* tweaks to spo_unified for better integration with barnyard
* added -f switch to turn off fflush() calls in binary logging mode
* added new config keyword to stream4, "log_flushed_streams", which causes
all buffered packets in the stream reassembler for that session to be
logged in the event of an event on that stream (must be used in
conjunction with spo_log_tcpdump)
* added packet precacheing for flexresp TCP packets, responses should be
generated more quickly
* fixed rules parser code for various failure modes
* several new rules files and a new classification system
2001-08-14 mfr <roesch@sourcefire.com>
* SNMP alerting support added by Glenn Mansfield Keeni & K. Jayanthi
* IDMEF output support compiled in by default now
* regex keyword code repaired, limited wildcard regex now available
* new packet counters added to Snort stats output for frags and streams
* http_decode preprocessor modified to normalize %u encoding
* new detection modes in frag2, Snort picks up fragmentation
attacks (teardrop, etc) much better now
* repaired frag2 IP defragmenter, now 100% stable and functional
* tweaks made to stream4 TCP stream reassembler, now 100% stable
* Win32 code integrated with main Snort source now
* fix for -r mode crash when no other command line options specified
* fix for logfile names using ":" under win32
* tag code repaired
* spp_arpspoof repaired
* stream4 alerts are now off by default
* syslog alerts now support standard GEN:SID:REV data
2001-08-04 fy <fygrave@tigerteam.net>
* A couple of coredump fixes from Phil Wood
* Solaris compilation fixes (and other minor tweaks I don't
remember)
* Incorporated WIN32 patches (and fixes) from Chris Reid
* ms-sql support from Chris Reid
* contrib/create_mssql
2001-07-09 mfr <roesch@sourcefire.com>
* added new IP defragmenter, spp_frag2
* added new stateful inspection/tcp stream reassembly plugin, spp_stream4
* Snort can now statefully detect ECN traffic (less false alarms)
* stream4 can now keep session statistics in a "session.log" file
* added new high-speed unified binary output system, spo_unified
* added new data structs/management for tag code
* added -k switch to tune checksum verification behavior
* added -z switch to provide stateful verification of alerts
* modified bahavior of http_decode, now only alerts once per packet
* added unique Snort ID's to every Snort rule, plus generator, revision
and event ID info to each alert
* detection engine only alerts once per packet now, tcp stream code doesn't
generate another alert packet if a previous one already alerted for that
stream
* fixed signal handling on svr4 systems
* added enhanced cross reference printout to full/fast/syslog alert modes
* added new high speed checksum verification (on x86) routines
* added new ARP spoof detection preprocessor from Jeff
Nathan <jeff@wwti.com>
2001-04-20 fy <fygrave@tigerteam.net>
* a couple of fixes in spp_defrag.c
* spelling fixes in 'classification.config' file
2001-04-19 bmc <bmc@mitre.org>
* added ability to tag sessions & hosts (By Seconds, Bytes, and Packets)
* ip protocol rule support
* added 802.1q VLAN support
* extensive configuration file config options (you can put your
commandline options in snort.conf now)
* priority & classification plugin by Brian Caswell
* output plugin support for priority, classification, and refs
* rpc_decode plugin (Defeats attacks laid out by Robert Graham's SideStep)
* telnet negotiation normalization plugin (Defeats attacks laid out
by Robert Graham's SideStep)
* BackOrifice plugin (Can bruteforce BO keys. Defeats attacks laid out
by Robert Graham's SideStep)
* uricontent keyword pattern match. (Now you can look at the URL instead
of the entire packet)
* added -T commandline option (Does entire setup process, but stops
after its done setting up) great for snort.conf testing!!
* added -L commandline option. Specify filename of the binary output
log when combined with "-b"
* added -G commandline option. Turn on "ghetto" backwards
compatability for people that need
references in the MSG field
* added -I commandline option. Prints the interface that the
alert was received on
* added -y commandline option. Adds YEAR to the timestamps
* Fixed timestamp output problem on some ARCHs
* ability for non-root users to sniff. (If the user can usually
sniff from pcap) By Brian Caswell
* Improved UNICODE detection by Koji Shikata
* added sp_tcp_win_check. TCP Window Size can be looked now
* added CSV output (see README.csv for more information) By Brian Caswell
* added sp_same_ip_check. Checks for the same SRC & DST (Usually sign
of a DOS attack) by Phil Wood
* added variable lookups for include directives (eg 'include
$RULESPATH/myrules.rules')
* linux_sll (interface 'any') support fixed (According to the new
libpcap spec) By Fyodor
* new debugging code. No more #ifdef DEBUG. (see debug.c for more
info) Idea from Eugene Tsyrklevich
* strl* family functions (mostly for future developers, we'd encourage
these to be used) (original code also supplied by Eugene)
* new tcp stream reassembly module by Chris Cramer
* include directives now are relative to snort.conf file location
(unless full path in a config file is given)
* snort will look for /etc/snort.conf and ./snort.conf if no config
is given on the commandline
* minor null ptr fixes and patches there and here (thanks to all of
you guys who helped tracking them down, really :-) - Fyodor)
* optiomized database schema (Support for references, added
signature normalization, ....)
* UTC cleanup by Andrew Baker
* http_ignorehosts added from Matt Wachinski
2001-03-14 fy <fygrave@tigerteam.net>
* tcp stream reassembly updates by Chris Cramer
* path fixes for include <file> (now relative path'es will be substituted
by path of the main file)
* DLT_LINUX_SLL support fixes
* strlcat/stlcpy functions are being incorporated
* Attempt to support MacOS platform.
* A bunch of fixes for MTU dicovery routine
* New debugging routines. (see BUGS file for more info).
2001-01-02 mfr <roesch@md.prestige.net> fy <fygrave@tigerteam.net>
* tcp stream reassembly preprocessor (beta) by Chris Cramer
* Defragmentation plugin is now fully functional on all architectures
* SPADE (Statistical anomaly detection) preprocessor has been added by
James Hoagland
* Added IIS/UNICODE attack detection to HTTP decoder
* Reference plugin has been added by Joe McAlerney
* New active response module: sp_react
* Added "any" keyword to IP options (ipopts) plugin
* IP fragmentation bits detection plugin added
* Added TOS detection plugin from Erich Meier
<Erich.Meier@informatik.uni-erlangen.de>
* Database output plugin improved in many ways by Jed Pickel
* Oracle support added to database output plugin
* XML output plugin by Jed Pickel/Roman Danyliw/CERT
* IP address list support added with lots of help from Phil Wood
* <interface>_ADDRESS variable implementation, specifying an interface name
in the rules file as part of this variable automatically sets the IP/mask
as the IP address/netmask of the specified interface
* Rule parser is more anal about rule verification now, doesn't crash as
readily
* Arbitrary output types support added by Andrew Baker
* Activate/dynamic rules allow rules to turn on/off other rules!
* ICMP unreach. printout dumps encapsulated headers now
* Improved TCP/IP options printout code, doesn't flood on 0 length options
* Packet checksumming implemented for all supported protocols by Chris
Cramer
* TCP flags now print out in proper (bitwise) order
* Added new fields to the packet header dumps including IP header length,
TCP/UDP header length, Urgent pointer printout, IP Reserved bit printout,
ICMP Type/Code explicit value printout
* -X switch dumps packet byte data for data link through application layer
* -L switch to privde a filename for binary log files specified with the -b
switch
* Added -I switch to print interface name in Snort alerts (first i/f only)
* Fixed -S command line switch so it isn't overridden by variables in the
rules file
* Corrected PID file misadventures
* Added a bunch of new statistics to the packet stats printout
* Added SIGUSR1 handler, Snort will dump packet stats to console/syslog
when it receives a SIGUSR1
* Memory management cleaned up/lots more free()'s to match up with
malloc()'s
* Added snprintf code to the distro for safety
* UID = 0 code added for sniffer mode
* fixed default alert filename for daemon mode
* Updated USAGE file to resemble Snort's current reality
* Changed snort-lib to snort.conf, Jed Pickel added lots of documentation
to the file as well (thanks Jed!)
* Pid file will not be created if -D switch is not used.
* chroot behaviour has been changed, now, if chroot is used, you have
to have snort.conf file within chroot directory (and all the other
relevant files as well). The only file which will be placed outside
chroot directory is snort pid file.
2000-07-22 mfr <roesch@md.prestige.net>
* Fixed compilation problems on all non-BSD operating systems
* Added better configuration support for locating libpcap
* Fixed ICMP ping packet id/sequence printouts
* Made allowances for 64-bit machines in the decoders
* Updated the portscan detector to the latest version
* Disabled the defragmenter by default (in the rules file)
* Added a patch from Dave Dittrich to make daemon mode alerts
filenames conform to the data in the documentation
* Revamped the ICMP data structures to mimic those found in *BSD
and provide for higher fidelity decoding/printout in the future
* Repaired the output plugins so that they operate properly now
* For the record, the payload dump conforms to the length of the
IP datagram now and does not show pad bytes added by the minimum
Ethernet frame size
2000-07-08 mfr <roesch@md.prestige.net>
* Fixed Tru64 u_int* type declarations
* Added check for pcap.h into configuration script
* Fixed timeval problems on Linux boxen
2000-07-06 mfr <roesch@md.prestige.net>
* New preprocessor plugin: IP defragmentation!!
* New output plugins cover all old logging and alerting options
* New output plugin now logs to MySQL, PostgreSQL, unixODBC databases
* Updated portscan detection functionality
* Added quote removal for most plugin parsers
* -C crash bug fixed
* PID/PATH_VARRUN file fixes
* Converted many putc(3) calls to fputc(3) for portability
* Transport layer decoders use ip_len field for length metric now
* String tokenizer code modified for more reliable operation
* Fixed flexible response code sequence prediction
* Fixed DEBUG ifdef's so DEBUG mode code will compile correctly on all
platforms
* Set automake options so that people don't need gmake anymore to build
Snort on BSD systems
* Fixed SMB alert code large tmp file hole
* Added sigsetmask code to fix SIGHUP weirdness
* Added execvp option for SIGHUP restart code
* Added ARP header printout validation
* Added Session logging file integrity checking
* Added -u/-g setuid/gid capability switches
* Added -O IP address obfuscation switch
* Added -t chroot switch
* Fixed non-TCP/UDP/ICMP transport layer decoding & logging
* Fixes and additions to the portscan preprocessor
* Database logging plugin has been modified extensively, see the
www.incident.org website for more information
* Switched TCP flags printout routine to ensure proper RFP output
scan output. ;)
* Fixed default log/alert function code so that these functions are
never NULL
2000-03-20 mfr <roesch@md.prestige.net>
* Version 1.6 released!
2000-03-18 mfr <roesch@md.prestige.net>
* Modified the PID write out code to work in all run modes, and made
the system detect/verify the _PATH_VARRUN variable and define it
if necessary.
* Integrated a HUP patch from J Cheeseman to prevent the command line
parser from screwing up the command line at HUP time.
* Added a little tweak from Fyodor for Makefile.in
* Made exit code delete the PID file in all run modes.
2000-03-16 mfr <roesch@md.prestige.net>
* Activated the BPF compiler optimization switch in snort.c
* Added support for unconfigured/stealthed network interfaces
* CP added a default definition for _PATH_VARRUN
* CP added checks for paths.h existence
2000-03-15 mfr <roesch@md.prestige.net>
* Moved the "session" keyword code to a plugin
* Added Postgres database logging module from Jed Pickel
* Added Token Ring layer 2 printout routine
* Added "-q" support to the output plugin modules
* Revamped the output plugin subsystem so that it conforms to the
API standards laid out in the rest of Snort
* CP set defaults for the alerting and logging facilities
* Added Tru64/Alpha support
2000-02-26 mfr <roesch@md.prestige.net>
* modified minfrag proprocessor to only catch tiny frags on the home
net ("home" keyword) or any traffic ("any" keyword)
* implemented command line override of output plugins, alert and log
switches on the command line will disable output plugins in favor of
their configured activity
* added -C command line switch to print packet payloads as ASCII only,
with no hexdump
* fixed a stupid crash bug on the "logto" keyword parser
* put in a couple of command line switch validators to catch potential
invalid arguments
* fixed a potential crash bug in the ClearDumpBuf() function
2000-02-07 mfr <roesch@md.prestige.net>
* Added INADDR_BROADCAST patch from Steve Beaty <beaty@emess.mscd.edu>
* Added syslog PID patch from Ralf Hildebrant
* Added IPv6 counter from Erich Meier
<Erich.Meier@informatik.uni-erlangen.de>
* Added SunOS patch from Denis Ducamp <Denis.Ducamp@hsc.fr>
* Added content-list rules from
2000-01-17 cp <fygrave@tigerteam.net>
* Update of Patrick's portscan preprocessor. (and apropriate fixes)
* Minor fix to configure.in from Herb Commodore.
2000-01-12 cp <fygrave@tigerteam.net>
* John Wilson's update to insensitive pattern match code added.
* Patrick Mullen's patch to log.c applied.
* Patrick Mullen's changes to rules.c added.
* Source Port traffic rules ajusted not to pull alerts on 53<-->53 UDP
traffic.
* Changed name ParseFlags to --> ParseTCPFlags in sp_tcp_flag_check.*
since that's what it really is.
* Added RCS Id tags to all the files and libs. Once they are commited
at md.prestige.net, they should take proper values. :)
2000-01-08 cp <fygrave@tigerteam.net>
* Patch from Herb Commodore <herb@nc.rr.com> to configure applied
* Imrovements to content-matching code and implementation of
case-insensitive matching from John Wilson <tug@wilson.co.uk)
are added.
* "zero netmask" problem fixed.
* Patrick Mullen's portscan preprocessor is added. log.c routines
have been fixed to handle NULL pointers.
* binary logging routines have been changed to use libpcap procedures
which should fix certain problems with binary logging.
* Fix in rules.c to complain about bogus preprocessor names.
2000-01-03 mfr <roesch@clark.net>
* fixed a problem with pass rules not being applied properly
* fixed a #include ordering statement for Slackware 4.0 installs
* fixed banner output for the -V option
* Token Ring decoding is now fully functional
* Added packet buffer cleanup code to all protocol decoders
* fixed a problem with improper TCP option output
* Added a Snort man page
1999-12-08 mfr <roesch@clark.net>
* preprocessor plugins (major new functionality!)
* detection plugins (major new functionality!)
* variables can now be specified in the rules file
* include files can now be specified in the rules file
* Session recording capability
* Rules may now contain multiple "content" match keywords
* New IP options detection module, allows IP option inspection
* New HTTP decoder preprocessor defeats evasive web scans (whisker.pl)
* detection engine has been heavily modified to implement the new
"linked-list-of-function-pointers" concept, which makes the detection
engine more efficient, more flexible, and faster!
* TCP options decoder split into decode/log modules and recoded
* IP options decoder split into decode/log modules and recoded
* Token Ring layer 2 decoder (still in development)
* ISDN-Raw layer 2 decoder (I4L)
* ISDN-IP layer 2 decode (I4L)
* ISDN-Cisco layer 2 decode (I4L)
* Fixed PPP layer 2 decoder
* NULL/Loopback layer 2 decoder
* daemon mode code cleanup
* tcpdump readback mode code cleanup
* experimental support for UNIX socket alerting
* fixed C++ comments in snort.c
* binary log files now update properly (fflush added)
* internal rules list integrity testing
* IP fragments are no longer sent to the detection engine, just
the preprocessor's. This is incentive for me (or someone) to write
an IP defragmentation preprocessor!
* post-decode call function call sequence has been modified to go into
the preprocessor system instead of the detection engine
1999-10-18 mfr <roesch@clark.net>
* snort.c: * added session dump command line switch
* log.c: * added sesion data logging functionsi: OpenSessionFile(),
DumpSessionData().
* decode.c: * fixes snaplen issues with reading back tcpdump files.
1999-10-13 mfr <roesch@clark.net>
* snort.c: * threw out tcpdump file readback code and implemented
open_pcap_offline solution. Has addded benefit of
allowing BPF filters to be used to modify file readback
streams.
* Fixed MTU snafu.
* decode.c: * Rewrote ARP decoder. The decoder is much simpler (but
the log routines are far more complex)
* Horsed around with the TCP and IP option decoders. I
think they work better now...
* log.c: * Added ARP printout and logging routines. ARP is now
handled in a much more consistent and correct manner.
* Fixed stupid crash bug in LogPkt()
* rules.c: * Added in greater-than and less-than modifiers for dsize
option keyword. You now have another (cheap!) way to look
for buffer overflows
* Removed range checking for the ICMP icode and itype
option keywords so that DoS attacks and covert activity
could be more easily filtered/monitored
1999-09-26 mfr <roesch@clark.net>
* snort.c: * new command line options -A, -F, -N, -p, -b
* logging and alerting functions are now selected and
assigned to function pointers for faster/more efficient
logging
* got rid of -f command line option (superceded by -b)
* put in new cleanup code for readback mode
* ripped read_infile from tcpdump to read BPF filter files
* decode.c: * code cleanup in support of new functionality
* rules.c: * added support for the exception operator to work for ports
* fixed stupid pointer initialization bug in
ProcessHeadNode() file, fixed crashes on non-PC arch.
* new option keywords: dsize, offset, depth
* cleaned up crappy logic around the logging functions with
nice clean function pointers (aaaahhhh....)
* added bidirectional rules functionality (now Snort goes
both ways....)
* log.c: * broke out alerting function into seperate subfunctions
* ditto logging functions
* fixed string termination code in the SMB alerter so that it
can now alert to more than one box at a time
* cleaned up syslog messages
* finally fixed the SMB "alert once" problem (kudos to Gandalf
Schaufelberger for that one)
1999-08-06 mfr <roesch@clark.net>
* log.c: * added code to AlertMsg to make sure that there was in fact
an alert message to print out
* libraries: * fixed the backdoor and scan libraries so they should
flase alarm less often
1999-08-05 mfr <roesch@clark.net>
* snort.c: * activated CyberPsychotic's daemon mode code (use the
-D switch for daemon mode
* default logging directory changed from "." to
/var/log/snort
* sanity checks performed on the default log dir now
* decode.c: * changed the truncated Ethernet header notification to
only go off in verbose mode
* removed cruft
* rules.c: * Added Ron Snyder's "address negation" patch. Rules may
now contain "!" on the IP addresses to indicate anything
BUT the given address
* log.c: * added support for the new default logging directory
* configure.in: * fixed some more sparc configuration problems
* other: * CyberPsychotic sent a new ftp buffer overflow rule in
1999-08-04 mfr <roesch@clark.net>
* snort.c: * fixed some DEBUG statements
* enabled the daemon mode code (this is still
experimental)
* decode.c: * fixed various and sundry DEBUG code
* fixed the TCP option decoder so it wouldn't overflow
its prinout buffer and cleaned up the temp buffer
* rules.c: * fixed some DEBUG code
* log.c: * fixed a buffer copy problem with the daemon mode alert
logging
* fixed the SMB alerting code and the standard log output
when in SMB alerting mode
* cleaned up some of the fragment logging code
* fixed the logto rules option coding to work properly
* configure.in: * fixed a whole bunch of little problems that are
screwing up big endian/non-PC machines. This
version should work and compile much more cleanly
on all architectures!
* other: fixed a bad rule in the RULES.SAMPLE file and another bad
one in the misc-lib file
1999-08-01 mfr <roesch@clark.net>
* rules.c: Wrote brand new detection engine. The new engine uses
a 2-dimensional linked list with recursive node walking.
Rules are grouped by address/port commonality and then
option chains are linked to common head blocks. This
reduces the number of tests required to find a specific
test to perform, and reduces the total number of tests
performed on a given packet in all cases by 200-500%
over version 1.1.
* decode.c: Rewrote the packet decode engine. The new engine
performs far fewer copies and tries to set pointers
to defer expensive function calls as late as possible.
The PrintIP and Net data structures have been eliminated
so that there is no global data required to perform tests
or log a given packet. This will make any future multi-
threading efforts much easier.
* log.c: * Much of the logging system was rewritten to take advantage
of the new detection and decoding engines.
* Made the SMB alerting a configure-time option. If you
want to use the SMB alerting feature, you need to specify
a "--enable-smbalerts" when you run configure. This is a
safety measure, read the INSTALL file for the reasons why!
* snort.c: Fixed a bug in the netmask generation code that wouldn't
allow certain CIDR blocks to be represented. Thanks to
Nick Rogness <nick@trinux.rapidnet.com> for the heads
up on this one!
1999-06-21 mfr <roesch@clark.net>
* snort.c: * Added new command line switches: -f, -M, -r.
-f: Record fragmented packets in tcpdump format
-M: Send alerts via WinPopup messages (requires Samba)
-r: Read and process files generated by tcpdump
* Fixed startup dumpout code to not drop people if they just
want to log all packets to the system
* Added static netmask generation, this rids Snort of the
need to link to libm, which makes it more Trinux friendly.
* rules.c: * Added new rule option types:
logto: log packets matching this rule to the specified
log file
minfrag: set the minimum size of fragmented packets, which
allows alerts to be generated for traffic coming
from things like nmap or fragrouter
tcp flags: Added the ability to include the reserved bits
of the tcp flags into the rules set. These
flags are specified with a "1" and "2.
Inclusion of these flags allows Queso
fingerprinting attempts to be detected.
id: The IP ID field may be specified. This is nice for
picking up handcrafted packets with recognizable ID
fields, like 31337 or other "elite" numbers.
ack: The TCP ack field. Using this, nmap tcp "pings" may
be detected.
seq: The TCP sequence number. This is provided for
completeness (I figured since I was putting in the
ack field, I may as well include the sequence as
well)
* Rewrote the content parser. It now accepts "\" as a
literal character, so things like "\|" or "\~" will work
properly.
* fixed the parenthesis finder for the options code
* adjusted the acceptable character range in the rule
parsers
* log.c: * fragment logging more descriptive and correct
* fixed IP header logging for ICMP and fragmented packets
* improved "bad packet" printing/logging
* fixed IP option output code
* IP packet ID field now displayed
* decode.c: * fixed IP fragment decoders and logic streams.
* fragments are now fed thru the rules set (sorta)
1999-05-17 mfr <roesch@clark.net>
* snort.c: Added "-x" command line switch to explicitly activate IPX
packet notification so people in mixed protocol environments
can maintain sanity. Also added in the new packet counter to
generate statistics on exit of the number/percentage of
each type of packet that Snort sees.
* decode.h: Removed the references to u_int16_t and u_int32_t and
replaced them with u_short and u_long. The u_int*_t
variables caused portability headaches. Also added in the
new patch from Chris S. for the WORDS_MUSTALIGN definition
for S/Linux version.
* log.h: Fixed the LOG_AUTH/LOG_AUTHPRIV problem that Solaris users
were having.
* decode.c: Added the new packet statistics counters throughout the
code. Cleaned up the IPX code a bit.
* rules.c: Cleaned up the isspace(3) (et al) calls.
* etc: Made lots of tweaks to the autoconf stuff to get the S/Linux
and HP-UX versions to compile cleanly out of the box.
1999-04-28 mfr <roesch@clark.net>
* rules.c: Added the code to change the order the rules are applied in.
* snort.c: Added two new command line switches: "-o" and "-s".
* decode.c: Added in new layer 2 decoding for SLIP and RAW packet
types.
* log.c: Added code to send alert notification to syslog.
1999-04-17 mfr <roesch@clark.net>
* rules.c: Rewrote the rules option parser. It's now a much more
consistant interface for both reading rules into the program
and writing them as a user. Added in new rule types to
alert on TTL values, and ICMP types/codes.
* log.c: Most of the logging code has been dramatically rewritten as
well, and it now works much better.
* mstring.c: Added the notion of a meta character to mSplit() so that
it was possible to not split on every single occurence of
a character in a string.
* decode.c: Smoothed out all the logging system calls to work nicely
with the new log code.
1999-04-08 mfr <roesch@clark.net>
* rules.c: Moved AlertPkt() and LogPkt() to log.c
* log.c: Totally revamped the logging code to be more logical and
have less duplication in the code. There are now seperate
logging functions for each of the layers of the packet.
PrintIPPkt() has been totally rewritten, PrintFragHeader has
been eliminated, and two functions have been moved over from
rules.c and completely rewritten as well.
* decode.c: Reworked the routines which called the logging functions.
1999-04-06 mfr <roesch@clark.net>
* decode.c: added code to display/log the Fragment ID field of the IP
header. Got a nice patch from Sebastian to add in TOS
decoding as well. Added ethernet header logging and
display code.
* mstring.c: fixed the match() routine. It had a tendency to miss some
things some of the time. (oops!) Content based matching
should work all the time now.
* log.c: added code to display some of the new stuff that's decoded.
* snort.c: add a new command line switch: "-e". This will display the
ethernet header data in both the log files and on the screen.
1999-03-24 mfr <roesch@clark.net>
* decode.c: fixed the damned TCP and IP options decoders. These things
were a friggin pain in the ass to program up properly.
Recoding them stopped the huge loop that they had a bad
tendancy to get stuck in, thereby making the rest of the
program nigh infinitely more useful for just about any
friggin problem under the friggin sun. Frig it.
* log.c: Stopped the insanity of unnessary carriage returns in the log
files and on screen printouts. Another PITA.
* rules.c: Fixed output formatting yet again.
1999-03-21 mfr <roesch@clark.net>
* snort.c: fixed a bug in the timestamp code so the month prints out
right
* decode.c: added code to detect and decode IP and TCP Options. Also
added code to print packet fragments with truncated headers
into a PACKET_FRAG file which gets dumped in the default log
directory.
* log.c: added code and data structures to print out IP and TCP Options
plus I fixed the f'd up fragment print out logic. Changed
OpenLogFile() to include a mode argument for packet fragment
print out.
* rules.c: rewired the entire rules test routine and added some long
needed goto's into the program. I feel manly now. Also
added a new rule field: TCP flags. This allows us to
alert/log/pass on tcp flags. Also added in port range
functionality, you can now specify a range of ports, or
greater than/less than a specified port.
1999-03-08 mfr <roesch@clark.net>
* snort.c: Ripped off the timestamp printout routines from tcpdump
and stuffed them into snort.c, yum yum. This gives us
millisecond timestamping on the packets for those of you
interested in such things.
1999-03-06 mfr <roesch@clark.net>
* mstring.c: mContainsSubstring has been replaced. mContainsSubstring
is a brute force pattern matcher, and is therefore very
slow and not too efficient. The new routine, match(),
implements a Boyer-Moore string search algorithm and is
much faster in the general case and much more tolerent of
"poor" pattern selection.
* log.c: PrintNetData has been completely rewritten. It should now be
much faster and only needs to generate the print out buffer
once per packet. This routine was a major source of slow
down/dropped packets before. You still shouldn't use verbose
mode with the "-d" command line switch if you're using Snort
as an IDS, because it's still slow enough to drop some large
packets. Packet print out has changed as well, with the
different packet layers seperated by onto their own lines
(well, mostly). Fragmented packets are now recorded in a
"FRAG" file.
* decode.c: Snort now detects fragmented packets, plus the DF and MF
bits, and decodes the fragment offset.
* snort.c: Now displays packet collected/dropped statistics when
shutting down.
1999-02-18 mfr <roesch@clark.net>
* snort.c: Code cleanup and some error checking was added. The system
now accepts the interface name you give it at the command
line. Fixed a problem with underallocating the interface
name buffer for names specified on the command line.
Suprisingly, this only came to light when tested on the
Sparc architecture.
* log.c: ICMP logging now includes the ICMP code description in the
filename. This makes it easier to see what you're interested
in without having to go digging into the log files.
* decode.c: Made the ICMP types and codes a little more compatible with
being used as a filename.
1999-01-28 mfr <roesch@clark.net>
* rules.c: Rules sorting is now implemented. There are actually three
seperate lists (Pass, Log, Alert) now, with the rules being
placed on to the lists in the order they're read from the
rules file. The rule execution order was changed, now
Alert rules are applied first, then Pass Rules, the Log
rules. Content based rules are available now, the actual
application layer data can be searched, both binary and
text, for a specific pattern to activate a rule on.
* decode.c: Minor changes to reflect the new rules structure.
1999-01-19 mfr <roesch@clark.net>
* snort.c: Modularized the code, big time! New source modules are log,
rules, decode, and mstring. Dumped SetFlow() for now.
* rules.c: Rules based packet logging now enabled!
* log.c: Now keeps track of TCP/UDP conversations better!
* decode.c: Enhanced decoding of packets, including ICMP ECHO seq and
id!
1999-01-08 mfr <roesch@clark.net>
* snort.c: Made a fix to SetFlow() so that it wouldn't dump the
program if it got traffic from 0.0.0.0 or 255.255.255.255.
* snort.h: Removed the "#define VERSION" since it's handled in config.h.
* README: Proper README file included with this distro
1998-12-21 mfr <roesch@clark.net>
* snort.c: Made this file, figured out autoconf
|