0% found this document useful (0 votes)
9 views17 pages

Introduction to Ethical Hacking Basics

The document provides an overview of ethical hacking, its significance, and the legal and ethical considerations involved in the practice. It differentiates between black hat, white hat, and grey hat hackers, emphasizing the importance of ethical hackers in enhancing cybersecurity and compliance while adhering to legal frameworks. Additionally, it outlines the responsibilities of ethical hackers, including maintaining confidentiality, integrity, and availability of information, as well as the consequences of ignoring legal and ethical boundaries.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views17 pages

Introduction to Ethical Hacking Basics

The document provides an overview of ethical hacking, its significance, and the legal and ethical considerations involved in the practice. It differentiates between black hat, white hat, and grey hat hackers, emphasizing the importance of ethical hackers in enhancing cybersecurity and compliance while adhering to legal frameworks. Additionally, it outlines the responsibilities of ethical hackers, including maintaining confidentiality, integrity, and availability of information, as well as the consequences of ignoring legal and ethical boundaries.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MODULE -1 MMCH311A

INTRODUCTION TO ETHICAL HACKING

Introduction to ethical hacking and its importance, Legal and ethical considerations in
ethical hacking, Differentiating between black hat, white hat, and grey hat hacking, Basic
cyber security concepts and terminology, Overview of penetration testing methodologies

1. ETHICAL HACKING

Ethical hacking is the legal and professional practice of testing computer systems,
networks, and applications. This is done to find and fix security weaknesses before
malicious hackers can exploit them. It involves using hacking techniques, but with
permission and a positive goal. The aim is to protect digital assets and improve overall
cybersecurity.

The person performing ethical hacking is known as an ethical hacker, who may be
contracted or employed by an organization to help them strengthen their security. Ethical
hackers work within legal boundaries, ensuring the data they have access to is not
exploited or disclosed to any third-parties (unless directed by the organization). Once
discovering the vulnerabilities, the ethical hacker will help the organization with
suggestions of how to patch them and therefore prevent attacks. For example, your
organization has developed a new Web application for a school. You have been asked to
test the Web application and locate vulnerabilities. When you test (hack) the application,
you discover that it is prone to SQL Injection attacks. If you had not hacked this application
and found the vulnerability to fix, then a hacker could have carried it out, resulting in the
data being compromised.

1.1 What needs to be protected

While working, an ethical hacker must preserve the following:

• Confidentiality: You must safeguard the information that you have and know. It
becomes your responsibility to ensure that the information does not fall into the
wrong hands. You can protect the information with appropriate permissions and
encryption. If these are not applied, there are chances of disclosure, which allows
an unauthorized person to access the information.
• Integrity: Keep the information in its original form and do not allow any
unauthorized alteration.
• Availability: Keep the information available for the authorized individuals to use
it. If this is not done, the information can be lost.

Dept of MCA, ATMECE, Mysuru 1


MODULE -1 MMCH311A

2. IMPORTANCE OF ETHICAL HACKING

Ethical hacking contributes significantly to contemporary cybersecurity, ethical hackers


can identify and address vulnerabilities before they are exploited by simulating the
strategies and tactics utilized by cybercriminals. This proactive methodology serves to:

Enhance Security: Identify and address flaws to stop data breaches and cyberattacks.
Compliance: Meet security standards set by the industry and regulatory requirements.

Management of risk: Assess and reduce potential threats to the assets of the organization.
Occurrence Reaction: Enhance the company's capacity to respond to security incidents
and recover from them.

• Proactive Risk Reduction: Ethical hacking enables organizations to identify and


address vulnerabilities before malicious actors can exploit them. By conducting
authorized penetration tests, security professionals simulate real-world attack
scenarios to uncover flaws in networks, web applications, and system
configurations. This proactive approach allows businesses to strengthen their
defenses, apply patches, and mitigate risks long before a cybercriminal discovers
them. In essence, ethical hacking transforms security from a reactive activity—
responding after incidents—into a proactive discipline that prevents them.
Regular ethical hacking assessments help organizations maintain a secure
infrastructure even as technologies evolve and new threats emerge.
• Regulatory Compliance: Many industries and governments have established
strict security standards that mandate periodic penetration testing as part of
compliance requirements. Frameworks such as PCI-DSS (Payment Card Industry
Data Security Standard), HIPAA (Health Insurance Portability and
Accountability Act), and ISO/IEC 27001 (Information Security Management
System) all include provisions for regular security assessments. Ethical hacking
ensures organizations comply with these mandates by verifying that their systems
meet the required security baselines. Failing to meet these standards can result in
heavy fines, reputational damage, and legal consequences. Therefore, ethical
hacking not only strengthens security but also helps maintain compliance and
trust with regulators, customers, and partners.
• Cost Savings: Preventing a cyberattack is far less expensive than recovering from
one. Data breaches can result in massive financial losses due to downtime, data
recovery, legal fees, customer compensation, and loss of trust. By identifying
vulnerabilities early, ethical hackers help organizations patch weaknesses before
Dept of MCA, ATMECE, Mysuru 2
MODULE -1 MMCH311A

