SlideShare a Scribd company logo
1 of 30
NETWORK FORENSICS AND
INVESTIGATING LOGS
AGENDA OF DAY
 Look for evidence
 Perform an end-to-end forensic investigation
 Use log files as evidence
 Evaluate log file accuracy and authenticity
 Understand the importance of audit logs
 Understand syslog
 Understand Linux process accounting
 Configure Windows logging
 Understand NTP
KEY TERM
 Intrusion detection the process of tracking
unauthorized activity using techniques such as
inspecting user actions, security logs, or audit data
 Network Time Protocol (NTP) an Internet
standard protocol that is used to synchronize the
clocks of client computers
NETWORK FORENSICS
 Network forensics is the capturing, recording, and
analysis of network events in order to discover the
source of security attacks.
 An investigator needs to back up these recorded
data to free up recording media and to preserve the
data for future analysis
ANALYZING NETWORK DATA
 An investigator needs to perform network forensics
to determine the type of an attack over a network
and to trace out the culprit.
 The investigator needs to follow proper
investigative procedures so that the evidences
recovered during investigation can be produced in a
court of law.
 Network forensics can reveal the following
information:
 How an intruder entered the network
 The path of intrusion
 The intrusion techniques an attacker used
 Traces and evidence
THE INTRUSION PROCESS
Network intruders can enter a system using the
following methods:
Enumeration:
 Enumeration is the process of gathering information
about a network that may help an intruder attack the
network.
 Enumeration is generally carried out over the Internet.
The following information is collected during
enumeration:
• Topology of the network
• List of live hosts
• Network architecture and types of traffic (for
example, TCP, UDP, and IPX)
• Potential vulnerabilities in host systems
LOOKING FOR EVIDENCE
Vulnerabilities:
 An attacker identifies potential weaknesses in a system,
network, and elements of the network and then tries to
take advantage of those vulnerabilities.
 The intruder can find known vulnerabilities using various
scanners.
 Viruses: Viruses are a major cause of shutdown of network
components. A virus is a software program written to change
the behavior of a computer or other device on a network,
without the permission or knowledge of the user.
 Trojans: Trojan horses are programs that contain or install
malicious programs on targeted systems. These programs
serve as back doors and are often used to steal information
from systems.
CONT..
 E-mail infection: The use of e-mail to attack a network is
increasing. An attacker can use e-mail spamming and other
means to flood a network and cause a denial-of-service attack
 Router attacks: Routers are the main gateways into a
network, through which all traffic passes. A router attack can
bring down a whole network.
 Password cracking: Password cracking is a last resort for
any kind of attack.
LOOKING FOR EVIDENCE
 An investigator can find evidence from the
following:
 From the attack computer and intermediate
computers: This evidence is in the form of
logs, files, ambient data, and tools.
 From firewalls: An investigator can look at a firewall’s
logs. If the firewall itself was the victim, the investigator
treats the firewall like any other device when obtaining
evidence.
 From internetworking devices: Evidence exists in logs
and buffers as available.
LOOKING FOR EVIDENCE
 From the victim computer: An investigator can find
evidence in logs, files, ambient data, altered
configuration files, remnants of Trojaned files, files that
do not match hash sets, tools, Trojans and
viruses, stored stolen files, Web defacement
remnants, and unknown file extensions.
END-TO-END FORENSIC INVESTIGATION
 An end-to-end forensic investigation involves
following basic procedures from beginning to end.
 The end-to-end concept: An end-to-end
investigation tracks all elements of an
attack, including how the attack began, what
intermediate devices were used during the
attack, and who was attacked.
 Locating evidence: Once an investigator knows
what devices were used during the attack, he or
she can search for evidence on those devices. The
investigator can then analyze that evidence to learn
more about the attack and the attacker.
END-TO-END FORENSIC INVESTIGATION
 Pitfalls of network evidence collection: Evidence can be
lost in a few seconds during log analysis because logs
change rapidly. Sometimes, permission is required to
obtain evidence from certain sources,
 such as ISPs. This process can take time, which
increases the chances of evidence loss. Other pitfalls
 include the following:
 An investigator or network administrator may mistake normal
computer or network activity for attack activity.
 There may be gaps in the chain of evidence.
 Logs may be ambiguous, incomplete, or missing.
 Since the Internet spans the globe, other nations may be
