skip to content

Scanners & Recon

Port and vulnerability scanners, web proxies, packet capture, artefact and IaC scanners, and abusable-binary catalogues. Interviewers check you have driven these tools, not just named them.

on this pageshow

explore

questions

329 · 12 sections

In Nmap 7.991, what does the -sn option do, and what does a host listed as up tell you?

level: juniorimportance: must knowfreq 48%
basics
~20 s

-sn runs Nmap's host-discovery phase only and prints the hosts that answered a probe; no port scan follows. 'Up' means a discovery probe drew a reply. It says nothing about open ports, services or who owns the address.

open as a page

In Nmap 7.991, what does -sC run, and does using the default script set make a scan safe for production?

level: juniorimportance: must knowfreq 42%
basics
~20 s

-sC is shorthand for --script=default: every script filed under the default category runs. The authors chose that set for speed and low noise, but the reference guide still says not to run it against a network without permission.

open as a page

In Nmap 7.991, how does the -O option arrive at an operating-system guess, and why is the answer a guess and not a fact?

level: juniorimportance: must knowfreq 45%
basics
~20 s

Nmap -O sends crafted TCP, UDP and ICMP probes and compares how the target's IP stack answers with the reference fingerprints in nmap-os-db. That is an inference from behaviour, so the result is a hint with a confidence, not a fact.

open as a page

In an Nmap report with 443 open, 22 filtered, 8080 closed and 53 open|filtered, what does each state imply about the firewall?

level: juniorimportance: must knowfreq 52%
basics
~20 s

Nmap reports six states: open, closed, filtered, unfiltered, open|filtered and closed|filtered. Closed means the host answered and nothing listens; filtered means a filter hid the answer. Each describes what Nmap saw, not the port itself.

open as a page

In Nmap, what does a SYN scan (-sS) send, and how does it read open, closed and filtered answers from a firewalled test server?

level: juniorimportance: must knowfreq 52%
basics
~20 s

A SYN scan sends one TCP SYN per port and never completes the handshake. A SYN/ACK reply means open, a RST means closed, and silence or an ICMP unreachable error means filtered. It is Nmap's default for privileged users.

open as a page

Sending one hping3 SYN to a host's port, what do flags=SA, flags=RA, an ICMP unreachable and no reply each tell you about the rule?

level: middleimportance: must knowfreq 34%
basics
~20 s

flags=SA means the SYN was allowed and something listens; flags=RA means a stack or device reset it; an ICMP unreachable is an explicit refusal; silence suggests a drop but needs a control probe and the log.

open as a page

Why use hping3 rather than a port scanner to test one firewall rule, and what does a bare hping3 probe send by default?

level: juniorimportance: should knowfreq 24%
basics
~20 s

hping3 sends one hand-built packet per probe and prints each reply, so it shows how a rule answers one exact combination, not which ports are open. A bare run sends TCP with no flags to port 0, once a second.

open as a page

How does hping3's traceroute mode, sending a TCP SYN to an allowed port, map the path through a filter that drops ICMP echo?

level: middleimportance: should knowfreq 14%
basics
~20 s

With --traceroute hping3 starts at TTL 1 and raises it each time a router returns an ICMP time-exceeded, so a TCP probe to an allowed port can map hops where echo is dropped. A hop that stays silent stalls it.

open as a page

How can lone hping3 probes with different TCP flags show, during a firewall change review, whether the rules track connection state or only match flag bits?

level: seniorimportance: should knowfreq 11%
basics
~10 s

Send a SYN, then a lone ACK, to a published port. A reset to the session-less ACK suggests the rules match flag bits; silence fits state tracking. Confirm in the firewall log.

open as a page

During an authorised firewall test, what does hping3 traffic look like in the firewall log and to a sensor, and how do you keep the test bounded?

level: seniorimportance: nice to knowfreq 8%
basics
~20 s

A few single packets from one source to one host, with unusual flag and port combinations, window 64 and a rising source port. Bound it with -c and -i, and reconcile its summary with the log.