they become gateways for attackers. The cost of conducting a controlled


penetration test is minimal compared to the expense of incident response, forensic
investigations, and post-breach remediation. Moreover, ethical hacking supports
smarter investment in security controls—organizations can focus resources on
the most critical vulnerabilities rather than spreading budgets thinly across all
areas.
• Brand Reputation and Customer Trust: A single data breach can severely
damage an organization’s brand image and erode customer confidence.
Consumers are increasingly aware of data privacy and expect the organizations
they interact with to protect their personal and financial information. Ethical
hacking enhances an organization’s reputation by demonstrating a proactive
commitment to cybersecurity. When clients and stakeholders see that a company
conducts regular security audits and pentests, they are more likely to trust it with
their data. This trust translates into customer loyalty, stronger partnerships, and
a competitive advantage in the market. Ethical hacking also provides confidence
to management and shareholders that the company is taking measurable steps to
protect its digital assets.
• Improved Security Posture: The goal of ethical hacking is to strengthen an
organization’s security posture, the overall readiness and ability to detect,
prevent, and respond to cyber threats. Ethical hackers provide actionable insights
into weaknesses across the entire IT environment, from network infrastructure
and cloud services to web applications and user awareness. Each assessment
concludes with a detailed report that prioritizes vulnerabilities based on risk
severity and impact. This helps security teams allocate resources effectively and
implement remediation strategies that deliver the most significant improvements.
Over time, regular ethical hacking activities contribute to continuous
improvement in organizational resilience and defense maturity.
• Real-World Impact: The real-world impact of ethical hacking is evident across
industries. Organizations that invest in proactive security testing often experience
fewer breaches, reduced system downtime, and faster incident recovery. Ethical
hacking helps uncover configuration errors, insecure coding practices, and
overlooked entry points that could otherwise lead to serious compromises. Many
major cybersecurity incidents in history—such as ransomware attacks or data
leaks—could have been prevented through routine penetration testing. By
identifying weaknesses before adversaries do, ethical hacking directly contributes
to the overall stability and reliability of digital ecosystems.
Dept of MCA, ATMECE, Mysuru 3
MODULE -1 MMCH311A

3. LEGAL AND ETHICAL CONSIDERATIONS IN ETHICAL HACKING

Ethical hacking, though performed with good intentions, must strictly adhere to laws and
moral guidelines. Every penetration test involves interacting with real systems and data,
which means even minor mistakes can lead to data loss, service disruption, or privacy
violations. Therefore, a deep understanding of the legal framework and adherence to
ethical principles is essential for every security professional.

3.1 Understanding the Legal Landscape

The line between ethical and unethical hacking is determined primarily by


authorization. Performing security testing without explicit permission from the system
owner is illegal—even if the intent is to report vulnerabilities. Cyber laws around the
world, including India’s Information Technology (IT) Act, 2000, and the Computer
Fraud and Abuse Act (CFAA) in the U.S., criminalize unauthorized access to computer
systems, networks, or data.

Ethical hackers must always operate within the legal boundaries defined by:

• National and international cyber laws – define offenses like hacking, data theft,
identity fraud, and denial-of-service attacks.
• Industry regulations – such as GDPR (Europe), HIPAA (U.S.), and India’s Personal
Data Protection Bill, which regulate handling of personal and sensitive data.
• Contractual obligations – including confidentiality agreements, non-disclosure
agreements (NDAs), and terms outlined in the Rules of Engagement (RoE).

Violating any of these legal boundaries, even accidentally, can result in serious legal
consequences such as fines, loss of professional credibility, or imprisonment. Therefore,
before performing any test, an ethical hacker must ensure that a written authorization
letter or formal contract is in place that clearly defines what is allowed and what is not.

