Interpret indexed service evidence, assess an authorized inventory and verify remediation.
The focus of this experiment is to interpret instructor-provided exposure-inventory records and search filters. Students then compare authorized asset observations with expected service metadata, and explain stale indexing, scope and limitations without probing third-party systems. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.
Learning objectives
Interpret instructor-provided exposure-inventory records and search filters.
Compare authorized asset observations with expected service metadata.
Explain stale indexing, scope and limitations without probing third-party systems.
Record the relevant inputs, intermediate states and final verification result before changing the reference configuration.
Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.
Expected learning outcomes
On completion, students can interpret instructor-provided exposure-inventory records and search filters, compare authorized asset observations with expected service metadata, and explain stale indexing, scope and limitations without probing third-party systems.
Required deliverables
Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing explain stale indexing, scope and limitations without probing third-party systems. Separate predicted values from observations.
Prerequisite knowledge and related learning
Review the following catalogue prerequisites before starting. After completion, continue to Webcam security — exposure, authentication and privacy.
The specified isolated laboratory environment, with local synthetic inputs and authorized services only. Use the experiment-specific setup and verification instructions.
Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.
Scientific concept map: Approved scope — Owned asset range; Indexed banners — Historical observations; Filters — Service and product; Owner verification — Firmware / configuration; Remediation — Recheck after refresh.
Scientific foundations and analytical reasoning
Indexed banners are historical observations, not proof of live vulnerability. Scoped searches and owner verification establish the evidence boundary.
Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.
Scientific theory · Indexed observations and remediation
Shodan indexes service observations collected at particular times. A banner can report product, port and version, but may be stale, incomplete or misleading. Exposure assessment requires an authorized scope and owner-verified asset configuration; vulnerability applicability needs exact model and version evidence.
Worked example and engineering interpretation
Compare an authorized inventory's indexed legacy management service with its current local configuration after remediation. A stale banner can remain after a service is disabled. Record observation time, approved scope, local confirmation and subsequent refresh; no access attempt to third-party devices is needed.
Engineering principles · additional worked teaching example
An exposure index records historical observations, not live ownership or vulnerability proof. Search filters should be restricted to approved CIDR; offline fixtures use documentation addresses. A result may be stale or duplicated across observations.
From theory to experiment
Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.
How to investigate Shodan — authorized IoT exposure inventory
Shodan is a search engine for indexed service observations rather than web-page text. A banner is historical metadata collected when a service was observed. IP identifies a network endpoint; port identifies a service endpoint; protocol defines communication rules; hostname is a DNS label; organization is attributed network ownership; ASN identifies a routing domain. Exposure is not proof of vulnerability. Verify configuration, exact version and advisory applicability with the asset owner. Search data may be stale or incomplete.
Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.
Experiment-specific guided practice
Objective: Interpret indexed service evidence, assess an authorized inventory and verify remediation.
Indexed service evidence and search filters — complete its numbered steps and record the requested evidence.
Authorized remediation and recheck — complete its numbered steps and record the requested evidence.
Compare observations with the reference checks and submit the required evidence.
Open Shodan in a new browser tab. Sign in if the site requests it. Obtain the instructor-approved public address range or owner-approved inventory export first. If no such scope is available, use the simulator and provided fictional banner below instead.
Reference check: Gateway port 23 initially matches one record. After three refresh ticks G1 disappears. Local verification remains necessary.
Model boundary: Offline documentation-range inventory; live search only within approved owned scope. Index evidence can be stale.
Independent task and submission evidence
Run the 11 exact offline queries. Record query, matching count, anonymized asset IDs, observation date, service, owner-confirmed state and uncertainty. Explain why B can remain indexed after closure. Submit your table and a screenshot of the offline output. For a live exercise, use only an instructor-approved actual CIDR; no interaction with indexed hosts.
Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.
Indexed device intelligence
Shodan indexes observations of Internet-accessible services, including banners, service ports, product clues, organizations and timestamps. A keyword search matches indexed text; structured filters restrict the set. A banner may be incomplete or stale and does not by itself establish a vulnerability.
Scope and evidence
Use an instructor-approved address range or a sanitized inventory export. Compare a scoped baseline with an IoT-related keyword condition, record observation time and inspect the evidence. The offline inventory uses reserved documentation addresses, so it does not represent live devices.
Remediation workflow
Verify the asset and firmware with its owner, check relevant advisories, and prioritize exposed management services or shared credential configuration. Record the approved changes and independently verify the local configuration. Recheck the index later; a delayed or missing record alone is not proof of remediation.
Algorithm structure and data flow. Use the simulation to inspect the corresponding numerical transformations.
Worked engineering reasoning and boundary conditions
Public exposure indexes contain previously observed metadata, not guaranteed live state or authorization. Restrict inquiry to instructor-provided records or explicitly approved assets. Sample timestamps and deduplication affect counts.
Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.
Concept animation · operation pathway
Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.
Step 1 of 4 · Synthetic observations
Synthetic observations
Synthetic observations
3 records
Deduplicate
Synthetic observations
3 records
Deduplicate
2 endpoint pairs
Timestamp
Synthetic observations
3 records
Deduplicate
2 endpoint pairs
Timestamp
record observation age
Report
Synthetic observations
3 records
Deduplicate
2 endpoint pairs
Timestamp
record observation age
Report
aggregate metadata; no unauthorized contact
Teaching example only; inspect live calculations or real practical evidence separately.
Interactive flashcards
Self-rated study progress is stored locally, not used for official grades.
Browse all explanationsWhat does a Shodan banner represent?
An indexed observation of a service, potentially stale.
What scope is permitted?
Owned or explicitly authorized assets only.
What does an exposed port establish?
Reachability at observation time, not exploitability.
Why recheck after remediation?
To confirm local change and eventual index refresh.
What is a documentation address range?
A reserved example network, not a real scan target.
Why verify exact firmware?
Advisory applicability depends on model and version.
Where do you begin the live authorized exercise?
Open shodan.io and confirm the instructor-approved scope.
What does the search bar accept?
Banner keywords and structured property filters.
What does net scope restrict?
The address range included in the search.
Why begin with an inventory-only query?
To establish the indexed baseline before narrowing by IoT keyword.
What fields should you record from a banner?
Service, port, product, version if present and observation time.
What does a default-credential warning in a fictional banner imply?
Investigate owner configuration; do not attempt login.
What does TCP port 23 typically represent?
Telnet, a legacy cleartext management protocol.
Why distinguish observed banners from verified facts?
Banners may be stale, incomplete or misleading.
What is NVD used for in this lab?
Checking applicable vulnerability information for an exact known product/version.
Why might a corrected asset still appear in Shodan?
Index updates may lag behind local remediation.
An index shows a service that the owner has already disabled. What is the likely explanation?
An indexed observation can be stale. Verify the local configuration and wait for an index refresh.
Which facts should be recorded before deciding a vulnerability applies?
Exact model, firmware, service configuration, timestamp and applicable advisory conditions.
Is a result count a reliable estimate of all IoT deployments?
No. It depends on coverage, query conditions, observed banners and indexing time.
Virtual laboratory
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
For 12 owned indexed records, 5 legacy services and 3 confirmed insecure configurations, calculate legacy fraction and confirmed fraction. Distinguish denominators.
Engineering method — An exposure index records historical observations, not live ownership or vulnerability proof. Search filters should be restricted to approved CIDR; offline fixtures use documentation addresses. A result may be stale or duplicated across observations. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Construct a remediation matrix with observation time, owner-verified configuration, advisory applicability and index refresh; explain why a stale record can persist after closure.
Engineering method — An exposure index records historical observations, not live ownership or vulnerability proof. Search filters should be restricted to approved CIDR; offline fixtures use documentation addresses. A result may be stale or duplicated across observations. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Evidence analysis
Evidence analysis · Independent work
Offline dataset has four records inside approved 192.0.2.0/24, two with port443; one outside scope also has443. How many remain after scope then port filter? What must not be inferred?
Evidence analysis — An exposure index records historical observations, not live ownership or vulnerability proof. Search filters should be restricted to approved CIDR; offline fixtures use documentation addresses. A result may be stale or duplicated across observations. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Foundational · Apply the principle
Independent theoretical exercise · NS03-01
Three provided records share two unique IP/port pairs. What is exposure count if counting distinct endpoints?
Intermediate · Calculate or trace
Independent theoretical exercise · NS03-02
A provided record is 90 days old. Can it establish current exposure?
Intermediate · Interpret the result
Independent theoretical exercise · NS03-03
Two records show different device labels for the same endpoint. How should they be handled?
Advanced · Analyze a condition
Independent theoretical exercise · NS03-04
A sample has 12 endpoints; 3 report TLS. Calculate fraction and interpret.
Advanced · Diagnose or compare
Independent theoretical exercise · NS03-05
Why is searching a public index not permission to interact with a device?
Challenging · Engineering verification
Independent theoretical exercise · NS03-06
Design a privacy-preserving report from provided synthetic records.
Activity sequence
Plan your authorized investigation.
Collect and interpret your own indexed evidence.
Compare the separate virtual index-refresh experiment and submit findings.
Scientific experimental protocol
Research question: Interpret indexed service evidence, assess an authorized inventory and verify remediation.
Independent variables: Product, port filter, remediation and index age. Dependent observations: Matched records and index delay.
Hold the virtual inventory fixed; vary one setting at a time and compare against baseline. Repeat each trial after reset.
Guided Shodan investigation · start here
Prerequisites: IPv4 CIDR, IP address, port, client/server protocol and basic authentication. Shodan indexes historical service observations and metadata; unlike a conventional web search engine, it returns indexed services, not just web pages. A banner may include a product/version, IP, port, protocol, hostname (DNS name), organization, ASN (routing-domain identifier), country and collection timestamp. None alone establishes a current vulnerability.
Scope gate: use the fictional dataset below first. The reserved addresses 192.0.2.0/24 and 198.51.100.0/24 and sample ASN/name are documentation fixtures, not real targets. The offline simulator does not contact the Internet. For live work, use only a written, instructor-approved owned CIDR or a sanitized owner-provided export; never search outside that scope, connect to an indexed service, try credentials, or exploit a third-party system.
Activity A · exact search and filtering
Start with the first query in the table. Copy it into the offline search field, select Run search and record count and anonymized IDs.
Run each next query separately. The scope prefix must remain unchanged. Observe which metadata changes the selected records. Quoted values with spaces are treated as one filter.
Run the last combined query and explain why only records satisfying both filters remain. Keep the dataset and scope fixed; the filter is the independent variable and count is the dependent variable.
Compare collection date with owner-confirmed state. Record the fictional stale record, rather than claiming the indexed port is currently open.
Copyable offline query
What it teaches
net:192.0.2.0/24
Restrict the search to the approved fictional network.
net:192.0.2.0/24 port:443
Select indexed HTTPS-like service port metadata, not confirmed security.
net:192.0.2.0/24 country:JO
Filter by recorded country; not proof of physical location.
Obtain instructor approval for the exact owned public CIDR. In the top search box enter net:YOUR_APPROVED_CIDR, replacing only that placeholder. If unavailable, do not conduct a live search; use Activity A or an approved sanitized export.
Record query, UTC observation date, result count and banner collection dates. For the next query append port:443 within the same approved scope. Compare counts without broadening scope. Apply other filters only for metadata present in your authorized inventory; if a filter is unavailable record the restriction.
Use owner-provided configuration and exact firmware documentation to confirm whether a reported service remains enabled and whether an advisory applies. Record unknown when evidence is unavailable. Never infer default credentials or exploitability from a banner. No interaction with indexed hosts is needed.
Evidence register and completion
Query / UTC date
Matches / anonymized ID
Banner date / service metadata
Owner-confirmed configuration
Advisory applicability / uncertainty
Baseline
Record
Record
Record
Record
Changed filter
Record
Record
Record
Record
Combined filters
Record
Record
Record
Record
Submit the completed table for all 11 offline queries, a screenshot of the offline result, and a paragraph identifying one limitation and an owner-controlled remediation/recheck plan. If conducting a live exercise, submit only redacted records; distinguish indexed observation from owner verification. A zero result is not proof of security. A strong conclusion cites the query, date, count and verification evidence; a weak conclusion simply labels the device insecure.
Export your own notes, record limitations and distinguish the virtual model from real measurements.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: Offline documentation-range inventory; live search only within approved owned scope. Index evidence can be stale. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# NS03 · Shodan — authorized IoT exposure inventory
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## Theory and purpose
Shodan is a search engine for indexed service observations rather than web-page text. A banner is historical metadata collected when a service was observed. IP identifies a network endpoint; port identifies a service endpoint; protocol defines communication rules; hostname is a DNS label; organization is attributed network ownership; ASN identifies a routing domain. Exposure is not proof of vulnerability. Verify configuration, exact version and advisory applicability with the asset owner. Search data may be stale or incomplete.
**Execution boundary:** local computational model or loopback as explicitly described; not physical measurements or external service certification. Run cells in order.
02Instructions · Markdown
## 1. Define the experiment mechanism and inputs
03Python · executable cell
PYTHON · Code cell
# =====================================================================
# NS03 | Code cell 01 | Shodan — authorized IoT exposure inventory
# Purpose: 1. Define the experiment mechanism and inputs
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import ipaddress,shlex
from datetime import datetime
# RFC documentation addresses and example names only; no network requests.
records=[
{'asset':'A','ip':'192.0.2.10','port':'443','country':'JO','org':'Example Lab','hostname':'gateway.example','product':'Example HTTP','os':'Linux','asn':'AS64496','date':'2026-11-15','owner':'enabled'},
{'asset':'B','ip':'192.0.2.11','port':'80','country':'JO','org':'Example Lab','hostname':'sensor.example','product':'Example HTTP','os':'Linux','asn':'AS64496','date':'2026-10-20','owner':'disabled'},
{'asset':'C','ip':'192.0.2.12','port':'443','country':'JO','org':'Example Lab','hostname':'panel.example','product':'Example Dashboard','os':'Other','asn':'AS64496','date':'2026-10-18','owner':'enabled'},
{'asset':'OUT','ip':'198.51.100.10','port':'443','country':'US','org':'Other Example','hostname':'outside.example','product':'Example HTTP','os':'Linux','asn':'AS64497','date':'2026-11-20','owner':'unknown'}]
# Set APPROVED for the next computation or reference condition.
APPROVED=ipaddress.ip_network('192.0.2.0/24')
# Define the reusable operation search; keep its logic separate from the trial.
def search(query):
parts=[tuple(token.split(':',1)) for token in shlex.split(query)]
if ('net',str(APPROVED)) not in parts: raise ValueError('Use the fictional approved scope')
allowed={'net','port','country','org','hostname','product','os','asn','before','after'}
if any(k not in allowed for k,v in parts): raise ValueError('Unsupported filter')
result=[]
for r in records:
if ipaddress.ip_address(r['ip']) not in APPROVED: continue
ok=True
for key,value in parts:
if key=='net': ok &= ipaddress.ip_address(r['ip']) in ipaddress.ip_network(value)
elif key in ('before','after'):
date=datetime.strptime(value,'%d/%m/%Y').date(); seen=datetime.fromisoformat(r['date']).date()
ok &= seen<date if key=='before' else seen>date
else: ok &= r[key].casefold()==value.casefold()
if ok: result.append(r)
return result
## 2. Execute the reference and inspect observations
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# NS03 | Code cell 02 | Shodan — authorized IoT exposure inventory
# Purpose: 2. Execute the reference and inspect observations
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set queries for the next computation or reference condition.
queries = ['net:192.0.2.0/24', 'net:192.0.2.0/24 port:443', 'net:192.0.2.0/24 country:JO', 'net:192.0.2.0/24 org:"Example Lab"', 'net:192.0.2.0/24 hostname:gateway.example', 'net:192.0.2.0/24 product:"Example HTTP"', 'net:192.0.2.0/24 os:Linux', 'net:192.0.2.0/24 asn:AS64496', 'net:192.0.2.0/24 after:01/11/2026', 'net:192.0.2.0/24 before:01/11/2026', 'net:192.0.2.0/24 port:443 after:01/11/2026']
# Repeat the same operation for each configured input so observations are comparable.
for query in queries:
found=search(query)
print(query,'→',len(found),[r['asset'] for r in found])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert len(search(queries[0]))==3 and len(search(queries[1]))==2
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert all(r['asset']!='OUT' for q in queries for r in search(q))
# =====================================================================
# NS03 | Code cell 03 | Shodan — authorized IoT exposure inventory
# Purpose: 3. Compare the controlled conditions
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Record the indexed observation separately from the fictional owner verification.
for r in search(queries[0]):
print(r['asset'],r['date'],r['port'],r['product'],'owner:',r['owner'],'vulnerability: not established')
## Independent investigation and submission
Run the 11 exact offline queries. Record query, matching count, anonymized asset IDs, observation date, service, owner-confirmed state and uncertainty. Explain why B can remain indexed after closure. Submit your table and a screenshot of the offline output. For a live exercise, use only an instructor-approved actual CIDR; no interaction with indexed hosts.
| Trial | Changed input | Fixed settings | Predicted output | Observed output | Explanation |
|---|---|---|---|---|---|
| A | baseline | | | | |
| B | one change | | | | |
| A repeat | baseline | | | | |
Save outputs and state one limitation.
Authorized practical assessment
Use only institution-approved asset inventory exports or your own isolated camera. Obtain written scope before using external services. Verify local configuration and exact firmware against vendor advisories. Do not attempt access to third-party devices. No API key is required for the simulator.