involved in the investigation. This can create legal and
political issues for the investigation.
END-TO-END FORENSIC INVESTIGATION
 Event analysis: After an investigator examines all
of the information, he or she correlates all of the
events and all of the data from the various sources
to get the whole picture.
LOG FILE AS EVIDENCE
LEGALITY OF USING LOGS
 The following are some of the legal issues involved with
creating and using logs that organizations and
investigators must keep in mind :
 Logs must be created reasonably contemporaneously
with the event under investigation.
 Someone with knowledge of the event must record the
information. In this case, a program is doing the
recording; the record therefore reflects the a priori
knowledge of the programmer and system administrator.
 Logs must be kept as a regular business practice.
 Random compilations of data are not admissible.
LEGALITY OF USING LOGS
 If an organization starts keeping regular logs now, it will be
able to use the logs as evidence later.
 A custodian or other qualified witness must testify to the
accuracy and integrity of the logs. This process is known as
authentication. The custodian need not be the programmer
who wrote the logging software; however, he or she must be
able to offer testimony on what sort of system is used, where
the relevant software came from, and how and when the
records are produced.
 A custodian or other qualified witness must also offer
testimony as to the reliability and integrity of the hardware and
software platform used, including the logging software.
 A record of failures or of security breaches on the machine
creating the logs will tend to impeach the evidence
LEGALITY OF USING LOGS
 If an investigator claims that a machine has been
penetrated, log entries from after that point are
inherently suspect.
 In a civil lawsuit against alleged hackers, anything in an
organization’s own records that would tend to exculpate
the defendants can be used against the organization.
 An organization’s own logging and monitoring software
must be made available to the court so that the defense
has an opportunity to examine the credibility of the
records. If an organization can show that the relevant
programs are trade secrets, the organization may be
allowed to keep them secret or to disclose them to the
defense only under a confidentiality order.
LEGALITY OF USING LOGS
 The original copies of any log files are preferred.
 A printout of a disk or tape record is considered to
be an original copy, unless and until judges and
jurors are equipped computers that have USB or
SCSI interfaces.
EXAMINING INTRUSION AND SECURITY
EVENTS
 Examining intrusion and security events includes
both passive and active tasks.
 A detection of an intrusion that occurs after an
attack has taken place is called a post-attack
detection or passive intrusion detection.
 In these cases, the inspection of log files is the only
medium that can be used to evaluate and rebuild the
attack techniques.
 Passive intrusion detection techniques usually involve a
manual review of event logs and application logs.
 An investigator can inspect and analyze event log data
to detect attack patterns.
EXAMINING INTRUSION AND SECURITY
EVENTS
 There are many attack attempts that can be
detected as soon as the attack takes place.
 This type of detection is known as active intrusion
detection.
 Using this method, an administrator or investigator
follows the footsteps of the attacker and looks for known
attack patterns or commands, and blocks the execution
of those commands.
INTRUSION DETECTION
 Intrusion detection is the process of tracking unauthorized
activity using techniques such as inspecting user actions,
security logs, or audit data.
 There are various types of intrusions, including unauthorized
access to files and systems, worms, Trojans, computer
viruses, buffer overflow attacks, application redirection, and
identity and data spoofing.
 Intrusion attacks can also appear in the form of denial of
service, and DNS, e-mail, content, or data corruption.
 Intrusions can result in a change of user and file security
rights, installation of Trojan files, and improper data access.
 Administrators use many different intrusion detection
techniques, including evaluation of system logs and settings,
and deploying firewalls, antivirus software, and specialized
intrusion detection systems.
 Administrators should investigate any unauthorized or
malicious entry into a network or host.
USING MULTIPLE LOGS AS EVIDENCE
 Recording the same information in two different devices
makes the evidence stronger.
 Logs from several devices collectively support each other.
 Firewall logs, IDS logs, and TCPDump output can contain
evidence of an Internet user connecting to a specific server at
a given time.
MAINTAINING CREDIBLE IIS LOG FILES
 Many network administrators have faced serious Web server
attacks that have become legal issues.
 Web attacks are generally traced using IIS logs.
 Investigators must ask themselves certain questions before
presenting IIS logs in court, including:
 What would happen if the credibility of the IIS logs was challenged in
court?
 What if the defense claims the logs are not reliable enough to be