open as a page

In Nessus, what is a plugin, and what do its plugin ID, family and type tell you about a finding?

level: juniorimportance: must knowfreq 32%
basics
~20 s

A Nessus plugin is a NASL program from Tenable, usually testing for one issue. Its numeric ID names the finding, its family groups it for selection in a policy, and its type says how it gathered evidence.

open as a page

In Qualys VMDR, what is a QID, and why is it not the same thing as a CVE?

level: juniorimportance: must knowfreq 30%
basics
~20 s

A QID (Qualys ID) is the number of one detection in the Qualys KnowledgeBase. A CVE names a published flaw; a QID is Qualys's test and verdict, may list several CVEs, and can carry none at all.

open as a page

How does an unauthenticated network vulnerability scan decide a host is vulnerable, and how does a credentialed scan decide differently?

level: juniorimportance: must knowfreq 50%
basics
~20 s

An unauthenticated scan infers from what services expose on the network: banners, version strings, protocol behaviour. A credentialed scan logs in and reads installed package versions and configuration, so it decides from the host's own record instead of a guess.

open as a page

What does a quarterly point-in-time vulnerability scan miss that continuous assessment of the same estate catches?

level: juniorimportance: must knowfreq 34%
basics
~20 s

A point-in-time scan proves the state of the hosts it reached on the day it ran. It misses hosts that came and went between runs, changes made since, and newly disclosed flaws in software it already saw.

open as a page

How does the Greenbone Community Feed differ from the Greenbone Enterprise Feed, and is the free feed really delayed behind the paid one?

level: middleimportance: must knowfreq 24%
basics
~20 s

Both Greenbone feeds publish daily. The free Community Feed carries the most important VTs plus basic configs, without VTs for enterprise products and with no warranty; the commercial Enterprise Feed adds those VTs, compliance checks, more report formats and an SLA.

open as a page

In Burp Suite's Decoder, how do the Decode as, Encode as, Hash and Smart decode operations differ, and how does it show each layer?

level: juniorimportance: must knowfreq 32%
basics
~20 s

Decode as and Encode as apply one chosen format such as URL, HTML, Base64 or GZIP, Hash applies a hash function, and Smart decode peels recognisable layers automatically. Every transformation opens a new colour-coded panel, so each layer stays visible.

open as a page

In Burp Suite 2026.9, what is the default Proxy listener, and what changes when you bind it to all interfaces?

level: juniorimportance: must knowfreq 38%
basics
~20 s

In Burp Suite 2026.9 the default Proxy listener sits on loopback port 8080, so only the tester's own machine can use it. Binding to all interfaces or a non-loopback address lets other computers connect too.

open as a page

In Burp Suite, what does the target scope control during an authorised test, and what does it not do?

level: juniorimportance: must knowfreq 48%
basics
~20 s

Burp's target scope tells it which hosts and URLs you intend to test; history filters, Proxy logging and interception, redirect following and live scanning read it. It cuts noise and accidents but is not the written authorisation.

open as a page

In Burp Suite's Repeater, how do you confirm or dismiss a scanner-reported finding by hand, and what makes a retest after a fix trustworthy?

level: juniorimportance: must knowfreq 42%
basics
~20 s

Send the issue's request to Repeater, resend it unchanged to reproduce the reported behaviour, then change one element at a time and compare. It is confirmed only when the behaviour repeats and a control request differs.

open as a page

In Burp Scanner, what do the crawl and audit phases each do, and which audit checks send no extra requests?

level: juniorimportance: must knowfreq 42%
basics
~20 s

Burp Scanner first crawls the application to map its content and navigation, then audits it. Passive audit checks only analyse traffic already seen and send nothing extra; active checks send modified requests, and JavaScript analysis reads returned code.

open as a page

What do the exit codes of ZAP's packaged baseline scan script mean, and what does its -I flag change?

level: juniorimportance: must knowfreq 55%
basics
~20 s

