電腦攻擊與防禦 The Attack and Defense of Computers Dr. 許 富 皓.

Slides:



Advertisements
Similar presentations
Buffer Overflows Nick Feamster CS 6262 Spring 2009 (credit to Vitaly S. from UT for slides)
Advertisements

Smashing the Stack for Fun and Profit
CSc 352 Programming Hygiene Saumya Debray Dept. of Computer Science The University of Arizona, Tucson
Computer Security: Principles and Practice EECS710: Information Security Professor Hossein Saiedian Fall 2014 Chapter 10: Buffer Overflow.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 11 – Buffer Overflow.
Lecture 16 Buffer Overflow modified from slides of Lawrie Brown.
CMSC 414 Computer and Network Security Lecture 22 Jonathan Katz.
Review: Software Security David Brumley Carnegie Mellon University.
Foundations of Network and Computer Security J J ohn Black Lecture #30 Nov 26 th 2007 CSCI 6268/TLEN 5831, Fall 2007.
1 CHAPTER 8 BUFFER OVERFLOW. 2 Introduction One of the more advanced attack techniques is the buffer overflow attack Buffer Overflows occurs when software.
Gabe Kanzelmeyer CS 450 4/14/10.  What is buffer overflow?  How memory is processed and the stack  The threat  Stack overrun attack  Dangers  Prevention.
The Attack and Defense of Computers Dr. 許 富 皓 Attacking Program Bugs.
資安產學個案研討 許 富 皓 資 訊 工 程 學 系 國 立 中 央 大 學. SQL Injection [SK]SK.
1 The Attack and Defense of Computers Dr. 許 富 皓. 2 Attacking Program Bugs.
1 Automatic Real-time Counterattack System against Remote Buffer Overflow Attack 許富皓 先進防禦實驗室 資訊工程學系 國立中央大學.
1 Homework Reading –PAL, pp , Machine Projects –Finish mp2warmup Questions? –Start mp2 as soon as possible Labs –Continue labs with your.
Assembly תרגול 8 פונקציות והתקפת buffer.. Procedures (Functions) A procedure call involves passing both data and control from one part of the code to.
1 RISE: Randomization Techniques for Software Security Dawn Song CMU Joint work with Monica Chew (UC Berkeley)
Lecture 16 Buffer Overflow
CMSC 414 Computer and Network Security Lecture 20 Jonathan Katz.
University of Washington CSE 351 : The Hardware/Software Interface Section 5 Structs as parameters, buffer overflows, and lab 3.
Security Exploiting Overflows. Introduction r See the following link for more info: operating-systems-and-applications-in-
Web Application Access to Databases. Logistics Test 2: May 1 st (24 hours) Extra office hours: Friday 2:30 – 4:00 pm Tuesday May 5 th – you can review.
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2011.
Fall 2008CS 334: Computer SecuritySlide #1 Smashing The Stack A detailed look at buffer overflows as described in Smashing the Stack for Fun and Profit.
Understand stack Buffer overflow attack and defense Controls against program threats.
ANCS 2006 Scalable Network-based Buffer Overflow Attack Detection Fu-Hau Hsu Department of Computer Science and Information Engineering National Central.
Mitigation of Buffer Overflow Attacks
Lecture slides prepared for “Computer Security: Principles and Practice”, 3/e, by William Stallings and Lawrie Brown, Chapter 10 “Buffer Overflow”.
University of Washington Today Happy Monday! HW2 due, how is Lab 3 going? Today we’ll go over:  Address space layout  Input buffers on the stack  Overflowing.
Buffer Overflow CS461/ECE422 Spring Reading Material Based on Chapter 11 of the text.
Buffer Overflow Attack-proofing by Transforming Code Binary Gopal Gupta Parag Doshi, R. Reghuramalingam The University of Texas at Dallas 11/15/2004.
Smashing the Stack Overview The Stack Region Buffer Overflow
Buffer Overflow. Introduction On many C implementations, it is possible to corrupt the execution stack by writing past the end of an array. Known as smash.
Overflows & Exploits. In the beginning 11/02/1988 Robert Morris, Jr., a graduate student in Computer Science at Cornell, wrote an experimental, self-replicating,
Buffer Overflow Proofing of Code Binaries By Ramya Reguramalingam Graduate Student, Computer Science Advisor: Dr. Gopal Gupta.
Buffer Overflow Attack Proofing of Code Binary Gopal Gupta, Parag Doshi, R. Reghuramalingam, Doug Harris The University of Texas at Dallas.
Lecture 9: Buffer Ovefflows and ROP EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014,
What is exactly Exploit writing?  Writing a piece of code which is capable of exploit the vulnerability in the target software.
A Tool for Pro-active Defense Against the Buffer Overrun Attack D. Bruschi, E. Rosti, R. Banfi Presented By: Warshavsky Alex.
1 Understanding Pointers Buffer Overflow. 2 Outline Understanding Pointers Buffer Overflow Suggested reading –Chap 3.10, 3.12.
Buffer overflow and stack smashing attacks Principles of application software security.
Information Security - 2. A Stack Frame. Pushed to stack on function CALL The return address is copied to the CPU Instruction Pointer when the function.
Foundations of Network and Computer Security J J ohn Black CSCI 6268/TLEN 5550, Spring 2013.
Slides by Kent Seamons and Tim van der Horst Last Updated: Nov 11, 2011.
1 The Attack and Defense of Computers Dr. 許 富 皓. 2 Attacking Program Bugs.
VM: Chapter 7 Buffer Overflows. csci5233 computer security & integrity (VM: Ch. 7) 2 Outline Impact of buffer overflows What is a buffer overflow? Types.
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2014.
Software Security. Bugs Most software has bugs Some bugs cause security vulnerabilities Incorrect processing of security related data Incorrect processing.
Chapter 10 Buffer Overflow 1. A very common attack mechanism o First used by the Morris Worm in 1988 Still of major concern o Legacy of buggy code in.
@Yuan Xue Worm Attack Yuan Xue Fall 2012.
Mitigation against Buffer Overflow Attacks
Buffer Overflow Buffer overflows are possible because C doesn’t check array boundaries Buffer overflows are dangerous because buffers for user input are.
The Hardware/Software Interface CSE351 Winter 2013
Security Holes Created by Program Bugs
The Attack and Defense of Computers
Introduction to Information Security
CMSC 414 Computer and Network Security Lecture 21
CS 465 Buffer Overflow Slides by Kent Seamons and Tim van der Horst
Assembly Language Programming II: C Compiler Calling Sequences
The Attack and Defense of Computers
Software Security Lesson Introduction
Format String.
Foundations of Network and Computer Security
Machine Level Representation of Programs (IV)
CAP6135: Malware and Software Vulnerability Analysis Buffer Overflow : Example of Using GDB to Check Stack Memory Cliff Zou Spring 2016.
Understanding and Preventing Buffer Overflow Attacks in Unix
System and Cyber Security
Format String Vulnerability
Return-to-libc Attacks
Presentation transcript:

電腦攻擊與防禦 The Attack and Defense of Computers Dr. 許 富 皓

Attacking Program Bugs

Attack Types Buffer Overflow Attacks: Stack Smashing attacks Return-into-libc attacks Heap overflow attacks Function pointer attacks.dtors overflow attacks. setjump / longjump buffer overflow attacks. Format string attacks: Integer overflow and integer sign attacks

Why Buffer Overflow Attacks Are So Dangerous? Easy to launch: Attackers can launch a buffer overflow attack by just sending a craft string to their targets to complete such kind of attacks. Plenty of targets: Plenty of programs have this kind of vulnerabilities. According to CERT, more than 50% of today’s Internet incidents are launched through buffer overflow attacks. Cause great damage: Usually the end result of a buffer overflow attack is the attacker’s gaining the root privilege of the attacked host. Internet worms proliferate through buffer overflow attacks.

Stack Smashing Attacks

Principle of Stack Smashing Attacks Overwritten control transfer structures, such as return addresses or function pointers, to redirect program execution flow to desired code. Attack strings carry both code and address(es) of the code entry point.

Explanation of BOAs (1) b return address add_g address of G’s frame point C[0] H’s stack frame G(int a) { H(3); add_g: } H( int b) { char c[100]; int i; while((c[i++]=getch())!=EOF) { } } C[99] Input String: xyz ZYXZYX G’s stack frame 0xabc 0xaba 0xabb