admissible as evidence?
 An investigator must secure the evidence and ensure that it is
accurate, authentic, and accessible.
 In order to prove that the log files are valid, the investigator
needs to present them as acceptable and dependable by
providing convincing arguments, which makes them valid
evidence.
LOG FILE ACCURACY
 The accuracy of IIS log files determines their credibility.
 Accuracy here means that the log files presented before the
court of law represent the actual outcome of the activities
related to the IIS server being investigated.
 Any modification to the logs causes the validity of the entire
log file being presented to be suspect.
LOGGING EVERYTHING
 In order to ensure that a log file is accurate, a network
administrator must log everything.
 Certain fields in IIS log files might seem to be less
significant, but every field can make a major contribution as
evidence.
 Therefore, network administrators should configure their IIS
server logs to record every field available.
 IIS logs must record information about Web users so that the
logs provide clues about whether an attack came from a
logged-in user or from another system.
 Consider a defendant who claims a hacker had attacked his
system and installed a back-door proxy server on his
computer. The attacker then used the back-door proxy to
attack other systems.
 In such a case, how does an investigator prove that the traffic
came from a specific user’s Web browser or that it was a
proxied attack from someone else?
EXTENDED LOGGING IN IIS SERVER
 Limited logging is set globally by default, so any new
Web sites created have the same limited logging. An
administrator can change the configuration of an IIS
server to use extended logging.
 The following steps explain how to enable extended
logging for an IIS Web/FTP server and change the
location of log files:
 Run the Internet Services Manager.
 Select the properties on the Web/FTP server.
 Select the Web site or FTP site tab.
 Check the Enable Loggingcheck box.
 Select W3C Extended Log File Formatfrom the drop-down
list.
 Go to Properties.
EXTENDED LOGGING IN IIS SERVER
 Click the Extended Properties tab, and set the
following properties accordingly:
 Client IP address
 User name
 Method
 URI stem
 HTTP status
 Win32 status
 User agent
 Server IP address
 Server port
 Select Daily for New Log Time Period below the
general Properties tab.
EXTENDED LOGGING IN IIS SERVER
 Select Use local time for file naming and overturn.
 Change the log file directory to the location of logs.
 Ensure that the NTFS security settings have the
following settings:
 Administrators - Full Control
 System - Full Contro
KEEPING TIME
 With the Windows time service, a network administrator can
synchronize IIS servers by connecting them to an external
time source.
 Using a domain makes the time service synchronous to the
domain controller. A network administrator can synchronize a
standalone server to an external time source by setting certain
registry entries:
Key:
HKLMSYSTEMCurrentControlSetServicesW32TimeParameters
Setting: Type
Type: REG_SZ
Value: NTP
Key:
HKLMSYSTEMCurrentControlSetServicesW32TimeParameters
Setting: NtpServer
Type: REG_SZ
Value: ntp.xsecurity.com
UTC TIME
 IIS records logs using UTC time, which helps in synchronizing
servers in multiple zones.
 Windows offsets the value of the system clock with the system
time zone to calculate UTC time.
 To check whether the UTC time is correct, a network
administrator must ensure that the local time zone setting is
accurate.
 The network administrator must verify that during the process
IIS is set to roll over logs using local time

More Related Content

What's hot

Computer forensics toolkit
Computer forensics toolkitComputer forensics toolkit
Computer forensics toolkit
Milap Oza
 
cyber security and forensic tools
cyber security and forensic toolscyber security and forensic tools
cyber security and forensic tools
Sonu Sunaliya
 
Memory forensics
Memory forensicsMemory forensics
Memory forensics
Sunil Kumar
 
Forensics of a Windows System
Forensics of a Windows SystemForensics of a Windows System
Forensics of a Windows System
Conferencias FIST
 

What's hot (20)

Digital Forensics
Digital ForensicsDigital Forensics
Digital Forensics
 
Mobile Forensics
Mobile ForensicsMobile Forensics
Mobile Forensics
 
Computer forensics toolkit
Computer forensics toolkitComputer forensics toolkit
Computer forensics toolkit
 
Introduction to computer forensic
Introduction to computer forensicIntroduction to computer forensic
Introduction to computer forensic
 
Incident response process
Incident response processIncident response process
Incident response process
 
Operating System Forensics
Operating System ForensicsOperating System Forensics
Operating System Forensics
 