zap-baseline.py exits 1 if a rule marked FAIL alerted, 2 if only WARN-bucket rules did, 0 if at least one rule ran and raised nothing, and 3 for everything else. -I removes only the exit-2 branch.

open as a page

Why does ZAP's `openapi` import reach endpoints that its `spider` add-on never finds?

level: juniorimportance: must knowfreq 68%
basics
~20 s

A definition lists every operation whether or not anything links to it, and the openapi add-on sends a real request for each one. A link-following crawl can only enqueue what a response already points at.

open as a page

On an OWASP ZAP alert, what do the risk value and the confidence value each tell you?

level: juniorimportance: must knowfreq 70%
basics
~10 s

Risk is how damaging the finding would be if it is real. Confidence is how sure the scan rule is that it is real. They are two separate fields on the alert, set independently.

open as a page

Does ZAP check that you are allowed to scan a target, and what does it ship instead?

level: juniorimportance: must knowfreq 68%
basics
~20 s

ZAP performs no ownership or authorisation check on a target — nothing in it resolves who owns a host. It ships only a permission warning on rendered screens such as its welcome text and Quick Start panel.

open as a page

In OWASP ZAP, which capabilities live in the core program and which arrive as add-ons?

level: juniorimportance: must knowfreq 62%
basics
~20 s

Core is one versioned program: the command line, the control API, the active-scan engine, and the alert and context models. Almost everything else — the local proxy, the passive-scan engine, the crawlers, automation, reports — ships as separately versioned add-ons.

open as a page

In Wireshark, how does a capture filter differ from a display filter, and when would you filter at capture time?

level: juniorimportance: must knowfreq 48%
basics
~20 s

A capture filter, written in libpcap's filter language, decides which packets are ever recorded; anything it rejects is gone for good. A display filter, written in Wireshark's field syntax, only hides packets already captured and can be changed freely.

open as a page

In Wireshark, how do you choose the capture interface, and why does traffic to a service on 127.0.0.1 never appear on the Ethernet adapter?

level: juniorimportance: must knowfreq 32%
basics
~20 s

Capture on the interface the flow really crosses; the welcome screen's activity sparklines and dumpcap -D show which interfaces are live. Traffic to 127.0.0.1 is delivered inside the operating system and never reaches the Ethernet adapter, so capture it on the loopback interface.

open as a page

In Wireshark, how does a display filter such as `http.response.code >= 500` reach into dissected fields, and what does a bare field name test?

level: juniorimportance: must knowfreq 42%
basics
~20 s

A Wireshark display filter compares typed fields the dissectors registered: http.response.code >= 500 is a numeric test. A bare field name only tests that the field exists, so tcp.flags.syn alone matches nearly every TCP packet.

open as a page

In Wireshark, what does the Expert Information dialog show, how are its severity levels ranked, and how far should you trust it?

level: juniorimportance: must knowfreq 27%
basics
~20 s

Expert Information lists anomalies that dissectors flagged, ranked Chat, Note, Warn, Error from lowest to highest (packet comments sit below Chat) and grouped by kind, such as Sequence or Malformed. It shows where to look; it never diagnoses.

open as a page

In Wireshark, what does Follow TCP Stream show that the packet list cannot, and what does it do to your display filter?

level: juniorimportance: must knowfreq 38%
basics
~20 s

Follow TCP Stream rebuilds one connection's payload as the applications exchanged it, both directions in sequence order with retransmitted bytes shown once, and applies the display filter tcp.stream eq N, which Back removes and Close keeps.

open as a page

On a Linux server, how do you use tcpdump to choose the right interface and save traffic for later analysis in Wireshark?

level: juniorimportance: must knowfreq 38%
basics
~20 s

List capture devices with tcpdump -D, capture with tcpdump -i eth0 -w /var/tmp/web.pcap and a filter, stop with -c or Ctrl-C, then read the file with -r or Wireshark. Use -i any only to find the interface.

open as a page