3.2 Rules of Engagement (RoE)

A Rule of Engagement document serves as the formal guideline that governs a


penetration test. It clearly outlines:

• Scope: The systems, IP ranges, applications, and databases that may be tested.
• Methodology: The techniques permitted—e.g., network scanning, web app
testing, or social engineering.
Dept of MCA, ATMECE, Mysuru 4
MODULE -1 MMCH311A

• Timing: Testing windows that minimize business disruption.


• Points of Contact: Who to inform in case of emergencies or accidental system
outages.
• Data Handling: How sensitive information discovered during testing will be
stored, shared, and disposed of.
• Deliverables: The format and deadline of reports and evidence.

The RoE protects both the tester and the organization by establishing mutual consent and
ensuring that all activities are transparent and documented.

3.3 Ethical Principles in Ethical Hacking

Beyond legal permission, ethical hackers are bound by a code of conduct that
emphasizes honesty, professionalism, and responsibility. The main ethical principles
include:

• Authorization and Consent: Never test a system without written approval. Consent
differentiates ethical hacking from illegal hacking.
• Confidentiality: Any sensitive information obtained during testing—such as
credentials, financial records, or personal data—must be protected and not disclosed
to unauthorized individuals. Ethical hackers must handle all data with extreme
discretion.
• Integrity and Accuracy: Reports must accurately describe vulnerabilities without
exaggeration or omission. Evidence should be factual and verifiable, maintaining
integrity in communication and documentation.
• Non-maleficence (Do No Harm): Ethical hackers must ensure their tests do not
disrupt business operations or corrupt data. For example, Denial-of-Service or
destructive payloads should only be executed in isolated test environments or with
explicit consent.
• Responsible Disclosure: When vulnerabilities are discovered, ethical hackers
should follow a responsible disclosure process—informing the organization
privately, providing time to fix the issue, and then disclosing publicly (if agreed upon).
Publicly revealing vulnerabilities before they are fixed can invite malicious
exploitation.
• Objectivity and Professionalism: Ethical hackers must avoid personal bias, conflicts
of interest, or using their skills for personal gain. They should maintain a professional
relationship with clients, focusing on security improvement rather than blame.
Dept of MCA, ATMECE, Mysuru 5
MODULE -1 MMCH311A

3.4 International Standards and Frameworks

Several professional bodies define standards and ethical codes for cybersecurity
professionals, including:

• (ISC)² Code of Ethics – emphasizes protecting society, the common good, and
infrastructure.
• EC-Council’s Code of Ethics – governs Certified Ethical Hackers (CEH).
• ISACA and CompTIA guidelines – outline professional conduct and data privacy
rules.
• NIST SP 800-115 – provides technical guidelines for security testing and
assessment.

Following such frameworks ensures that ethical hackers maintain global best practices
and credibility.

3.5 Data Privacy and Compliance Considerations

While conducting ethical hacking, testers often encounter sensitive or personally


identifiable information (PII). Mishandling this data can violate privacy laws such as
GDPR or India’s Digital Personal Data Protection Act (DPDP), 2023. Ethical hackers
must therefore:

• Avoid copying or storing sensitive data unless absolutely required for testing.
• Encrypt all collected evidence and delete it securely after project completion.
• Anonymize personal data in reports to protect individual identities.
• Ensure that data collected during tests is used strictly for security improvement
purposes.

3.6 Legal Documentation and Liability Protection

Both organizations and testers benefit from formal documentation before beginning any
engagement. Common legal documents include:

• Non-Disclosure Agreement (NDA): Protects sensitive information shared


during testing.
• Authorization Letter: Grants explicit permission to perform defined tests.
• Liability Waiver: Limits the tester’s responsibility in case of accidental
disruptions.
Dept of MCA, ATMECE, Mysuru 6
MODULE -1 MMCH311A

• Service Level Agreement (SLA): Defines scope, deliverables, and timelines.

These documents safeguard both parties and ensure that all testing activities are legally
defensible.

3.7 Consequences of Ignoring Legal and Ethical Boundaries

Ignoring legal or ethical obligations can lead to severe consequences. Unauthorized


scanning or penetration attempts—even for “good intentions”—can be interpreted as
cybercrime. Ethical hackers who fail to maintain confidentiality or cause system damage
may face lawsuits, revocation of certifications, or imprisonment under applicable laws.
Furthermore, such misconduct harms the entire cybersecurity profession by reducing
trust in ethical hackers.