Footprinting and reconnaissance
Footprinting and reconnaissanceFootprinting and reconnaissance
Footprinting and reconnaissance
 
Wired and Wireless Network Forensics
Wired and Wireless Network ForensicsWired and Wireless Network Forensics
Wired and Wireless Network Forensics
 
Email Forensics
Email ForensicsEmail Forensics
Email Forensics
 
cyber security and forensic tools
cyber security and forensic toolscyber security and forensic tools
cyber security and forensic tools
 
Types of Threat Actors and Attack Vectors
Types of Threat Actors and Attack VectorsTypes of Threat Actors and Attack Vectors
Types of Threat Actors and Attack Vectors
 
Social Media Forensics for Investigators
Social Media Forensics for InvestigatorsSocial Media Forensics for Investigators
Social Media Forensics for Investigators
 
VAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptxVAPT PRESENTATION full.pptx
VAPT PRESENTATION full.pptx
 
Network forensics1
Network forensics1Network forensics1
Network forensics1
 
Web application attacks
Web application attacksWeb application attacks
Web application attacks
 
Computer Forensic
Computer ForensicComputer Forensic
Computer Forensic
 
Network Forensic
Network ForensicNetwork Forensic
Network Forensic
 
Memory forensics
Memory forensicsMemory forensics
Memory forensics
 
Forensics of a Windows System
Forensics of a Windows SystemForensics of a Windows System
Forensics of a Windows System
 
What is Penetration Testing?
What is Penetration Testing?What is Penetration Testing?
What is Penetration Testing?
 

Viewers also liked

Network Forensics - Your Only Choice at 10G
Network Forensics - Your Only Choice at 10GNetwork Forensics - Your Only Choice at 10G
Network Forensics - Your Only Choice at 10G
Savvius, Inc
 
T2 7 Chappell Network Forensics
T2 7 Chappell Network ForensicsT2 7 Chappell Network Forensics
T2 7 Chappell Network Forensics
Pramod Sana
 
Digital detective game
Digital detective gameDigital detective game
Digital detective game
Bill Carver
 

Viewers also liked (20)

Network Forensics
Network ForensicsNetwork Forensics
Network Forensics
 
Network Forensics
Network ForensicsNetwork Forensics
Network Forensics
 
Open source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysisOpen source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysis
 
Computer forensics powerpoint presentation
Computer forensics powerpoint presentationComputer forensics powerpoint presentation
Computer forensics powerpoint presentation
 
Computer forensics ppt
Computer forensics pptComputer forensics ppt
Computer forensics ppt
 
Network Forensics - Your Only Choice at 10G
Network Forensics - Your Only Choice at 10GNetwork Forensics - Your Only Choice at 10G
Network Forensics - Your Only Choice at 10G
 
Logs & The Law: What is Admissible in Court?
Logs & The Law: What is Admissible in Court?Logs & The Law: What is Admissible in Court?
Logs & The Law: What is Admissible in Court?
 
Network Forensics: Packet Analysis Using Wireshark
Network Forensics: Packet Analysis Using WiresharkNetwork Forensics: Packet Analysis Using Wireshark
Network Forensics: Packet Analysis Using Wireshark
 
Digital Crime & Forensics - Presentation
Digital Crime & Forensics - PresentationDigital Crime & Forensics - Presentation
Digital Crime & Forensics - Presentation
 
T2 7 Chappell Network Forensics
T2 7 Chappell Network ForensicsT2 7 Chappell Network Forensics
T2 7 Chappell Network Forensics
 
Matthias Vallentin - Towards Interactive Network Forensics and Incident Respo...
Matthias Vallentin - Towards Interactive Network Forensics and Incident Respo...Matthias Vallentin - Towards Interactive Network Forensics and Incident Respo...
Matthias Vallentin - Towards Interactive Network Forensics and Incident Respo...
 
Codec Networks Providing Courses in Cyber forensic,Network Forensics.
Codec Networks Providing Courses in Cyber forensic,Network Forensics.Codec Networks Providing Courses in Cyber forensic,Network Forensics.
Codec Networks Providing Courses in Cyber forensic,Network Forensics.
 
Analysis of (unknown) file formats
Analysis of (unknown) file formatsAnalysis of (unknown) file formats
Analysis of (unknown) file formats
 