How do you write a tcpdump filter for TCP traffic with 192.0.2.10 on port 5432, and what do its type, dir and proto qualifiers do?

level: juniorimportance: must knowfreq 44%
basics
~20 s

Use tcp port 5432 and host 192.0.2.10. Each primitive is an id with qualifiers: proto (tcp, ip, ip6), dir (src, dst) and type (host, net, port, portrange). Missing ones default to host, src or dst, and every consistent protocol.

open as a page

In a tcpdump TCP line, what do the flag fields [S], [S.], [P.], [F.], [R.] and a bare [.] each tell you?

level: juniorimportance: must knowfreq 40%
basics
~20 s

Each character is one TCP control bit that is set: S SYN, F FIN, P PSH, R RST, U URG, and a dot for ACK. So [S.] is SYN plus ACK, [P.] data with ACK, and [.] a bare acknowledgment.

open as a page

Which tcpdump filter shows only the initial SYN of each TCP handshake, not the SYN-ACK, and why is `tcp[tcpflags] & tcp-syn != 0` not enough?

level: middleimportance: must knowfreq 31%
basics
~20 s

tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn keeps the SYN and ACK bits and requires SYN alone. Testing only the SYN bit also matches every SYN-ACK, because the reply carries SYN too. The numeric form is tcp[13] & 0x12 == 2.

open as a page

A client tcpdump shows one SYN to port 443 sent three times unanswered; how does that look different from a refused connection?

level: middleimportance: must knowfreq 34%
basics
~20 s

Three [S] lines with the same source port and seq are one SYN retransmitted because nothing reached this capture point in reply. A refused attempt is one [S] answered within a round trip by [R.] acking the SYN's seq plus one.

open as a page

Does a Trivy 0.74 scan fail a CI job by default when it finds a CRITICAL vulnerability, and what makes it fail?

level: juniorimportance: must knowfreq 42%
basics
~10 s

No. Trivy 0.74 exits 0 whatever it finds; setting --exit-code to a non-zero value makes it exit with that code when any finding survives filtering, and --severity HIGH,CRITICAL decides which findings survive.

open as a page

With Trivy 0.74, how do you scan a folder of Terraform, Kubernetes and Dockerfiles for misconfigurations, and how do you read one finding?

level: juniorimportance: must knowfreq 32%
basics
~20 s

Run trivy config on the folder; it detects each file's type and applies the built-in trivy-checks bundle. Each failure gives severity, check ID, title, an AVD link and file lines. fs, image and repo skip this unless --scanners misconfig is set.

open as a page

With Trivy, how do you generate an SBOM for a container image and later re-check it against new advisories without pulling the image?

level: juniorimportance: must knowfreq 34%
basics
~20 s

Run trivy image with --format cyclonedx, spdx or spdx-json and --output to save the package inventory with the release. Later, trivy sbom on that file matches the recorded packages against Trivy's current vulnerability database, with no image pull.

open as a page

Why does Trivy 0.74 report different vulnerabilities for one service when you run `trivy fs`, `trivy repo`, `trivy image` and `trivy rootfs` against it?

level: middleimportance: must knowfreq 34%
basics
~20 s

Each Trivy subcommand enables a different set of analyzers: fs and repo read pre-build lockfiles, while image, rootfs and vm read post-build evidence such as OS package databases, installed package metadata, Go binaries and JARs, and skip most lockfiles.

open as a page

In Trivy 0.74, what do --severity and --ignore-unfixed each remove from a vulnerability report, and what do they leave alone?

level: middleimportance: must knowfreq 36%
basics
~20 s

--severity keeps only findings whose assigned severity is listed, all five levels by default; --ignore-unfixed drops findings whose status is not fixed. Both filter the finished report, so neither changes what was detected or how it was rated.

open as a page

In a CI job running `checkov -d .` over Terraform, what decides the exit code, and what does `--soft-fail` change?

level: juniorimportance: must knowfreq 42%
basics
~20 s