Explanation of BOAs (2) b return address add_g address of G’s frame point C[0] H’s stack frame addrress oxabc G(int a) { H(3); add_g: } H( int b) { char c[100]; int i; while((c[i++]=getch())!=EOF) { } } C[99] Injected Code 0xabc Attack String: xxInjected Codexy0xabc Length=108 bytes 0xaba 0xabb xxxx x y

Injected Code: The attacked programs usually have root privilege; therefore, the injected code is executed with root privilege. The injected code is already in machine instruction form; therefore, a CPU can directly execute it. However the above fact also means that the injected code must match the CPU type of the attacked host. Usually the injected code will fork a shell; hence, after an attack, an attacker could have a root shell.

Injected Code of Remote BOAs In order to be able to interact with the newly forked root shell, the injected code usually need to execute the following two steps: Open a socket. Redirect standard input and output of the newly forked root shell to the socket.

Example of Injected Code for X86 Architecture : Shell Code char shellcode[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46 \x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\ x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff\xff\xff/bin/sh";

Two Factors for A Successful Buffer Overflow-style Attack(1) A successful buffer overflow-style attack should be able to overflow the right place (e.g. the place to hold a return address with the correct value (e.g. the address of injected code entry point)).

Two Factors for A Successful Buffer Overflow-style Attack(2) buffer where the overflow start injected code return address offset between the beginning of the overflowed buffer and the overflow target. address of injected code entry point. The offset and the entry point address are non-predicable. They can not decided by just looking the source code or local binary code.

Non-predicable Offset For performance concerns, most compilers don’t allocate memory for local variables in the order they appear in the source code, sometimes some space may be inserted between them. (Source Code doesn’t help) Different compiler/OS uses different allocation strategy. (Local binaries don’t help) Address obfuscation insert random number of space between local variables and return address. (Super good luck may help)

Non-predicable Entry Point Address 0xbfffffff system data environment variables argument strings env pointers argv pointers argc webserver –a –b security command line arguments and environment variables Function main()’s stack frame

Strategies Used by Attackers to Increase Their Success Chance Repeat address patterns. Insert NOP (0x90) operations before the entry point of injected code.

Exploit Code Web Sites Exploit World The Metasploit Project

An Exploit Code Generation Program This program uses the following three loop to generate the attack string which contains the shell code. for(i=0;i<sizeof(buff);i+=4) *(ptr++)=jump; for(i=0;i<sizeof(buff)-200-strlen(evil);i++) buff[i]=0x90; for(j=0;j<strlen(evil);j++) buff[i++]=evil[j];

Return-into-libc Attacks

Return-into-libc A mutation of buffer overflow attacks. Utilize code already resided in the attacked programs’ address space, such as libc functions. Attack strings carry entry point address(es) of a desired libc function, new frame point address and parameters to the function.

How Parameters and Local Variables Are Represented in An Object file? abc(int aa) { int bb; bb==aa; : } abc: function prologue *(%ebp-4)=*(%ebp+8) function epilogue aa return address previous frame point bb ebp

A Way to Change The Parameters and Local Variables of A Function. A parameter or a local variable in an object file is represented through its offset between the position pointed by %ebp and its own position. Therefore, the value of the %ebp register decides where a function to get its parameters and local variables. In other words, if an attacker can change the %ebp of a function, then she/he can also change the function’s parameters and local variables.

Function Prologue and Epilogue #include int add_three_items(int a, int b, int c) { int d; d=a+b+c; return d; } add_three_items: pushl %ebp movl %esp, %ebp subl $4, %esp movl 12(%ebp), %eax addl 8(%ebp), %eax addl 16(%ebp), %eax movl %eax, -4(%ebp) movl -4(%ebp), %eax leave ret leave=movl %ebp,%esp popl %ebp function prologue function epilogue 3 4

Function Calls main() { int a, b,c,f; extern int add_three_items(); a=1; b=2; c=3; f=add_three_items(a,b,c); } main: pushl %ebp movl %esp, %ebp subl $24, %esp andl $-16, %esp movl $0, %eax subl %eax, %esp movl $1, -4(%ebp) movl $2, -8(%ebp) movl $3, -12(%ebp) subl $4, %esp pushl -12(%ebp) pushl -8(%ebp) pushl -4(%ebp) call add_three_items addl $16, %esp movl %eax, -16(%ebp) leave ret leave=movl %ebp,%esp popl %ebp 1 2 5

Example code function: pushl %ebp movl %esp, %ebp subl $40, %esp leave ret main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp pushl $3 pushl $2 pushl $1 call function addl $12, %esp leave ret void function(int a, int b, int c) { char buffer1[5]; char buffer2[10]; } main(int argc, char *argv[]) { function(1,2,3); } gcc -S test.c;

heap bss … %ebp ret addr (EIP) $1 $2 $3 … %ebp ret addr (EIP) low high sp bp function: pushl %ebp movl %esp, %ebp subl $40, %esp leave ret main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax addl $15, %eax addl $15, %eax shrl $4, %eax sall $4, %eax subl %eax, %esp pushl $3 pushl $2 pushl $1 call function addl $12, %esp leave ret leave = mov %ebp, %esp pop %ebp

Explanation of Return-into-libc b return address add_g address of G’s frame point C[9] G(int a) { H(3); add_g: } H( int b) { char c[10]; overflow occurs here } C[0] H’s stack frame ebp any value abc(), e.g. system() any value abc: pushl %ebp movl %esp,%ebp esp parameter 1, e.g. pointer to /bin/sh

Explanation of Return-into-libc b return address add_g address of G’s frame point C[9] G(int a) { H(3); add_g: } H( int b) { char c[10]; overflow occurs here } C[0] H’s stack frame ebp any value abc(), e.g. system() any value abc: pushl %ebp movl %esp,%ebp esp parameter 1, e.g. pointer to /bin/sh movl %ebp,%esp (an instruction in function epilogue)

Explanation of Return-into-libc b return address add_g address of G’s frame point C[9] G(int a) { H(3); add_g: } H( int b) { char c[10]; overflow occurs here } C[0] H’s stack frame ebp any value abc(), e.g. system() any value abc: pushl %ebp movl %esp,%ebp esp parameter 1, e.g. pointer to /bin/sh any value (popl %ebp)

Explanation of Return-into-libc b return address add_g address of G’s frame point C[9] G(int a) { H(3); add_g: } H( int b) { char c[10]; overflow occurs here } C[0] H’s stack frame ebp any value abc(), e.g. system() any value abc: pushl %ebp movl %esp,%ebp esp parameter 1, e.g. pointer to /bin/sh any value (ret)

Explanation of Return-into-libc b return address add_g address of G’s frame point C[9] G(int a) { H(3); add_g: } H( int b) { char c[10]; overflow occurs here } C[0] H’s stack frame ebp any value abc: pushl %ebp movl %esp,%ebp esp parameter 1, e.g. pointer to /bin/sh After the following two instruction in function system()’s function prologue is executed pushl %ebp movl %esp, %ebp, the position of %esp and %ebp is shown in the figure.

Properties of Return-into-libc Attacks The exploit strings don’t need to contain executable code.

Heap/Data/BSS Overflow Attacks

Principle of Heap/Data/BSS Overflow Attacks Similarly to stack smashing attacks, attackers overflow a sensitive data structure by providing a buffer which is adjacent to the sensitive data structure more data than the buffer can store; hence, to overflow the sensitive data structure. The sensitive data structure may contain: A function pointer A pointer to a string … and so on. Both the buffer and the sensitive data structure may locate at the heap, or data, or bss section.

Heap and Data/BSS Sections The heap is an area in memory that is dynamically allocated by the application by using a system call, such as malloc(). On most systems, the heap grows up (towards higher addresses). The data section initialized at compile-time. The bss section contains uninitialized data, and is allocated at run-time. Until it is written to, it remains zeroed (or at least from the application's point-of-view).

Heap Overflow Example #define BUFSIZE 16 int main() { int i=0; char *buf1 = (char *)malloc(BUFSIZE); char *buf2 = (char *)malloc(BUFSIZE); : while((*(buf1+i)=getchar())!=EOF) i++; : }

BSS Overflow Example #define BUFSIZE 16 int main(int argc, char **argv) { FILE *tmpfd; static char buf[BUFSIZE], *tmpfile; : tmpfile = "/tmp/vulprog.tmp"; gets(buf); tmpfd = fopen(tmpfile, "w"); : }

BSS and Function Pointer Overflow Example int goodfunc(const char *str); int main(int argc, char **argv) { int i=0; static char buf[BUFSIZE]; static int (*funcptr)(const char *str); : while((*(buf+i)=getchar())!=EOF) i++; : }

Function Pointer Attacks

Principle of Function Pointer Attacks Utilizing a function pointer variable’s adjacent buffer to overwrite the content of the function pointer variable so that it will point to the code chosen by attackers. A function pointer variable may locate at the stack section, the data section, or at the bss section.

Countermeasures of Buffer Overflow Attacks

Countermeasures of Buffer Overflow Attacks (1) Array bounds checking. Non-executable stack/heap. Safe C library. Compiler solutions, e.g., StackGuard RAD Type safe language, e.g. Java. Static source code analysis.

Countermeasures of Buffer Overflow Attacks (2) Anomaly Detection, e.g. through system calls. Dynamic allocation of memory for data that will overwrite adjacent memory area. Memory Address Obfuscation Randomization of executable Code. Network-based buffer overflow detection

Array Bounds Checking Fundamental solution for all kinds of buffer overflow attacks. High run-time overhead (33 times in some situations)

Non-executable Stack/Heap The majority of buffer overflow attacks are stack smashing attacks; therefore, a non- executable stack could block the majority of buffer overflow attacks. Disable some original system functions, e.g. signal call handling.

Safe C Library Some string-related C library functions, such as strcpy and strcat don’t check the buffer boundaries of destination buffers, hence, modifying these kinds of unsafe library functions could secure programs that use these function. Replace strcpy with strncpy, or replace strcat with strncat, … and so on. Plenty of other C statements could still results in buffer overflow vulnerabilities. E.g. while ((*(ptr+i)=getchar())!=EOF) i++;

Compiler Solutions: StackGuard Put a canary word before each return address in each stack frame. Usually, when a buffer overflow attack is launched, not only the return address but also the canary word will be overwritten; thus, by checking the integrity of the canary word, this mechanism can defend against stack smashing attacks. Low performance overhead. Change the layout of the stack frame of a function; hence, this mechanism is not compatible with some programs, e.g. debugger. Only protect return addresses.

Compiler Solutions: RAD Store another copies of return addresses in a well- protected area, RAR. When a function is call, instead of saving its return address in its corresponding stack frame, another copy of its return address is saved in RAR. When the function finishes, before returning to its caller, the callee checks the return address in its stack frame to see whether the RAR has a copy of that address. If there is no such address in the RAR, then a buffer overflow attack is alarmed. Low performance overhead. Only protect return addresses.

Type Safe Language, e.g. Java These kinds of languages will automatically perform array bound checking. The majority of programs are not written in these kinds of languages; rewriting all programs with these kinds of languages becomes an impossible mission.

Static Source Code Analysis. Analyze source code to find potential program statements that could result in buffer overflow vulnerabilities. E.g. program statements like while((*(buf+i)=getchar())!=EOF) i++; are not safe. False positive and false negative. Difficulty to obtain the source code.

Anomaly Detection This mechanism is based on the idea that most malicious code that is run on a target system will make system calls to access certain system resources, such as files and sockets. This technique has two main parts, preprocessing and monitoring. False positive and false negative.

Memory Address Obfuscation This approach randomizes the layout of items in main memory; hence attackers can only guess the address where their injected code reside and the address of their target functions. Change the run-time memory layout specifying by the original file format. Increase the complexity of debugging a program.

Aspects of Address Obfuscation (1) The first is the randomization of the base addresses of memory regions. This involves the randomization of the base address of the stack and heap, the starting address of dynamically linked libraries, and the locations of functions and static data structures contained in the executable. The second aspect includes permuting the order of variables and functions.

Aspects of Address Obfuscation(2) The last is the introduction of random length gaps, such as padding in stack frames, padding between malloc allocations, padding between variables and static data structures, and random length gaps in the code segment, with jumps to get over them.

Randomization of executable Code This method involves the randomization of the code that is executed in a process. This approach encrypts instructions of a process, and decrypts instructions when they are prepared to be executed. Because attackers don’t know the key to encrypt their code, their injected code can not be decrypted correctly. As a result their code can not be executed. The main assumption of this method is that most attacks that attempt to gain control of a system are code-injection attacks. Need special hardwares to improve performance overhead.

BOSS: Network-based Buffer Overflow String Searcher Traditional solutions usually are host-based ones and need to modify host systems (such as compilers and OSes) or source code or binary code. No matter an attack is successful or not, attack traffic can reach their target processes and destroy their address space. Idea: Detect buffer overflow attack traffic at the network level and intercept them before they arrive at their target processes.

Indispensable elements of BO- style attacks ‘ The Address ’ For buffer overflow attacks, it is the address of the entry point of injected code.

Linux Process Memory Layout 0xc xffffffff kernel address space user stack 2M2M %esp for Shared libraries, including libc functions brk run-time heap data and code 0x address space of addresses of injected code and frame pointers (Stack Address Zone)

Size of Stack Address Zone The default maximum size of a process’s user space stack is 2 Mbytes. However, according to Ditzel et al., the average function frame size is 28 bytes. Therefore, the majority of program are not supposed to use a 2Mbyte stack. In our test, a 8k stack is enough to identify all 10 remote exploit strings.

Repeating Times and Values of Return Addresses 2k stack --- 0xbffffffff ~ 0xbfffe000

Multi-Resolution Signature Repeating address signature Server Termination signature. High alert signature.

Repeating Address Signature The whole traffic string of either direction of a TCP connection is regarded as an input for signature checking. Signature of a buffer overflow attack. If a sub- string of a traffic string could be interpreted as a stack address that repeats 3 or more times, it is alarmed as a buffer overflow attack string. Signature of a return-into-libc attack. If a sub- string of a traffic string could be interpreted as an address pattern* that repeats 3 or more times, it is interpreted as a return-into-lib attack string. PS: * Here the address pattern consists of a stack address, followed by a libc address, and at least one parameter.

Bypass Repeating Address Signature: Patient attackers could bypass detection based on repeating address signature by repeating addresses no more than 2 times. PS: All the 10 remote exploit code we tested repeat at least 4 times. Attackers repeat the addresses to increase their chance to success. In other words, without the repeat, attackers will fail for many times.

Unsuccessful Attacks Buffer overflow-style attacks will destroy targeted process’s address space which in turn usually will crash the attacked process. In order to recycle valuable system resources, OS will close the sockets opened by crash processes automatically.

Server Termination Signature After forwarding a sub-string which could be interpreted as a stack address, a CTCP router detects that the server closes the TCP connection without sending any data, then the traffic string is deemed as a buffer overflow attack string. A return-into-libc attack is detected in a similar way.

Will Normal Traffic Behavior The Same Way? HTTP Protocol (RFC 2616) works in the request-reply way. (After the request, there will be a reply before the server close the connection) SMTP protocol (RFC 2821), for , and FTP protocol(RFC 959) use QUIT command to close a connection. (QUIT can not be interpreted as a stack or libc address.)

High Alert Signature The operative component could confirm the IP address of scanners. All future traffic from these hosts are regarded as suspicious traffic. In stead of blocking all suspicious traffic, suspicious traffic passing high alert signature detection are still allowed to reach inner hosts.

High Alert Signature If a suspicious traffic contains a single return-into-libc address pattern or a single stack address around a binary code, then it is alarmed as an attack traffic.

Evaluation Static Sample: data randomly chosen from different hosts. 209 Mbytes object files (executable files and library files) 183 Mbytes document files (pdf,ps,doc,txt,html) 12 Mbytes picture files (gif,jpg,mpeg, …) Dynamic Sample: One week’s collection of traffic passing through ECSL Lab. Totally TCP connections and 269Mbyte data.

Number of False Positives: (a) results of static data(b) results of dynamic data Linux Stack addresses start with 0xbf which is not a visible ASCII character and will not appear in telnet sessions, s without attachments and html text files.