Anatomy of File Analysis and Decomposition Engine
Anatomy of File Analysis and Decomposition EngineAnatomy of File Analysis and Decomposition Engine
Anatomy of File Analysis and Decomposition Engine
 
Network Forensic Tools & Techniques Workshop
Network Forensic Tools & Techniques WorkshopNetwork Forensic Tools & Techniques Workshop
Network Forensic Tools & Techniques Workshop
 
Autopsy 3.0 - Open Source Digital Forensics Conference
Autopsy 3.0 - Open Source Digital Forensics ConferenceAutopsy 3.0 - Open Source Digital Forensics Conference
Autopsy 3.0 - Open Source Digital Forensics Conference
 
Digital detective game
Digital detective gameDigital detective game
Digital detective game
 
Digital forensics ahmed emam
Digital forensics   ahmed emamDigital forensics   ahmed emam
Digital forensics ahmed emam
 
Activity 6 home project - ppt presentation sample
Activity 6   home project - ppt presentation sampleActivity 6   home project - ppt presentation sample
Activity 6 home project - ppt presentation sample
 
Logs for Information Assurance and Forensics @ USMA
Logs for Information Assurance and Forensics @ USMALogs for Information Assurance and Forensics @ USMA
Logs for Information Assurance and Forensics @ USMA
 

Similar to Network forensics and investigating logs

Running Head Security Assessment Repot (SAR) .docx
Running Head  Security Assessment Repot (SAR)                    .docxRunning Head  Security Assessment Repot (SAR)                    .docx
Running Head Security Assessment Repot (SAR) .docx
SUBHI7
 
A trust system based on multi level virus detection
A trust system based on multi level virus detectionA trust system based on multi level virus detection
A trust system based on multi level virus detection
UltraUploader
 

Similar to Network forensics and investigating logs (20)

CyberSecurity Assignment.pptx
CyberSecurity Assignment.pptxCyberSecurity Assignment.pptx
CyberSecurity Assignment.pptx
 
Running Head Security Assessment Repot (SAR) .docx
Running Head  Security Assessment Repot (SAR)                    .docxRunning Head  Security Assessment Repot (SAR)                    .docx
Running Head Security Assessment Repot (SAR) .docx
 
First Responders Course - Session 4 - Forensic Readiness [2004]
First Responders Course - Session 4 - Forensic Readiness [2004]First Responders Course - Session 4 - Forensic Readiness [2004]
First Responders Course - Session 4 - Forensic Readiness [2004]
 
Cyber warfare introduction
Cyber warfare introductionCyber warfare introduction
Cyber warfare introduction
 
Digital Forensic ppt
Digital Forensic pptDigital Forensic ppt
Digital Forensic ppt
 
Digital forensics
Digital forensicsDigital forensics
Digital forensics
 
Network and web security
Network and web securityNetwork and web security
Network and web security
 
Ethical Hacking n VAPT presentation by Suvrat jain
Ethical Hacking n VAPT presentation by Suvrat jainEthical Hacking n VAPT presentation by Suvrat jain
Ethical Hacking n VAPT presentation by Suvrat jain
 
Cryptography and system security
Cryptography and system securityCryptography and system security
Cryptography and system security
 
Network Security & Ethical Hacking
Network Security & Ethical HackingNetwork Security & Ethical Hacking
Network Security & Ethical Hacking
 
IT forensic
IT forensicIT forensic
IT forensic
 
Ethical hacking/ Penetration Testing
Ethical hacking/ Penetration TestingEthical hacking/ Penetration Testing
Ethical hacking/ Penetration Testing
 
Network forensics
Network forensicsNetwork forensics
Network forensics
 
Network Forensics
Network ForensicsNetwork Forensics
Network Forensics
 
A trust system based on multi level virus detection
A trust system based on multi level virus detectionA trust system based on multi level virus detection
A trust system based on multi level virus detection
 
Unit v
Unit vUnit v
Unit v
 
Intrusion Detection Presentation
Intrusion Detection PresentationIntrusion Detection Presentation
Intrusion Detection Presentation
 
Examining computer and evidence collection
Examining computer and evidence collectionExamining computer and evidence collection
Examining computer and evidence collection
 
Intrusion detection system
Intrusion detection system Intrusion detection system
Intrusion detection system
 