3.8 The Balance Between Security and Ethics

Ethical hacking operates in a delicate balance—its goal is to break systems, but only to
make them stronger. Every action should be guided by a sense of responsibility toward
individuals, organizations, and society. Upholding ethical standards ensures that
cybersecurity professionals contribute positively to digital safety and maintain the
credibility of their field.

4. DIFFERENTIATING BETWEEN BLACK HAT, WHITE HAT, AND GREY HAT


HACKING

Hacking is a double-edged sword — it can be used for both constructive and destructive
purposes. The term “hacker” originally referred to individuals who were highly skilled in
computing and programming, often exploring systems out of curiosity or for innovation.
Over time, as some hackers began exploiting their skills for illegal or unethical purposes,
society began to classify hackers based on their intent, authorization, and methodology.

The three primary categories of hackers are:


1. Black Hat Hackers – Malicious and illegal attackers
2. White Hat Hackers – Authorized and ethical professionals
3. Grey Hat Hackers – Ambiguous or mixed-intent individuals
Understanding these distinctions is crucial for appreciating the role of ethical hacking
within cybersecurity.
4.1 Black Hat Hackers: Black hat hackers are the cybercriminals of the digital world.
They use their knowledge of computer systems, networks, and programming to
Dept of MCA, ATMECE, Mysuru 7
MODULE -1 MMCH311A

identify and exploit vulnerabilities for personal or financial gain. Their activities are
unauthorized, unethical, and illegal under virtually all national and international
cybercrime laws.
Objectives: Black hat hackers may be driven by several motives, including:
• Financial gain: Stealing credit card details, conducting ransomware attacks, or
selling stolen data on the dark web.
• Political or ideological reasons: Launching cyberattacks to promote an ideology,
disrupt government systems, or protest policies (a form of hacktivism).
• Corporate espionage: Stealing confidential information or trade secrets from
competitors.
• Revenge or sabotage: Damaging a company or individual’s digital presence out of
personal vendetta.
• Thrill or notoriety: Seeking recognition within underground hacking
communities.

Common Activities:

• Developing and deploying malware or ransomware


• Phishing and social engineering attacks
• Data theft and identity fraud
• Distributed Denial of Service (DDoS) attacks
• Website defacement and system compromise

Consequences:
Black hat activities are illegal and punishable under cybercrime laws such as India’s
IT Act 2000, the Computer Fraud and Abuse Act (CFAA) (U.S.), and other global
cybersecurity legislations. Convicted black hat hackers can face severe penalties,
including imprisonment and heavy fines.

Example:
A hacker breaking into a company’s database to steal credit card information or
selling stolen credentials on the dark web is engaging in black hat hacking

4.2 White Hat Hackers:


White hat hackers, also known as ethical hackers, are cybersecurity professionals
who perform hacking activities with legal authorization and the intention to improve
security. They use the same tools and techniques as black hats, but within a controlled

Dept of MCA, ATMECE, Mysuru 8


MODULE -1 MMCH311A

and permitted environment. Their goal is to identify vulnerabilities before malicious


actors can exploit them.
Objectives:
• Strengthen security defenses
• Prevent data breaches and cyberattacks
• Comply with industry regulations
• Support organizational risk management

Activities:

• Conducting penetration tests and vulnerability assessments

• Performing red team/blue team exercises

• Security auditing and compliance testing

• Developing defensive security tools and training users

Legal and Ethical Boundaries: White hat hacking is fully authorized through written
agreements, often detailed in a Rules of Engagement (RoE) document. Ethical
hackers follow strict codes of conduct and professional standards, ensuring that
testing causes no harm or disruption to systems or data.

Example:
A certified ethical hacker hired by a bank to test its online banking application for
vulnerabilities is performing white hat hacking.

4.3 Grey Hat Hackers:


Grey hat hackers fall in between black and white hats — they may exploit systems
without explicit permission, but without malicious intent. Often, grey hats discover
vulnerabilities and report them to the organization involved, sometimes requesting
recognition or rewards. However, since their actions are unauthorized, they still
violate laws and ethical standards.
Objectives:
• Curiosity or technical challenge
• Desire to improve security awareness
• Reputation or recognition
• Occasionally, financial reward (bug bounty or consulting offers)
Activities:
• Scanning systems without permission to find vulnerabilities

Dept of MCA, ATMECE, Mysuru 9


MODULE -1 MMCH311A

