• No results found

TESTING OUR SECURITY DEFENCES

N/A
N/A
Protected

Academic year: 2021

Share "TESTING OUR SECURITY DEFENCES"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Do we need to test our defences?

(3)

OVERVIEW

Why testing of defences

Penetration Testing phases

(4)

WHY TESTING OF DEFENCES?

INFOSECURITY

WITH

(5)

ARE OUR DEFENCES

WORKING?

• Average cost of worst

security breach for 2011

(6)

PENETRATION TESTING

• Penetration testing are legitimate and authorised attempts that aim to test

and improve security defences by identifying and exploiting vulnerable systems

• emphasis on determining business risk and potential impact of

intrusions in a controlled, professional and ethical manner

• aids organisations to improve their security practices

• Should be performed regularly, but especially when:

• new services/equipment/policies are introduced

• significant modification of existing services/equipment/policies

(7)

ALTERNATIVES TO SECURITY

ASSESSMENT

• Vulnerability assessment • stops at identifying

vulnerabilities, it does not exploit them and hence does not determine

business impact

• tends to focus on software

vulnerabilities only

• Intrusion detection and

network/email/web monitoring

• Security audits

• Security audits follow

rigorous set of criteria and checklists to ensure

compliance with security policy, regulations and

standards

• Penetration testing is a

subset of security audits

• Configuration/Architecture

(8)

SO WHY PENETRATION

TESTING?

• Shows real life impact of breaches • Useful for management

• Tests systems in real-life conditions, from the perspective of an

attacker (and what they know)

• Is more transparent to target environment personnel

• Requires less time for in-depth interviews, audits,

(9)
(10)
(11)

PLANNING

• “Get out of Jail Free Card”. No testing can commence without it. • Rules of Engagement. Agree how the test will be run:

• Contact information

• Encryption for data exchange between testers / target organisation • How teams will communicate/debrief

• Start date and finish date for tests. Acceptable times for testing.

Announced vs unannounced tests.

• Black Box vs. Crystal Box testing

(12)

SCOPING

• Identify what needs to be tested

• Identify what needs to be avoided

• Third-party equipment (e.g. ISP routers, web hosting servers, cloud

providers)

• Use VM clone or actual production system?

• Internal or external testing?

(13)

RECONNAISSANCE

• The purpose of this phase is to learn as much as possible about the target organisation

• inventory of possible targets, infrastructure • people and culture

• terminology

• Provides vital clues for the remaining phases

• whois, DNS Lookups, network sweeps, google searching, metadata,

(14)

WEB RECONNAISSANCE

• Organisation website. Background on organisation

• Main business, products, employees, email addresses, office locations,

competitors, Job postings, online devices

• web archives (e.g. The Wayback Machine)

• Document Metadata - pdf, doc(x), dot, xls(x), xlt, ppt(x), jpg, jpeg, etc

• User names, email addresses, file system structure, client software (and

versions) in use

• Social networking sites (LinkedIn, Facebook, Twitter, Myspace, etc)

(15)

METADATA ANALYSIS

• Dozens of automated tools

(16)

BRINGING IT ALL TOGETHER

• Automated recon tools can integrate results from various sources

• Domain names, IP Addresses, social networking, network

(17)

SCANNING

• Aims to discover openings by interacting more with the target

environment. Nmap is a popular tool that can automate the process

• Network sweeps • Network traces • Port scans • OS fingerprinting • Version scans • Vulnerability scans

• Really important to keep records of scanning attempts and monitor

(18)

NETWORK TRACES

• Nmap traceroute is

different from Windows, Unix Traceroute.

Optimised for large-scale scans

• Also Layer 4 traceroute,

and web-based

(19)

PORT SCANS

• TCP has inbuilt response. If port is

open, TCP will respond to a SYN request

• A SYN/ACK response means

port is open

• A RST/ACK means port is closed

or blocked

• Any other response, or lack of

response, means the port is filtered