Data Mining and Intrusion Detection
Data Mining and Intrusion Detection Data Mining and Intrusion Detection
Data Mining and Intrusion Detection
 

More from anilinvns

VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
anilinvns
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
anilinvns
 
Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
anilinvns
 
Disk management server
Disk management serverDisk management server
Disk management server
anilinvns
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basics
anilinvns
 

More from anilinvns (20)

Data center maintenance
Data center maintenanceData center maintenance
Data center maintenance
 
Windows Server 2012
Windows Server 2012Windows Server 2012
Windows Server 2012
 
Windows Server 2008 Active Directory
Windows Server 2008 Active DirectoryWindows Server 2008 Active Directory
Windows Server 2008 Active Directory
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Password Policy and Account Lockout Policies
Password Policy and Account Lockout PoliciesPassword Policy and Account Lockout Policies
Password Policy and Account Lockout Policies
 
VIRTUAL LANS
VIRTUAL LANSVIRTUAL LANS
VIRTUAL LANS
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHING
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
IP ROUTING
IP ROUTINGIP ROUTING
IP ROUTING
 
INTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERSINTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERS
 
Manage CISCO IOS
Manage CISCO IOSManage CISCO IOS
Manage CISCO IOS
 
Day 5 VIRTUAL LANS
Day 5 VIRTUAL LANSDay 5 VIRTUAL LANS
Day 5 VIRTUAL LANS
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHING
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Day 2 IP ROUTING
Day 2 IP ROUTINGDay 2 IP ROUTING
Day 2 IP ROUTING
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
 
Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
 
Wds
WdsWds
Wds
 