• Informing system owners of weaknesses after discovery


• Publicly disclosing security flaws before patches are released
Legal Implications: Even if the intention is to help, grey hat activities remain legally
questionable. Accessing or testing systems without consent constitutes unauthorized
activity. Ethical conduct requires the hacker to obtain permission before any form of
testing.
Example: A grey hat hacker finds a security flaw in a company’s

5. Phases of Ethical Hacking

Ethical hacking typically involves the following key phases:

• Preparation and planning: Characterize the extent of the test, acquire


fundamental authorizations, and accumulate data about the objective framework.

• Reconnaissance: Gather in-depth data about the target system, including


information about its network structure, IP addresses, and potential security
holes.

• Scanning: Scan the target system using a variety of tools and methods to look for
vulnerable services, open ports, and vulnerabilities.

• Gaining Access: Attempt to gain access to the system by mimicking potential real-
world attacks by taking advantage of identified vulnerabilities.

• Maintaining Access: Test the capacity to keep up with access inside the
framework and survey ingenuity components that could be utilized by assailants.

Dept of MCA, ATMECE, Mysuru 10


MODULE -1 MMCH311A

• Reporting and Analysis: Produce a comprehensive report to the organization,


document findings, and offer suggestions for reducing vulnerabilities.

6. Benefits of Ethical Hacking

Ethical hacking has advantages that go beyond just enhancing security, They
consist of:

• Preventing Data Breach: Organizations can avoid costly data breaches by


identifying vulnerabilities before attackers do.

• Protecting Private Information: safeguards vital data from misuse and


unauthorized access.

• Enhancing the System's Resilience: It makes applications and systems stronger


and more resistant to attacks.

• Developing Trust: Demonstrates a commitment to data security and improves


the company's reputation.

7. BASIC CYBER SECURITY CONCEPTS AND TERMINOLOGY


Cybersecurity is the practice of protecting computer systems, networks, programs,
and data from digital attacks, unauthorized access, or damage. Understanding its basic
concepts and terminology is essential for anyone studying ethical hacking, as these
terms form the foundation for all security-related activities.
• Information Security (InfoSec): Information Security refers to the protection of
data—both digital and physical—from unauthorized access, disclosure, alteration,
or destruction. Main goal is to ensure the confidentiality, integrity, and availability
(CIA) of information.
• The CIA Triad is the cornerstone model of cybersecurity, representing three key
principles:
o Confidentiality: Ensuring that information is accessible only to authorized
individuals. Example: Encrypting files so only users with the decryption key
can read them.
o Integrity: Protecting information from being modified or tampered with by
unauthorized users. Example: Using hashing algorithms to verify that a file
hasn’t been altered.
o Availability: Ensuring that systems and data are accessible when needed.
Example: Implementing backup systems and redundancy to prevent
downtime.
Dept of MCA, ATMECE, Mysuru 11
MODULE -1 MMCH311A

• Authentication and Authorization


o Authentication: The process of verifying a user’s identity. Example:
Entering a username and password, using biometrics, or a one-time
password (OTP).
o Authorization: The process of granting or denying access to specific
resources after authentication. Example: An employee may log into a
company portal (authentication) but only managers can access financial
records (authorization).
• Non-Repudiation: Ensures that a sender of a message cannot later deny having
sent it, and the recipient cannot deny having received it. Example: Digital
signatures and audit logs provide proof of actions and transactions.
• Vulnerability, Threat, and Risk
These three terms are closely related but distinct in cybersecurity:
o Vulnerability: A weakness or flaw in a system that could be exploited.
Example: Unpatched software, weak passwords, or misconfigured firewalls.
o Threat: Any event or actor that has the potential to exploit a vulnerability.
Example: Hackers, malware, natural disasters, or insider attacks.
o Risk: The potential damage or loss that could occur if a threat exploits a
vulnerability. Example: The risk of data theft if a web server has an SQL
injection vulnerability.
• Attack and Exploit
o Attack: A deliberate attempt to compromise a system or network.
Example: Phishing, denial-of-service, or brute-force attacks.
o Exploit: The specific method or code used to take advantage of a vulnerability.
Example: Using a known software bug to gain unauthorized access.
• Malware (Malicious Software) Any software designed to harm, disrupt, or steal
information from a system. Common types include:
o Virus: Attaches itself to legitimate programs and spreads when executed.
o Worm: Self-replicates and spreads automatically through networks.
o Trojan Horse: Disguised as a legitimate application to trick users into
installing it.
o Ransomware: Encrypts files and demands payment to restore access.
o Spyware: Secretly monitors user activities and collects sensitive information.
• Firewall: A firewall is a network security device that monitors and controls
incoming and outgoing traffic based on predefined rules. It acts as a barrier