Checkov exits 0 when every check passed or was skipped and 1 when any check failed. With -s or --soft-fail it always exits 0 but still reports every failure, which is different from skipping a check, which never runs.

open as a page

In Checkov, how does a CKV2_ graph check differ from a CKV_ attribute check, and why can one bucket pass one and fail the other?

level: middleimportance: should knowfreq 24%
basics
~20 s

A CKV_ check reads one resource's own settings; a CKV2_ graph check tests how resources are connected, such as a bucket and its public access block. A clean bucket still fails when that linked resource is missing or unreferenced.

open as a page

You add Checkov to a Terraform repo with hundreds of existing failures — how do `--create-baseline` and `--baseline` gate only new ones, and where does the match leak?

level: seniorimportance: should knowfreq 21%
basics
~20 s

--create-baseline writes the current failures to a .checkov.baseline file; later runs with --baseline report only failures not in it. Matching uses resource address plus check ID, ignoring the file, so renames resurface old debt and same-named resources slip through.

open as a page

A Checkov scan of Terraform source passes a bucket whose `acl = var.acl` is public-read only in `prod.tfvars` — why, and how do you make Checkov see the production value?

level: seniorimportance: should knowfreq 15%
basics
~10 s

Checkov renders variables only from defaults, TF_VAR_ variables and Terraform's automatic tfvars files, so it judged the default. Pass --var-file prod.tfvars, or scan the plan JSON with the terraform_plan framework.

open as a page

Which Checkov behaviours silently narrow a scan of a repo holding Terraform, Helm charts and workflow files, so fewer resources get checked?

level: middleimportance: nice to knowfreq 17%
basics
~10 s

Checkov drops the helm framework when no helm 3 binary is installed, skips registry and git modules unless --download-external-modules true is set, ignores .terraform, and runs only the listed checks when --check is used.

open as a page

When you run `kics scan -p . -o ./kics-out` against a repository, what does KICS scan and which report files does it write?

level: juniorimportance: must knowfreq 22%
basics
~10 s

KICS detects which supported IaC types the path contains, runs the matching built-in Rego queries, prints the findings, and writes results.json into ./kics-out; other formats need --report-formats, and without -o no file is written.

open as a page

A KICS 2.2 scan in CI exits with status 40 — what does that mean, and how do `--fail-on` and `--ignore-on-exit` change it?

level: middleimportance: must knowfreq 19%
basics
~20 s

Status 40 means the worst counted finding was MEDIUM, with no counted CRITICAL (60) or HIGH (50). --fail-on lists which severities may set the status, and --ignore-on-exit can mute result codes, engine-error codes, or both.

open as a page

In KICS, how is a built-in query identified, and how do you run only selected queries or skip others in a scan?

level: middleimportance: should knowfreq 13%
basics
~10 s

Each built-in query is a folder holding query.rego and a metadata.json whose id is a UUID; that UUID is what --include-queries and --exclude-queries take, alongside --exclude-categories, --exclude-severities, --type and --queries-path.

open as a page

A KICS scan of your repository passes, yet a Terraform file with a known misconfiguration produced no finding — what in KICS's report and defaults do you check?

level: seniorimportance: should knowfreq 11%
basics
~20 s

Walk the pipeline: was the file collected (.gitignore, --exclude-paths, kics.config, the 5 MB cap, --type), parsed, evaluated (query filters, timeouts), resolved (tfvars, functions, custom modules), suppressed (kics-scan comments, -x), or merely not counted by --fail-on?

open as a page

In KICS, what do `kics-scan` comment directives do, and why does `# kics-scan ignore` inside a Terraform resource block have no effect?

level: middleimportance: nice to knowfreq 6%
basics
~20 s

kics-scan comments suppress results from inside the scanned file. ignore, enable= and disable= are file-level and work only above the first real line; ignore-line and ignore-block work anywhere, so an ignore inside a resource is disregarded.

open as a page

In GTFOBins, what does a listed executable tell a defender, and does being listed mean the program has a vulnerability?