Disk management server
Disk management serverDisk management server
Disk management server
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basics
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Network forensics and investigating logs

  • 2. AGENDA OF DAY  Look for evidence  Perform an end-to-end forensic investigation  Use log files as evidence  Evaluate log file accuracy and authenticity  Understand the importance of audit logs  Understand syslog  Understand Linux process accounting  Configure Windows logging  Understand NTP
  • 3. KEY TERM  Intrusion detection the process of tracking unauthorized activity using techniques such as inspecting user actions, security logs, or audit data  Network Time Protocol (NTP) an Internet standard protocol that is used to synchronize the clocks of client computers
  • 4. NETWORK FORENSICS  Network forensics is the capturing, recording, and analysis of network events in order to discover the source of security attacks.  An investigator needs to back up these recorded data to free up recording media and to preserve the data for future analysis
  • 5. ANALYZING NETWORK DATA  An investigator needs to perform network forensics to determine the type of an attack over a network and to trace out the culprit.  The investigator needs to follow proper investigative procedures so that the evidences recovered during investigation can be produced in a court of law.  Network forensics can reveal the following information:  How an intruder entered the network  The path of intrusion  The intrusion techniques an attacker used  Traces and evidence
  • 6. THE INTRUSION PROCESS Network intruders can enter a system using the following methods: Enumeration:  Enumeration is the process of gathering information about a network that may help an intruder attack the network.  Enumeration is generally carried out over the Internet. The following information is collected during enumeration: • Topology of the network • List of live hosts • Network architecture and types of traffic (for example, TCP, UDP, and IPX) • Potential vulnerabilities in host systems
  • 7. LOOKING FOR EVIDENCE Vulnerabilities:  An attacker identifies potential weaknesses in a system, network, and elements of the network and then tries to take advantage of those vulnerabilities.  The intruder can find known vulnerabilities using various scanners.  Viruses: Viruses are a major cause of shutdown of network components. A virus is a software program written to change the behavior of a computer or other device on a network, without the permission or knowledge of the user.  Trojans: Trojan horses are programs that contain or install malicious programs on targeted systems. These programs serve as back doors and are often used to steal information from systems.
  • 8. CONT..  E-mail infection: The use of e-mail to attack a network is increasing. An attacker can use e-mail spamming and other means to flood a network and cause a denial-of-service attack  Router attacks: Routers are the main gateways into a network, through which all traffic passes. A router attack can bring down a whole network.  Password cracking: Password cracking is a last resort for any kind of attack.
  • 9. LOOKING FOR EVIDENCE  An investigator can find evidence from the following:  From the attack computer and intermediate computers: This evidence is in the form of logs, files, ambient data, and tools.  From firewalls: An investigator can look at a firewall’s logs. If the firewall itself was the victim, the investigator treats the firewall like any other device when obtaining evidence.  From internetworking devices: Evidence exists in logs and buffers as available.
  • 10. LOOKING FOR EVIDENCE  From the victim computer: An investigator can find evidence in logs, files, ambient data, altered configuration files, remnants of Trojaned files, files that do not match hash sets, tools, Trojans and viruses, stored stolen files, Web defacement remnants, and unknown file extensions.
  • 11. END-TO-END FORENSIC INVESTIGATION  An end-to-end forensic investigation involves following basic procedures from beginning to end.  The end-to-end concept: An end-to-end investigation tracks all elements of an attack, including how the attack began, what intermediate devices were used during the attack, and who was attacked.  Locating evidence: Once an investigator knows what devices were used during the attack, he or she can search for evidence on those devices. The investigator can then analyze that evidence to learn more about the attack and the attacker.
  • 12. END-TO-END FORENSIC INVESTIGATION  Pitfalls of network evidence collection: Evidence can be lost in a few seconds during log analysis because logs change rapidly. Sometimes, permission is required to obtain evidence from certain sources,  such as ISPs. This process can take time, which increases the chances of evidence loss. Other pitfalls  include the following:  An investigator or network administrator may mistake normal computer or network activity for attack activity.  There may be gaps in the chain of evidence.  Logs may be ambiguous, incomplete, or missing.  Since the Internet spans the globe, other nations may be involved in the investigation. This can create legal and political issues for the investigation.
  • 13. END-TO-END FORENSIC INVESTIGATION  Event analysis: After an investigator examines all of the information, he or she correlates all of the events and all of the data from the various sources to get the whole picture.
  • 14. LOG FILE AS EVIDENCE
  • 15. LEGALITY OF USING LOGS  The following are some of the legal issues involved with creating and using logs that organizations and investigators must keep in mind :  Logs must be created reasonably contemporaneously with the event under investigation.  Someone with knowledge of the event must record the information. In this case, a program is doing the recording; the record therefore reflects the a priori knowledge of the programmer and system administrator.  Logs must be kept as a regular business practice.  Random compilations of data are not admissible.
  • 16. LEGALITY OF USING LOGS  If an organization starts keeping regular logs now, it will be able to use the logs as evidence later.  A custodian or other qualified witness must testify to the accuracy and integrity of the logs. This process is known as authentication. The custodian need not be the programmer who wrote the logging software; however, he or she must be able to offer testimony on what sort of system is used, where the relevant software came from, and how and when the records are produced.  A custodian or other qualified witness must also offer testimony as to the reliability and integrity of the hardware and software platform used, including the logging software.  A record of failures or of security breaches on the machine creating the logs will tend to impeach the evidence
  • 17. LEGALITY OF USING LOGS  If an investigator claims that a machine has been penetrated, log entries from after that point are inherently suspect.  In a civil lawsuit against alleged hackers, anything in an organization’s own records that would tend to exculpate the defendants can be used against the organization.  An organization’s own logging and monitoring software must be made available to the court so that the defense has an opportunity to examine the credibility of the records. If an organization can show that the relevant programs are trade secrets, the organization may be allowed to keep them secret or to disclose them to the defense only under a confidentiality order.
  • 18. LEGALITY OF USING LOGS  The original copies of any log files are preferred.  A printout of a disk or tape record is considered to be an original copy, unless and until judges and jurors are equipped computers that have USB or SCSI interfaces.
  • 19. EXAMINING INTRUSION AND SECURITY EVENTS  Examining intrusion and security events includes both passive and active tasks.  A detection of an intrusion that occurs after an attack has taken place is called a post-attack detection or passive intrusion detection.  In these cases, the inspection of log files is the only medium that can be used to evaluate and rebuild the attack techniques.  Passive intrusion detection techniques usually involve a manual review of event logs and application logs.  An investigator can inspect and analyze event log data to detect attack patterns.
  • 20. EXAMINING INTRUSION AND SECURITY EVENTS  There are many attack attempts that can be detected as soon as the attack takes place.  This type of detection is known as active intrusion detection.  Using this method, an administrator or investigator follows the footsteps of the attacker and looks for known attack patterns or commands, and blocks the execution of those commands.
  • 21. INTRUSION DETECTION  Intrusion detection is the process of tracking unauthorized activity using techniques such as inspecting user actions, security logs, or audit data.  There are various types of intrusions, including unauthorized access to files and systems, worms, Trojans, computer viruses, buffer overflow attacks, application redirection, and identity and data spoofing.  Intrusion attacks can also appear in the form of denial of service, and DNS, e-mail, content, or data corruption.  Intrusions can result in a change of user and file security rights, installation of Trojan files, and improper data access.  Administrators use many different intrusion detection techniques, including evaluation of system logs and settings, and deploying firewalls, antivirus software, and specialized intrusion detection systems.  Administrators should investigate any unauthorized or malicious entry into a network or host.
  • 22. USING MULTIPLE LOGS AS EVIDENCE  Recording the same information in two different devices makes the evidence stronger.  Logs from several devices collectively support each other.  Firewall logs, IDS logs, and TCPDump output can contain evidence of an Internet user connecting to a specific server at a given time.
  • 23. MAINTAINING CREDIBLE IIS LOG FILES  Many network administrators have faced serious Web server attacks that have become legal issues.  Web attacks are generally traced using IIS logs.  Investigators must ask themselves certain questions before presenting IIS logs in court, including:  What would happen if the credibility of the IIS logs was challenged in court?  What if the defense claims the logs are not reliable enough to be admissible as evidence?  An investigator must secure the evidence and ensure that it is accurate, authentic, and accessible.  In order to prove that the log files are valid, the investigator needs to present them as acceptable and dependable by providing convincing arguments, which makes them valid evidence.
  • 24. LOG FILE ACCURACY  The accuracy of IIS log files determines their credibility.  Accuracy here means that the log files presented before the court of law represent the actual outcome of the activities related to the IIS server being investigated.  Any modification to the logs causes the validity of the entire log file being presented to be suspect.
  • 25. LOGGING EVERYTHING  In order to ensure that a log file is accurate, a network administrator must log everything.  Certain fields in IIS log files might seem to be less significant, but every field can make a major contribution as evidence.  Therefore, network administrators should configure their IIS server logs to record every field available.  IIS logs must record information about Web users so that the logs provide clues about whether an attack came from a logged-in user or from another system.  Consider a defendant who claims a hacker had attacked his system and installed a back-door proxy server on his computer. The attacker then used the back-door proxy to attack other systems.  In such a case, how does an investigator prove that the traffic came from a specific user’s Web browser or that it was a proxied attack from someone else?
  • 26. EXTENDED LOGGING IN IIS SERVER  Limited logging is set globally by default, so any new Web sites created have the same limited logging. An administrator can change the configuration of an IIS server to use extended logging.  The following steps explain how to enable extended logging for an IIS Web/FTP server and change the location of log files:  Run the Internet Services Manager.  Select the properties on the Web/FTP server.  Select the Web site or FTP site tab.  Check the Enable Loggingcheck box.  Select W3C Extended Log File Formatfrom the drop-down list.  Go to Properties.
  • 27. EXTENDED LOGGING IN IIS SERVER  Click the Extended Properties tab, and set the following properties accordingly:  Client IP address  User name  Method  URI stem  HTTP status  Win32 status  User agent  Server IP address  Server port  Select Daily for New Log Time Period below the general Properties tab.
  • 28. EXTENDED LOGGING IN IIS SERVER  Select Use local time for file naming and overturn.  Change the log file directory to the location of logs.  Ensure that the NTFS security settings have the following settings:  Administrators - Full Control  System - Full Contro
  • 29. KEEPING TIME  With the Windows time service, a network administrator can synchronize IIS servers by connecting them to an external time source.  Using a domain makes the time service synchronous to the domain controller. A network administrator can synchronize a standalone server to an external time source by setting certain registry entries: Key: HKLMSYSTEMCurrentControlSetServicesW32TimeParameters Setting: Type Type: REG_SZ Value: NTP Key: HKLMSYSTEMCurrentControlSetServicesW32TimeParameters Setting: NtpServer Type: REG_SZ Value: ntp.xsecurity.com
  • 30. UTC TIME  IIS records logs using UTC time, which helps in synchronizing servers in multiple zones.  Windows offsets the value of the system clock with the system time zone to calculate UTC time.  To check whether the UTC time is correct, a network administrator must ensure that the local time zone setting is accurate.  The network administrator must verify that during the process IIS is set to roll over logs using local time