• UDP has no inbuilt response. Even if

port is open, UDP will not respond to a request. The application on that port will.

• Response from application means

port is open

• Lack of response means ....????? • UDP scans are more effective if

they include application-layer requests

TCP scans different from UDP scans

(20)

SCANNING TECHNIQUES

• Sends pre-defined unusual

stimuli that are designed to show differences in OS

behaviour

• First generation was more

error-prone

• Second generation is

more accurate. Uses more than 30 tests

• Help identify services on

unexpected ports

• e.g. http on 23/tcp rather

than 80/tcp

• Also helps to identify their

version

(21)

SCANNING TECHNIQUES

• Knowing live systems, running

services, and their versions, the next step is to discover vulnerabilities

• Nmap, Nessus and numerous

other tools can help in this step

• User accounts are often used

in exploits. Apart from

public-facing resources, they can be harvested from the local network.

• Email addresses

• /etc/passwd in Linux/

Unix

• sid2user in Windows

(22)

EXPLOITATION

• The next step is gaining access to the system and running commands

• e.g. installing software on target system, taking files from target system,

sniffing traffic, changing the configuration, pivoting to other systems, etc.

• useful to verify if vulnerability exists

• initial access is often used as pivot point to get further access in the internal

network and show real impact of a vulnerability

• Carries risks and hence it is vital to pre-determine at planning stage what is

allowed on what systems

• data exposure; system integrity; system instability

(23)

EXPLOIT TYPES

• Once a vulnerability is

discovered, an exploit is delivered to the service

• Inbound traffic on the

port should be allowed on firewall

• The client needs to

connect to the attacker, in order to retrieve the

exploit

• Popular exploits: Flash

Player, Adobe Acrobat, Internet Explorer, Java, QuickTime Player, etc.

(24)

POST EXPLOITATION

• Once access is gained, the next step is to prove access and

show its impact

• Files to pilfer:

• passwords, crypto keys, windows credentials, wifi

pre-shared keys

• source code, system files, application config

• trust relationships, other systems from DNS cache, ARP

(25)
(26)

DEFENDING AGAINST

RECONNAISSANCE

• Understanding the value of information our systems, devices, employees emit is key • Metadata, job websites, online forums

• Hardening of systems and devices • E.g. silence routers and systems

• Free templates available at cisecurity.org. Automated tools include MBSA, Bastille • Configure systems and applications to behave differently (e.g. different TCP/IP

stack, change server banners and responses. e.g. IPPersonality, Servermask)

• Use pen testing tools against your own systems • Social engineering

(27)

Dr Maria Papadaki GCIA GPEN MBCS FHEA

[email protected]

Centre for Security Communications

& Network Research (CSCAN)

www.plymouth.ac.uk/cscan

INFOSECURITY

WITH

References

Related documents

The direct perspectives of this work include extending the trace comparison operator to consider events along model states (e.g., to compare different opera- tional semantics

could sell its bonds only to investors in the 35 percent bracket and they had no tax-advantaged alternatives, the municipality could capture whatever the federal govern- ment lost.

The prognosis for these teeth, in one respect, is similar to that of a tooth that has a ledged canal, in that an uninstrumented and unfilled portion of the original canal

Aim To present a case where a traumatized, immature tooth still showed capacity for continued root development and apexogenesis after root canal treatment was initiated based on

La primera funcionalidad de la comida en el cine no dejaba lugar a hablar de gastronomía como argumento, sino más bien dotaba de valor a la comida en el seno de las escenas,

In summary, action was taken to protect the teacher participants and to comply with the University of Saskatchewan’s ethical guidelines for research. Data were collected through

ON-Q* SilverSoaker* Antimicrobial Catheters are impregnated with silver on both the inner and outer surfaces of the catheter. The silver acts as the antimicrobial agent by releasing

Rather than starting with and focusing on the school social work services provided (Step #1 above) and the development of program goals (Step #3 above), this process seeks to