level: juniorimportance: must knowfreq 52%
basics
~20 s

GTFOBins is a curated list of Unix-like executables whose ordinary features can bypass local restrictions on a misconfigured system. Its own page says it is not a list of exploits and the programs are not vulnerable per se.

open as a page

When you audit a Linux jump host against GTFOBins, which sudo and set-user-ID inventories do you compare, and how do you read a match?

level: middleimportance: must knowfreq 44%
basics
~20 s

Compare each account's sudo grants, the set-user-ID files and any file capabilities with GTFOBins entries under the matching context. A match shows which functions the grant hands over; it prompts a decision and is not itself a finding.

open as a page

In GTFOBins, what do a function and a context each describe, and how do you read one pairing of them as a risk statement?

level: middleimportance: should knowfreq 32%
basics
~20 s

A function names what an executable can be made to do, such as File read or Shell; a context names the condition that makes it work: Unprivileged, Sudo, SUID or Capabilities. One pairing says what a grant hands over.

open as a page

After a GTFOBins comparison of a host's sudo and set-user-ID lists finds no match, what can the audit still have missed, and why is that no clean bill?

level: seniorimportance: should knowfreq 30%
basics
~20 s

The comparison is by name, so it misses wrapper scripts and custom or vendor programs with the same functions, thinly covered file capabilities, container images and uncatalogued programs. Absence from GTFOBins is not evidence of safety.

open as a page

A GTFOBins comparison flags a sudo grant and a set-user-ID file on a Linux jump host: how do you remediate them, and how do you monitor what remains?

level: seniorimportance: should knowfreq 28%
basics
~20 s

Remove the grant or set-user-ID bit if nobody needs it; otherwise replace it with a narrow purpose-built command rather than relying on argument limits. Then log privileged execution of catalogued programs against a baseline, expecting legitimate administration to match.

open as a page

In the LOLBAS project, what is the catalogue, and what criteria must a file meet to be listed in it?

level: juniorimportance: must knowfreq 38%
basics
~20 s

LOLBAS is a community catalogue of Microsoft-signed Windows binaries, scripts and libraries that have extra, unexpected functionality useful to an attacker. It is a map of what allowed files can do, not a list of vulnerabilities.

open as a page

In a LOLBAS YAML entry, which fields tell a defender where the file lives, what privilege a command needs and how to detect it?

level: middleimportance: should knowfreq 14%
basics
~10 s

Full_Path lists where the file commonly sits. Each command row carries Category, Privileges, MitreID and OperatingSystem. The Detection block holds IOC, Sigma, Elastic, Splunk, BlockRule and Analysis references.

open as a page

What are the fifteen LOLBAS command categories, and which ones matter most when reviewing a Windows application allow-list?

level: middleimportance: should knowfreq 24%
basics
~20 s

LOLBAS files each command under one of fifteen categories: ADS, AWL bypass, Compile, Conceal, Copy, Credentials, Decode, Download, Dump, Encode, Execute, Reconnaissance, Tamper, UAC bypass and Upload. An allow-list owner typically reads Execute, AWL bypass, Download, Dump, Credentials and ADS first.

open as a page

Because the LOLBAS catalogue does not list a signed vendor utility, a change request calls it safe to allow; what is wrong with that reasoning?

level: seniorimportance: should knowfreq 26%
basics
~20 s

Absence from LOLBAS proves nothing. The catalogue is community-maintained and incomplete, covers only Microsoft-signed files by its criteria, and excludes some behaviour on purpose. A vendor-signed tool is outside it by definition, so review the tool's own functions.

open as a page

Using the LOLBAS catalogue, how would you decide what to block, constrain or monitor when trimming Microsoft-signed tools on 800 Windows admin workstations?

level: seniorimportance: should knowfreq 32%
basics
~20 s

Join the catalogue to your inventory and execution logs, then decide per file: block what nobody needs, constrain what one group needs, monitor what is used broadly. Weigh category, privileges and need, and test in audit mode first.

open as a page