Dept of MCA, ATMECE, Mysuru 12


MODULE -1 MMCH311A

between trusted internal networks and untrusted external networks like the
internet. Example: Blocking traffic from suspicious IP addresses or unauthorized
ports.
• Encryption and Decryption
o Encryption: The process of converting readable data (plaintext) into an
unreadable format (ciphertext) to prevent unauthorized access.
o Decryption: The process of converting ciphertext back into plaintext using a
secret key. Example: Secure websites (HTTPS) use encryption to protect data
transmitted between users and servers.
• Social Engineering
A technique that manipulates people into revealing confidential information or
performing unsafe actions. Example: Phishing emails, fake tech support calls, or
baiting attacks that exploit human trust.
• Patch Management
The process of regularly updating software and systems to fix vulnerabilities.
Unpatched systems are one of the most common causes of cyber breaches.
• Incident Response
The structured process organizations follow when a cybersecurity incident
occurs.
Phases:
1. Preparation
2. Detection and Analysis
3. Containment
4. Eradication
5. Recovery
6. Lessons Learned
• Security Policy and Awareness
Security policies define the rules and procedures for protecting information.
User awareness programs educate employees to recognize threats and follow best
practices, forming the first line of defense.
• Ethical Hacking and Penetration Testing
Ethical hacking is the authorized practice of finding vulnerabilities, while penetration
testing (pen testing) is the practical process of simulating attacks to assess system
resilience both contribute to continuous security improvement and risk reduction.

Dept of MCA, ATMECE, Mysuru 13


MODULE -1 MMCH311A

• Zero-Day Exploit: A zero-day exploit targets a previously unknown


vulnerability before the vendor releases a fix. These are highly dangerous since
defenders have “zero days” to respond once discovered.

8. OVERVIEW OF PENETRATION TESTING METHODOLOGIES


Penetration testing (pen testing) is a controlled, authorized simulation of real-world
attacks against systems, applications, or networks with the goal of discovering and
demonstrating exploitable weaknesses. A sound methodology ensures tests are
repeatable, legally compliant, and produce actionable results.
8.1 Goals and Types of Pen Tests
Primary goals
• Identify exploitable vulnerabilities.
• Assess business impact and exploitability.
• Provide prioritized remediation guidance.

Test types

• Black-box: No internal knowledge; simulates external attacker.


• Grey-box: Partial knowledge (e.g., user credentials); simulates insider/attacker
with some intel.
• White-box: Full knowledge (source code, architecture); thorough code + config
review.
• Red Team: Long, stealthy, multi-vector engagement that includes social
engineering; simulates advanced persistent threats.
• Vulnerability Assessment vs Pen Test: VA finds weaknesses; pentest attempts
exploitation to prove impact.

8.2 Typical Phases


• Pre-Engagement & Planning: Define scope, objectives, rules of engagement (RoE),
exclusions, time windows.
o Sign legal documents (authorization letter, NDA, liability clauses).
o Identify points of contact and escalation procedures.
o Agree deliverables and success criteria.
• Reconnaissance (Passive & Active)
o Passive: Gather public info (DNS, WHOIS, OSINT, social media, third-party
leaks).

Dept of MCA, ATMECE, Mysuru 14


MODULE -1 MMCH311A

o Active: DNS queries, ping sweeps, basic probing.


o Deliverable: Recon notes and asset list.
• Scanning & Enumeration
o Port scanning, service/version detection, web directory enumeration,
user/service enumeration.
o Identify exposed services, versions, and misconfigurations.
o Tools: Nmap, Masscan, Nikto, dirbuster (examples).
o Deliverable: Live hosts, open ports, service inventory.
• Vulnerability Analysis
o Map discovered services to known vulnerabilities (CVE matching) and
manual verification.
o Prioritize potential targets based on exposure and business impact.
o Deliverable: Candidate vulnerability list with evidence.
• Exploitation
o Attempt controlled exploitation to gain access or demonstrate impact
(non-destructive where required).
o Use PoCs, exploit frameworks, or custom scripts.
o Document all steps, commands, payloads, and evidence (screenshots, logs).
o Deliverable: Exploitation evidence and PoC.
• Post-Exploitation / Lateral Movement
o Privilege escalation, credential harvesting, pivoting, data discovery.
o Measure how far an attacker can move and what sensitive assets are
reachable.
o Document persistence and cleanup steps.
o Deliverable: Attack path diagrams and impact assessment.
• Reporting & Remediation Recommendations
o Executive summary (business impact), technical findings (proofs), risk
ratings, prioritized fix list.
o Include remediation steps, references, and suggested timelines.
o Provide raw data in appendices for technical teams.
• Retest / Validation
o Verify remediation fixes and confirm vulnerabilities are closed.
o Deliverable: Retest results and final closure report.
Conclusion on the Stages of the Penetration:

Dept of MCA, ATMECE, Mysuru 15


MODULE -1 MMCH311A

Test Pentesting begins with the pre-engagement phase, which involves talking to the
client about their goals for the pentest, mapping out the scope (the extent and parameters
of the test), and so on. When the pentester and the client agree about scope, reporting
format, and other topics, the actual testing begins. In the information-gathering phase,
the pentester searches for publicly available information about the client and identifies
potential ways to connect to its systems. In the threat-modeling phase, the tester uses
this information to determine the value of each finding and the impact to the client if the
finding permitted an attacker to break into a system. This evaluation allows the pentester
to develop an action plan and methods of attack. Before the pentester can start attacking
systems, he or she performs a vulnerability analysis. In this phase, the pentester
attempts to discover vulnerabilities in the systems that can be taken advantage of in the
exploitation phase. A successful exploit might lead to a post-exploitation phase, where
the result of the exploitation is leveraged to find additional information, sensitive data,
access to other systems, and so on. Finally, in the reporting phase, the pentester
summarizes the findings for both executives and technical practitioner.
8.3 Risk Rating & Prioritization
• Use a structured risk model to prioritize (severity × likelihood). Commonly used:
CVSS for technical severity plus contextual business impact.
• Provide remediation urgency levels (Critical/High/Medium/Low) and
recommended timelines.
8.4 Typical Deliverables
• Rules of Engagement (RoE) and signed authorizations.
• Technical Report: Findings, PoCs, remediation steps, logs, and commands.
• Executive Summary: High-level impact and remediation priorities for non-
technical stakeholders.
• Evidence Appendices: Raw scan outputs, screenshots, commands.
• Retest Report (if applicable).
8.5 Tools & Techniques (phase-mapped, general examples)
• Recon: whois, dig, Google Dorking, Shodan, theHarvester
• Scanning: Nmap, Masscan, Nessus (scanner), OpenVAS
• Web testing: Burp Suite, OWASP ZAP, Nikto, Dirb
• Exploitation: Metasploit, custom scripts, SQLMap
• Post-exploit: Mimikatz, Empire, Cobalt Strike (note legal controls)
(Always follow RoE; some tools may be disallowed for production.)

Dept of MCA, ATMECE, Mysuru 16


MODULE -1 MMCH311A

8.6 Rules & Safety Practices


• Avoid destructive techniques unless explicitly allowed.
• Time tests to minimize business impact; use maintenance windows for risky tests.
• Keep logs and backups; have rollback plans.
• Maintain strict evidence handling and encryption for sensitive data.
• Communicate immediately on critical/active exploitation findings.
8.7 Metrics & KPIs to Measure Success
• Number of critical vulnerabilities found vs. fixed.
• Mean time to remediation (MTTR) for critical issues.
• Coverage metrics: % of in-scope assets tested.
• Time to detect (if testing detection controls).
• Improvement in security posture over repeated tests.
8.8 Common Pitfalls & How to Avoid Them
• Poor scoping: Leads to missed assets or legal exposure — define scope precisely.
• Lack of RoE or authorization: Legal risk — always get written permission.
• Over-reliance on automated tools: Validate findings manually to avoid false
positives.
• Insufficient communication: Keep stakeholders informed of high-impact
discoveries.
• Not performing retests: Patches left unverified can leave vulnerabilities open.
8.9 Best Practices
• Start small: baseline scans → focused exploitation → broaden scope as approved.
• Use a mixed approach (automated + manual) for depth and efficiency.
• Include application owners in remediation planning.
• Use threat modeling to prioritize tests based on likely attack paths.
• Keep documentation thorough for legal, compliance, and improvement purposes.

Dept of MCA, ATMECE, Mysuru 17

You might also like