CY-702-A Penetration Testing and Vulnerability Analysis

Penetration Testing and Vulnerability Analysis (CY-702-A) Important Questions

RGPV · B.Tech · Cyber Security · Semester 7 · Current scheme · 3 papers (2024 to 2025)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Penetration Testing and Vulnerability Analysis important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Penetration Testing and Vulnerability Analysis important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Penetration testing: definition, types, black, white and grey box, methodology stages

Asked 3 times in 2024, 2025 · Unit 1

From the papers

  • “Define penetration testing and explain its various types with suitable examples.” (Jun 2025)
  • “What are the common stages of a penetration testing methodology?” (Dec 2025)
  • “Explain penetration testing. Also differentiate between internal and external penetration testing.” (Dec 2025)
  • “How does a black-box test differ from a white-box and grey-box test?” (Dec 2025)

The short answer

Penetration testing is an authorized, simulated attack on a system, network or application to find weaknesses before real attackers do. It goes beyond listing flaws: the tester tries to exploit them safely and reports the real risk. Tests are grouped by target (network, web, wireless, social, physical), by position (internal or external) and by knowledge (black, grey or white box).

Write these points

Methodology stages

  1. Planning and scoping: goals, targets, rules of engagement, written permission.
  2. Reconnaissance: collect public information (footprinting, OSINT).
  3. Scanning and enumeration: live hosts, open ports, services, vulnerabilities.
  4. Exploitation: gain access through a weakness.
  5. Post-exploitation: escalate privilege, pivot, collect evidence, keep access only as long as allowed, clean up.
  6. Reporting and retest: findings, risk ratings, fixes; retest after fixes.
  • Standard methodologies: PTES, OWASP Testing Guide (web), NIST SP 800-115, OSSTMM.

Types

TypeFocusSpecial considerations
NetworkHosts, ports, firewalls, routersAvoid outages; test during agreed hours
Application (web, mobile)Login, input handling, business logicTest copy of data; OWASP Top 10
InternalAttacker already inside the LANInsider threat, lateral movement
ExternalInternet facing systemsPublic IPs, websites, VPN, mail
Wireless, social, physicalWi-Fi, people, buildingsConsent of staff policy, safety

Scope of a small web test.

Target: shop.example.in and its API, 2 weeks, grey box with one customer login.

Out of scope: payment gateway (third party), denial of service.

Findings: 1 critical (SQL injection), 2 high, 5 medium.

Retest after fixes: all critical and high issues closed.

Real-life example

A bank hires a locksmith to try breaking into its own vault with permission. The locksmith then writes down every weak lock: that is a penetration test.

Figure: penetration testing methodology
Figure: penetration testing methodology
Figure: black, grey and white box testing
Figure: black, grey and white box testing

Same or opposite: internal and external penetration testing

PointInternalExternalSame or opposite
Starting pointInside the networkFrom the internetOpposite
Needs written authorizationYesYesSame
Threat simulatedInsider, infected laptopOutside hackerOpposite
TargetsServers, AD, file sharesWebsites, VPN, mail, public IPsOpposite

Exam tip. Define penetration testing and write the six stages. Give the types table, then compare internal with external and black, grey and white box.

Back to the topic list

Q2. Reconnaissance, information gathering, footprinting and DNS reconnaissance

Asked 3 times in 2024, 2025 · Unit 1

From the papers

  • “Explain the process of information gathering in penetration testing. Discuss the techniques used for reconnaissance and footprinting.” (Jun 2025)
  • “Why is reconnaissance considered the first and most crucial phase of ethical hacking?” (Dec 2025)
  • “What is the purpose of DNS reconnaissance in the context of penetration testing? Why is it crucial to gather information about an organization's external presence before conducting a penetration test?” (Dec 2024)

The short answer

Reconnaissance (information gathering) is the first phase of a penetration test: the tester collects as much information as possible about the target before touching it. Footprinting builds a profile of the organization: domains, IP ranges, people, technologies. It is the most important phase because every later step depends on knowing what to attack.

Write these points

Passive and active reconnaissance

KindContact with targetTechniques
PassiveNoneWHOIS, search engines, social media, job posts, OSINT, public DNS records, Shodan
ActiveDirectPing sweeps, port scans, DNS zone transfer attempts, banner grabbing

DNS reconnaissance

  • Finds subdomains (mail, vpn, dev, test), name servers, mail servers (MX), IP addresses.
  • Tools: nslookup, dig, dnsenum, DNSRecon, crt.sh certificate search.
  • Shows the external attack surface: forgotten test servers are often the weakest point.
  • A misconfigured server that allows zone transfer (AXFR) gives away every record.

Why it comes first

  • Defines the attack surface and saves time.
  • Passive work leaves no trace, so it does not alert defenders.
  • Finds people for social engineering and technologies for known exploits.
  • A missed host means a missed vulnerability.

Footprinting one company.

WHOIS gives the registrar and the IP block 203.0.113.0/24.

Certificate search shows 14 subdomains, among them dev.company.in.

LinkedIn lists 40 IT staff; job posts mention Apache Tomcat 8.

The tester now knows to check dev.company.in for an old, unpatched Tomcat.

Real-life example

Before a robbery in a film, the gang watches the bank for weeks: guards, timings, camera spots. Reconnaissance is that watching, done with permission.

Figure: reconnaissance
Figure: reconnaissance

Same or opposite: passive and active reconnaissance

PointPassiveActiveSame or opposite
Contact with targetNoneDirectOpposite
Gathers information before attackingYesYesSame
Risk of detectionVery lowHigherOpposite
ExampleWHOIS, OSINTPort scan with NmapOpposite

Exam tip. Define reconnaissance and footprinting. Give the passive versus active table, DNS reconnaissance tools and what it reveals. Explain why it is the first and most important phase.

Back to the topic list

Q3. Vulnerability scanning: scanners, tools and techniques

Asked 3 times in 2024, 2025 · Unit 1

From the papers

  • “What is Vulnerability Scanning? Discuss the tools and techniques used for vulnerability scanning.” (Jun 2025)
  • “What is a vulnerability scanner and how does it help organizations assess their security posture?” (Dec 2025)
  • “Write short note on: Vulnerability scanning tools.” (Dec 2024)

The short answer

Vulnerability scanning is the automated checking of hosts, networks and applications against a database of known weaknesses, such as missing patches, weak settings or default passwords. A vulnerability scanner produces a list of findings with severity scores (CVSS). It shows an organization its security posture quickly and regularly.

Write these points

Techniques

  • Network scanning: live hosts, open ports and service versions (Nmap).
  • Authenticated (credentialed) scans: log in to check patches and settings deeply.
  • Unauthenticated scans: see what an outsider sees.
  • Web application scanning: crawl pages, test inputs for SQL injection, XSS.
  • Configuration and compliance checks: CIS benchmarks, PCI DSS.
ToolType
Nmap with NSE scriptsPort and service scanner
Nessus, OpenVASNetwork vulnerability scanners
Qualys, Rapid7 NexposeEnterprise and cloud scanners
Burp Suite, OWASP ZAP, NiktoWeb application scanners

How it helps the organization

  • Finds weaknesses before attackers do.
  • Ranks them by CVSS score so the worst are fixed first.
  • Tracks progress over time and proves compliance.
  • Limits: false positives, misses business logic flaws; it lists possible issues while a penetration test proves them.

Reading a scan report.

Scan of 50 servers finds 120 issues: 4 critical, 16 high, 60 medium, 40 low.

Critical: Apache Log4j (CVSS 10.0) on 2 servers; patch within 24 hours.

High: SMBv1 enabled on 6 servers; disable this week.

After fixes, the rescan shows 0 critical and 3 high.

Real-life example

A car service centre runs a computer check that lists every warning light and worn part. The mechanic then decides which repairs come first.

Figure: vulnerability scanning cycle
Figure: vulnerability scanning cycle

Same or opposite: vulnerability scanning and penetration testing

PointVulnerability scanningPenetration testingSame or opposite
MethodAutomatedManual plus toolsOpposite
Finds security weaknessesYesYesSame
Proves exploitabilityNoYesOpposite
FrequencyWeekly or monthlyYearly or after big changesOpposite

Exam tip. Define vulnerability scanning and a scanner. List the techniques and the tools table. Explain severity ranking, posture tracking and the difference from a penetration test.

Back to the topic list

Q4. Web application security: common vulnerabilities, testing methodology, HSTS, CIA, business logic testing

Asked 3 times in 2024, 2025 · Unit 2

From the papers

  • “Explain how web applications are tested for security vulnerabilities. Discuss common web application vulnerabilities.” (Jun 2025)
  • “Define confidentiality, integrity and availability in the context of web security.” (Dec 2025)
  • “What is business logic testing and why is it important? Give examples.” (Dec 2025)
  • “Why is it crucial for web applications to employ HTTP Strict Transport Security (HSTS) to enhance security?” (Dec 2024)

The short answer

Web application security protects websites and web services from attacks on their code, logic and data. Testing follows a methodology such as the OWASP Testing Guide and checks the OWASP Top 10 risks. Its goals are the CIA triad: confidentiality, integrity and availability.

Write these points

CIA triad in web security

  • Confidentiality: only allowed users read data (HTTPS, access control).
  • Integrity: data are not changed without permission (input validation, signatures).
  • Availability: the site keeps working (rate limits, backups, DoS protection).

Common vulnerabilities (OWASP Top 10)

  • Broken access control, cryptographic failures, injection (SQL, command), insecure design, security misconfiguration.
  • Vulnerable components, broken authentication, data integrity failures, logging failures, server side request forgery (SSRF).

Testing methodology

  1. Map the application: pages, inputs, roles, API.
  2. Test authentication and sessions.
  3. Test authorization (access other users' data).
  4. Test every input for injection and XSS.
  5. Test business logic: flows the code allows but the business should not (negative quantity, skipping payment, reusing a coupon).
  6. Report and retest. Tools: Burp Suite, OWASP ZAP, sqlmap.

HTTP Strict Transport Security (HSTS)

  • Header Strict-Transport-Security: max-age=31536000; includeSubDomains.
  • Browser then uses only HTTPS for the site for a year.
  • Stops SSL stripping (downgrade to HTTP) on public Wi-Fi and cookie theft over plain HTTP.

Business logic flaw.

A shop lets a user change quantity in the cart request.

Tester sends quantity −2 for a ₹1,000 item plus one ₹3,000 item.

Total becomes 3,000 − 2,000 = ₹1,000: the scanner sees nothing wrong.

Fix: the server rejects quantities below 1 and recomputes the price itself.

Real-life example

A ticket counter that checks your ID (confidentiality), prints the right seat (integrity) and stays open (availability) is secure. A clerk who accepts a minus number of tickets has a logic flaw.

Figure: web application testing
Figure: web application testing

Same or opposite: automated scanning and business logic testing

PointAutomated scanningBusiness logic testingSame or opposite
Done byToolsHuman testerOpposite
Part of web application testingYesYesSame
FindsKnown patterns (XSS, SQLi)Misuse of real workflowsOpposite
Needs knowledge of the businessNoYesOpposite

Exam tip. Define the CIA triad for the web. List OWASP Top 10 items, the testing steps and HSTS with its header. Give one business logic example.

Back to the topic list

Q5. Wireless security: Wi-Fi vulnerabilities and attacks, security protocols, packet sniffing

Asked 3 times in 2024, 2025 · Unit 3

From the papers

  • “Discuss the importance of wireless network security. Explain Wi-Fi vulnerabilities and attacks.” (Jun 2025)
  • “What are the different Wi-Fi security protocols? Explain in detail.” (Dec 2025)
  • “Explain the main types of Wi-Fi vulnerabilities in detail.” (Dec 2025)
  • “Explain the importance of packet sniffing in wireless penetration testing.” (Dec 2024)

The short answer

Wireless network security protects Wi-Fi networks, whose signal reaches outside the building where anyone can listen. Weak protocols, default settings and rogue devices make Wi-Fi a common entry point. Wireless penetration testing checks encryption, authentication, access points and clients, often by packet sniffing.

Write these points

Wi-Fi security protocols

ProtocolEncryptionStatus
WEPRC4 with a 24-bit IVBroken: key cracked from captured traffic in minutes
WPATKIP (RC4)Deprecated
WPA2AES-CCMP, 4-way handshakeCommon; weak passphrases can be cracked offline
WPA3SAE handshake, forward secrecyCurrent standard; resists offline guessing

Wi-Fi vulnerabilities and attacks

  • Rogue access point: an unapproved AP plugged into the network.
  • Evil twin: fake AP with the same name tricks users into connecting.
  • Deauthentication attack: forces clients off to capture the handshake.
  • WPS PIN brute force; KRACK on WPA2; default router passwords.
  • Eavesdropping on open networks; jamming (denial of service).

Packet sniffing in wireless testing

  • Monitor mode captures all frames in the air (Wireshark, airodump-ng).
  • Shows clients, hidden networks, weak protocols, clear-text data.
  • Captures the WPA2 handshake to test passphrase strength.
  • Defence: WPA3 or WPA2-AES with a long passphrase, WPS off, 802.1X for offices, wireless IDS.

Why passphrase length matters.

An 8-digit numeric WPA2 passphrase has 10⁸ = 100 million options.

A GPU testing 1 million guesses per second tries them all in 100 seconds.

A 12-character mix of 62 symbols has 62¹² ≈ 3.2 × 10²¹ options.

At the same speed that takes about 100 million years.

Real-life example

Shouting your bank PIN in a crowded market is like using open Wi-Fi. Anyone nearby can hear it without touching you.

Figure: Wi-Fi security protocols
Figure: Wi-Fi security protocols

Same or opposite: WPA2 and WPA3

PointWPA2WPA3Same or opposite
Handshake4-way PSKSAE (dragonfly)Opposite
Uses AES encryptionYesYesSame
Offline passphrase crackingPossibleResistedOpposite
Forward secrecyNoYesOpposite

Exam tip. Explain why wireless needs special care. Give the protocol table, list five Wi-Fi attacks and explain packet sniffing in testing. End with defences.

Back to the topic list

Q6. Social engineering and physical security

Asked 3 times in 2024, 2025 · Unit 3

From the papers

  • “Explain different social engineering techniques used for cyber-attacks.” (Jun 2025)
  • “How can an attacker perform reconnaissance on a physical facility to identify vulnerabilities?” (Dec 2025)
  • “List three common tactics used in social engineering attacks targeting wireless networks.” (Dec 2024)
  • “Explain how employee training programs contribute to the mitigation of social engineering risks.” (Dec 2024)

The short answer

Social engineering attacks people rather than machines: the attacker tricks someone into giving access, data or money. Physical security testing checks whether an outsider can enter buildings and reach equipment. Both are tested because the strongest firewall fails if a staff member opens the door.

Write these points

Techniques

TechniqueHow it works
Phishing, spear phishingFake e-mails that steal logins or deliver malware
Vishing and smishingFake phone calls and SMS
PretextingA made-up story: "I am from IT support"
BaitingInfected USB drives left in the car park
TailgatingFollowing an employee through a secure door
Quid pro quoFree help in return for a password
  • Against wireless networks: evil twin with a fake login page, a caller asking for the Wi-Fi password, a rogue AP hidden in a meeting room.

Physical reconnaissance by an attacker

  • Watch entrances, guard timings, smoking areas and badge types.
  • Photograph badges; find unlocked side doors and loading bays.
  • Dumpster diving for printed documents.
  • Check open network ports in lobbies and meeting rooms.

Mitigation and employee training

  • Regular awareness training and simulated phishing tests.
  • Clear reporting channel; no blame for reporting.
  • Verify callers through a known number.
  • Badges, visitor escort, no tailgating policy, shredding, locked server rooms, CCTV.
  • Multi-factor authentication so a stolen password alone is useless.

Effect of training.

First simulated phishing test: 30 of 200 staff (15%) click the link.

After monthly training for six months: 6 of 200 (3%) click.

Reports to IT rise from 10 to 120.

Each click avoided is one less chance of a real breach.

Real-life example

A thief who wears a courier uniform and walks in behind a staff member never needs to break a lock. That is tailgating.

Figure: social engineering techniques
Figure: social engineering techniques

Same or opposite: phishing and pretexting

PointPhishingPretextingSame or opposite
ChannelE-mail, linksPhone or in person, with a storyOpposite
Tricks a person into giving accessYesYesSame
ScaleMany targetsUsually one targetOpposite
ExampleFake bank login mailCaller posing as IT supportOpposite

Exam tip. Define social engineering and physical security testing. Give the techniques table, the physical recon steps and the training and mitigation list.

Back to the topic list

Q7. Cryptography: encryption and decryption, symmetric and asymmetric, algorithms

Asked 3 times in 2024, 2025 · Unit 4

From the papers

  • “What is Cryptography? Explain the role of encryption and decryption in secure communication.” (Jun 2025)
  • “Describe different cryptographic algorithms and their applications.” (Jun 2025)
  • “How does symmetric encryption differ from asymmetric encryption?” (Dec 2025)
  • “Write short note on: Decryption.” (Dec 2024)

The short answer

Cryptography protects information by turning readable plaintext into unreadable ciphertext (encryption) and back (decryption) with keys. It gives confidentiality, integrity, authentication and non-repudiation. Symmetric ciphers use one shared key; asymmetric ciphers use a public and private key pair.

Write these points

Role in secure communication

  • Encryption hides data in transit and at rest (HTTPS, VPN, disk encryption).
  • Decryption lets only the key holder read it back.
  • Hashing checks integrity; digital signatures prove who sent a message.
  • Protocols combine them: TLS uses RSA or ECDHE to agree a key, then AES to encrypt data.
AlgorithmTypeApplication
AESSymmetric block cipherWi-Fi WPA2/WPA3, disk and file encryption, TLS
ChaCha20Symmetric stream cipherMobile TLS
RSAAsymmetricKey exchange, signatures, certificates
ECC (ECDH, ECDSA)AsymmetricTLS, mobile, cryptocurrency
SHA-256HashIntegrity, passwords (with salt), blockchain
  • Key management: generate, store (HSM), rotate and revoke keys safely; most real failures come from poor key handling.

Symmetric and asymmetric together in HTTPS.

Browser gets the server certificate with its public key.

They agree a fresh 256-bit session key using ECDHE (asymmetric).

All page data are then encrypted with AES-256 using that key (symmetric, fast).

Asymmetric solves key sharing; symmetric does the bulk work.

Real-life example

A locked letter box at the post office is asymmetric: anyone can drop a letter, only the postmaster with the key can open it. A diary lock shared by two friends is symmetric.

Figure: encryption and decryption
Figure: encryption and decryption

Same or opposite: symmetric and asymmetric encryption

PointSymmetricAsymmetricSame or opposite
KeysOne shared secret keyPublic and private pairOpposite
Provides confidentialityYesYesSame
SpeedFastSlowOpposite
ExampleAESRSA, ECCOpposite

Exam tip. Define cryptography, encryption and decryption with their role. Give the algorithm table and the symmetric versus asymmetric comparison with the HTTPS example.

Back to the topic list

Q8. RSA and key space numericals (AES-256 keys, password combinations)

Asked 3 times in 2024, 2025 · Unit 4

From the papers

  • “If a system uses AES-256 encryption, how many possible keys exist?” (Jun 2025)
  • “Compute the total number of possible password combinations for an 8-character alphanumeric password (including uppercase, lowercase and digits).” (Jun 2025)
  • “Perform encryption and decryption using the RSA algorithm for p = 3, q = 11, e = 7, M = 5.” (Dec 2025)
  • “Demonstrate how the RSA algorithm can be applied to achieve secure communication.” (Dec 2024)

The short answer

RSA is an asymmetric algorithm based on the difficulty of factoring a large number n = p × q. The public key (e, n) encrypts: C = Mᵉ mod n. The private key (d, n) decrypts: M = Cᵈ mod n. Key space numericals count how many keys or passwords exist, which shows how long a brute force attack would take.

Write these points

RSA steps

  1. Choose primes p and q; n = p × q.
  2. φ(n) = (p − 1)(q − 1).
  3. Choose e with gcd(e, φ(n)) = 1.
  4. Find d with e × d mod φ(n) = 1.
  5. Encrypt C = Mᵉ mod n; decrypt M = Cᵈ mod n.
  6. For secure communication: encrypt with the receiver's public key; sign with the sender's private key.

Key space numericals

  • AES-256: 2²⁵⁶ ≈ 1.16 × 10⁷⁷ possible keys. At 10¹⁸ guesses per second it would take about 3.7 × 10⁵¹ years.
  • 8-character alphanumeric password: 26 + 26 + 10 = 62 symbols, 62⁸ = 218,340,105,584,896 ≈ 2.18 × 10¹⁴.
  • At 1 billion guesses per second: 2.18 × 10⁵ seconds ≈ 61 hours. Adding 2 characters multiplies the time by 3,844.

December 2025 question: p = 3, q = 11, e = 7, M = 5.

n = 33; φ(n) = 2 × 10 = 20; d: 7 × 3 = 21 = 1 mod 20, so d = 3.

C = 5⁷ mod 33 = 78,125 mod 33 = 14.

Decrypt: 14³ mod 33 = 2,744 mod 33 = 5, the original message.

Public key (7, 33), private key (3, 33).

Real-life example

A padlock that anyone can snap shut but only you can open is RSA's public and private key. A bigger dial on a number lock is a bigger key space.

Figure: RSA worked example
Figure: RSA worked example

Same or opposite: RSA and AES

PointRSAAESSame or opposite
TypeAsymmetricSymmetricOpposite
Used to protect dataYesYesSame
Key size2048 bits or more128 or 256 bitsOpposite
UseKey exchange, signaturesBulk data encryptionOpposite

Exam tip. Write the RSA steps, then solve p = 3, q = 11, e = 7, M = 5 with every modular step. Add the AES-256 and 62⁸ key space numbers.

Back to the topic list

Q9. Legal and ethical considerations; objectives of a penetration test

Asked 2 times in 2024, 2025 · Unit 1

From the papers

  • “Discuss the legal and ethical considerations associated with penetration testing.” (Jun 2025)
  • “Evaluate the impact of legal and ethical considerations on the decision-making process for organizations when choosing to conduct penetration testing.” (Dec 2024)
  • “Discuss the primary objectives of the penetration test in a specific case.” (Dec 2024)

The short answer

A penetration test is legal only with written authorization from the system owner; without it the same actions are crimes (in India under the IT Act 2000, sections 43 and 66). Ethics require staying in scope, protecting data and reporting honestly. The objectives of a test are set before it starts and decide its type and depth.

Write these points

Legal considerations

  • Signed contract and rules of engagement: scope, dates, IP ranges, allowed techniques.
  • Third party consent for cloud or hosted systems (provider policies).
  • Data protection laws (DPDP Act 2023, GDPR) when personal data are seen.
  • Non-disclosure agreement; liability and insurance for outages.

Ethical considerations

  • Stay inside the scope; stop if something unexpected is found.
  • Do no harm: avoid crashing systems and deleting data.
  • Keep findings confidential; store evidence securely and delete it after the agreed time.
  • Report every finding honestly, including your own mistakes.

Impact on the organization's decision

  • Clear legal terms let the organization approve tests on production systems.
  • Choosing a certified, insured tester (OSCP, CEH, CREST) reduces legal risk.
  • Compliance rules (PCI DSS, RBI cyber security framework) may require yearly tests.

Objectives in a specific case

  • Find exploitable weaknesses and their business impact.
  • Check whether defences detect the attack.
  • Meet compliance; test after a big change.
  • Example: an e-commerce site before a festival sale wants to know whether customer card data can be stolen.

Scope letter entries.

Client: XYZ Bank. Targets: netbanking.xyz.in and 10 listed IPs.

Window: 1 to 14 March, 10 pm to 6 am. No denial of service, no social engineering.

Contacts: an emergency phone number on both sides.

Signed by the bank's CISO and the testing firm before any scan starts.

Real-life example

A doctor may operate only with the patient's signed consent; the same cut without consent is assault. Penetration testing works the same way.

Figure: before a test starts
Figure: before a test starts

Same or opposite: ethical hacking and malicious hacking

PointEthical (penetration testing)Malicious hackingSame or opposite
PermissionWritten, before testingNoneOpposite
Uses attack techniquesYesYesSame
GoalFix weaknessesSteal, damage, profitOpposite
ResultConfidential reportBreachOpposite

Exam tip. Write the legal needs (authorization, rules of engagement, IT Act), the ethical rules and how they shape the organization's decision. State objectives with a specific case.

Back to the topic list

Q10. SQL injection and cross-site scripting

Asked 2 times in 2024, 2025 · Unit 2

From the papers

  • “Describe SQL injection and Cross-Site Scripting (XSS) attacks. How can these vulnerabilities be mitigated?” (Jun 2025)
  • “What is the primary risk associated with SQL injection vulnerabilities in web applications?” (Dec 2024)

The short answer

SQL injection (SQLi) happens when user input is joined into a database query, so an attacker can change the query: read, change or delete data, or bypass login. Cross-site scripting (XSS) happens when user input is put into a web page without encoding, so the attacker's script runs in other users' browsers.

Write these points

SQL injection

  • Primary risk: loss of the whole database: user data, passwords, card details; changing or deleting records; sometimes control of the server.
  • Types: in-band (error based, UNION), blind (boolean, time based), out-of-band.
  • Test with ' OR '1'='1 and sqlmap during an authorized test.

Cross-site scripting

  • Stored: script saved in a comment and shown to every visitor.
  • Reflected: script in a link, reflected back in the reply.
  • DOM based: page JavaScript writes input into the page.
  • Risk: session cookie theft, fake forms, defacement, actions as the victim.

Mitigation

AttackMain defences
SQL injectionParameterized queries or ORM, input validation, least privilege database user, WAF
XSSOutput encoding by context, Content Security Policy, HttpOnly cookies, input validation

Login bypass.

Code: SELECT * FROM users WHERE name='input' AND pass='pw'.

Attacker types the name ' OR '1'='1' -- and any password.

Query: ... WHERE name='' OR '1'='1' --' ...; the rest is a comment and the condition is always true.

First user (often admin) is logged in. With a parameterized query the input is only data, so the attack fails.

Real-life example

Filling a bank form with "Pay ₹100 to Ravi. Also give me the vault keys" works only if the clerk reads every word as an order. A careful clerk treats your words only as data.

Figure: SQL injection and its fix
Figure: SQL injection and its fix

Same or opposite: SQL injection and XSS

PointSQL injectionXSSSame or opposite
Runs inDatabase serverVictim's browserOpposite
Caused by trusting user inputYesYesSame
Main targetStored dataOther users' sessionsOpposite
Key fixParameterized queriesOutput encoding and CSPOpposite

Exam tip. Define SQLi with its primary risk and XSS with its three types. Show the login bypass query and the fixes table.

Back to the topic list

Q11. Exploitation and privilege escalation; knowing the target architecture

Asked 2 times in 2024, 2025 · Unit 2

From the papers

  • “What are some common tools used for privilege escalation? Explain in detail.” (Dec 2025)
  • “Why is it important for penetration testers to have a thorough understanding of the target system's architecture before attempting exploitation?” (Dec 2024)

The short answer

Exploitation uses a found weakness to gain access; privilege escalation then raises that access from a normal user to administrator (root or SYSTEM). Understanding the target architecture first (operating systems, network layout, trust links, defences) decides which exploits are safe and useful.

Write these points

Why the target architecture matters

  • Picks exploits that match the exact OS, version and service.
  • Avoids crashing production systems; plans safe timing.
  • Shows trust paths for pivoting (jump servers, domain trusts).
  • Reveals defences (EDR, IDS) to test detection.
  • Focuses on the crown jewels: databases, domain controllers.

Privilege escalation

  • Vertical: user to admin. Horizontal: one user to another user of the same level.
  • Common causes: unpatched kernel, misconfigured sudo rights, SUID files, weak service permissions, stored passwords, unquoted service paths.
ToolPlatformUse
LinPEAS, LinEnumLinuxList misconfigurations and escalation paths
WinPEAS, PowerUp, SeatbeltWindowsService, registry and token weaknesses
Metasploit local exploit suggesterBothMatch patches to known exploits
BloodHoundActive DirectoryFind paths to domain admin
MimikatzWindowsShow reuse of stored credentials (in authorized tests)

A typical escalation path.

Access as web user www-data through an upload flaw.

LinPEAS shows that www-data may run /usr/bin/find with sudo and no password.

That rule lets a command run as root, so full control follows.

Fix: remove the sudo rule; give services only the rights they need.

Real-life example

A visitor pass gets you into the lobby. Finding a staff badge left on a desk gets you into the server room. That second step is privilege escalation.

Figure: exploitation path
Figure: exploitation path

Same or opposite: vertical and horizontal privilege escalation

PointVerticalHorizontalSame or opposite
Moves toHigher privilege (admin)Same level, other accountOpposite
Abuses weak access controlYesYesSame
ExampleUser to rootCustomer A reads customer B's ordersOpposite
ImpactFull system controlOther users' dataOpposite

Exam tip. Explain why architecture knowledge comes before exploitation. Define privilege escalation with its two kinds, causes and the tools table. Give one escalation path.

Back to the topic list

Q12. Reporting and remediation: documentation, stakeholders, tracking and resolving issues

Asked 2 times in 2024, 2025 · Unit 4

From the papers

  • “Explain the process for tracking and resolving issues identified during testing.” (Dec 2025)
  • “List the key elements that should be included in a documentation report for a cryptography audit.” (Dec 2024)
  • “Explain the importance of stakeholder engagement in the successful implementation of cryptographic measures.” (Dec 2024)

The short answer

Reporting and remediation turn test results into fixes. The report documents every finding with evidence, risk and a clear fix. Remediation is tracked until each issue is resolved and retested. Stakeholders (management, IT, developers, legal) must be engaged so that measures are funded, understood and actually used.

Write these points

Key elements of a report (also for a cryptography audit)

  1. Executive summary in plain words; overall risk.
  2. Scope, method, dates and tools.
  3. Findings: title, description, evidence (screenshots), CVSS severity, affected systems.
  4. For cryptography: algorithms and key lengths in use, weak ciphers (DES, MD5, SHA-1, TLS 1.0), certificate expiry, key storage and rotation.
  5. Recommendations with priority and owner.
  6. Appendix: raw output, retest results.

Tracking and resolving issues

  1. Log each finding in a tracker (Jira) with an owner and a deadline by severity: critical 7 days, high 30, medium 90.
  2. Fix, or accept the risk formally with sign-off.
  3. Retest to confirm the fix.
  4. Close the ticket; report metrics to management.

Stakeholder engagement

  • Management approves budget and policy; explain risk in money and reputation terms.
  • IT and developers implement; give exact steps.
  • Legal and compliance confirm rules are met.
  • Users need training so new controls (MFA, encryption) are not bypassed.

Remediation plan from a crypto audit.

Findings: TLS 1.0 enabled (high), SHA-1 certificates (medium), keys stored in code (critical).

Plan: move keys to a vault in 7 days; disable TLS 1.0 in 30 days; replace certificates in 90 days.

Retest after 30 days: keys moved, TLS 1.0 off; certificates pending.

Report to management: 2 of 3 closed, 1 on track.

Real-life example

A health check-up report lists results, flags what is high, says which doctor to see and when to test again. A penetration test report does the same for systems.

Figure: remediation cycle
Figure: remediation cycle

Same or opposite: executive summary and technical findings

PointExecutive summaryTechnical findingsSame or opposite
ReaderManagementIT and developersOpposite
Part of the reportYesYesSame
LanguagePlain, business riskDetailed, technicalOpposite
ContentOverall risk, prioritiesEvidence, steps to reproduce and fixOpposite

Exam tip. List the report elements with the crypto audit items. Write the tracking steps with deadlines by severity and why stakeholders must be engaged.

Back to the topic list

Q13. Red teaming and adversary simulation

Asked 2 times in 2025 · Unit 5

From the papers

  • “What is red teaming? How does it differ from penetration testing?” (Jun 2025)
  • “Compare between red teaming and penetration testing.” (Dec 2025)

The short answer

Red teaming is a long, goal based simulation of a real adversary: the red team tries to reach a business objective (for example customer data) by any allowed means while the defenders (blue team) are usually not told. Penetration testing is shorter and tries to find as many vulnerabilities as possible in a defined scope.

Write these points

PointPenetration testingRed teaming
GoalFind and list many vulnerabilitiesReach an objective; test detection and response
ScopeDefined systemsWhole organization: people, buildings, technology
Duration1 to 3 weeksWeeks to months
StealthNot needed; staff may knowHigh; blue team not informed
MethodsMostly technicalTechnical, social engineering, physical
OutputList of findings and fixesAttack story, detection gaps

Adversary simulation

  • Copies tactics of real groups using the MITRE ATT&CK framework.
  • Tools: command and control (C2) frameworks such as Cobalt Strike or Sliver in authorized exercises.
  • Purple teaming: red and blue work together to improve detection quickly.
  • Rules still apply: a signed objective, a trusted agent who can stop the exercise and no real damage.

A red team objective.

Goal: read the CEO's mailbox within 6 weeks.

Week 1: OSINT on staff; week 2: phishing gives one laptop.

Weeks 3 to 5: quiet movement to a mail admin account; the SOC raises one alert but closes it.

Result: goal reached. Lesson: the SOC needs better alert triage, more than another patch.

Real-life example

A school fire drill announced in advance is like a penetration test. A surprise drill that checks whether staff really respond is like red teaming.

Figure: red, blue and purple teams
Figure: red, blue and purple teams

Same or opposite: red teaming and penetration testing

PointRed teamingPenetration testingSame or opposite
Main questionCan attackers reach the goal undetected?What weaknesses exist?Opposite
Needs authorizationYesYesSame
Defenders informedNoUsually yesOpposite
DurationLongShortOpposite

Exam tip. Define red teaming and adversary simulation. Give the comparison table with penetration testing and one objective based example.

Back to the topic list

Q14. Capture the Flag (CTF) competitions

Asked 2 times in 2024, 2025 · Unit 5

From the papers

  • “Explain the types of common challenges of CTFs in detail.” (Dec 2025)
  • “How does a Capture the Flag competition simulate real-world cyber security scenarios? Discuss.” (Dec 2024)

The short answer

A Capture the Flag (CTF) competition is a security contest where teams solve challenges to find hidden text strings called flags (for example flag{...}). It simulates real attacks and defences in a safe, legal lab, so students build the same skills used in penetration testing.

Write these points

Formats

  • Jeopardy: independent challenges in categories with points.
  • Attack-defence: each team defends its own services while attacking others.
  • King of the hill: hold control of a machine as long as possible.

Common challenge types

CategoryWhat you doReal-world skill
WebFind SQLi, XSS, logic flaws in a siteWeb penetration testing
CryptographyBreak weak ciphers, bad RSA keysCrypto review
ForensicsAnalyze disk images, packets, memoryIncident response
Reverse engineeringRead compiled programsMalware analysis
Binary exploitation (pwn)Buffer overflows, format stringsExploit development
OSINT and steganographyFind data in public sources and imagesReconnaissance

How it simulates the real world

  • Real tools (Burp, Wireshark, Ghidra, pwntools) on realistic systems.
  • Time pressure and teamwork, like incident response.
  • Attack-defence mirrors red and blue teams.
  • Legal practice space; recruiters value CTF results. Platforms: picoCTF, CTFtime, HackTheBox, TryHackMe.

A small crypto challenge.

Given RSA public key n = 33, e = 7 and ciphertext 14.

n is tiny, so factor it: 33 = 3 × 11; φ = 20; d = 3.

14³ mod 33 = 5. Message 5 maps to the flag flag{5}.

Lesson: RSA with a small n gives no security, the same weakness testers look for in real keys.

Real-life example

A football practice match uses real rules and real skills but nothing is lost. A CTF is a practice match for cyber security.

Figure: CTF challenge categories
Figure: CTF challenge categories

Same or opposite: Jeopardy and attack-defence CTF

PointJeopardyAttack-defenceSame or opposite
PlaySolve separate challengesAttack others and defend your ownOpposite
Captures flags for pointsYesYesSame
Defence neededNoYesOpposite
Best forBeginners, learning categoriesExperienced teamsOpposite

Exam tip. Define CTF and flags. List the three formats and the challenge type table, then explain how CTFs mirror real security work.

Back to the topic list

Start with the latest papers

Penetration Testing and Vulnerability Analysis - Jun 2025

Penetration Testing and Vulnerability Analysis - Dec 2025

Penetration Testing and Vulnerability Analysis - Dec 2024

See all 3 papers →

Penetration Testing and Vulnerability Analysis (CY-702-A) FAQs

What are the most important topics in Penetration Testing and Vulnerability Analysis?

By how often they were asked in the papers on this site: Penetration testing: definition, types, black, white and grey box, methodology stages (3 times); Reconnaissance, information gathering, footprinting and DNS reconnaissance (3 times); Vulnerability scanning: scanners, tools and techniques (3 times); Web application security: common vulnerabilities, testing methodology, HSTS, CIA, business logic testing (3 times); Wireless security: Wi-Fi vulnerabilities and attacks, security protocols, packet sniffing (3 times).

How were these Penetration Testing and Vulnerability Analysis important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2024-2025). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Penetration Testing and Vulnerability Analysis important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Penetration Testing and Vulnerability Analysis is free to download from this page.

The 14 most repeated topics of Penetration Testing and Vulnerability Analysis (CY-702-A) for RGPV B.Tech Cyber Security semester 7, counted from the previous year papers on this site.