Wireless Sensor Networks · Study deck

Selfish and Malicious Nodes

Picture five battery nodes passing readings toward a base.

Packet Pete is your guide for this deck.

node-behaviorselfish-nodesmalicious-nodes
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: That protects the affected path, but it can also reward the free rider if the node is now excused from relay work while its own traffic still moves through other neighbors.
  • Explain: When the record stops arriving, the recovery review should preserve the last accepted reading and show the current source as unavailable until a complete new record or validated stored record arrives.
  • Explain: If a node has 30 relay opportunities, forwards 4, and still delivers 12 of 12 own packets while link and queue records stay normal, reputation should fall for the relay role.
iotclass.org

Major section

Start With the Field Story · In 60 Seconds

One node sends its own data but often fails to pass a neighbor's data.

  • That pattern matters, yet it does not reveal intent by itself.
  • A route around the node may protect delivery but use more energy.
  • Removing it may stop harm but also remove the only path.

Key terms

Selfishness
Selfishness is easier to review honestly once its incentive is named rather than treated as pure misbehavior.

Why it matters

Selfish and malicious nodes can look similar at first because both can withhold, delay, or distort traffic.

iotclass.org

Major section

Minimum Viable Understanding · Classification Scope

Selfish and malicious labels are hypotheses supported by evidence, not guesses about motive.

  • Selfish behavior usually preserves the node's own traffic while avoiding shared duties.
  • Classification should record the expected role, observed behavior, corroborating views, benign checks, action, confidence, and retest trigger.
  • The label should be useful to the next routing or validation decision.

Key terms

If the evidence
If the evidence is thin, use a suspect or unknown label from the broader classification chapter instead of claiming intent.
iotclass.org

Major section

Evidence Map · Distinguishing Selfish From Malicious

The difference is how the evidence fits together.

  • Peer reports, path records, and gateway logs can corroborate the pattern.
  • The resulting hypothesis may be selfish, malicious, suspect, or unknown.
  • The chosen mitigation must fit the observed risk, and a retest trigger states what could confirm or change the label.
  • Selfish behavior is a cooperation problem.

Key terms

Malicious behavior
Malicious behavior is a harmful-interference problem.
Evidence map for classifying selfish and malicious nodes: expected role, observed behavior, corroborating views, and benign checks converge on a classification hypothesis, then a mitigation fit and a retest trigger.
Evidence map for classifying selfish and malicious nodes: expected role, observed behavior, corroborating views, and benign checks converge on a classification hypothesis, then a mitigation fit and a retest trigger.
iotclass.org

Major section

Cooperation Incentives and Enforcement

Selfish forwarding is a cooperation problem.

  • A node can save energy by dropping relay traffic while still using other nodes to carry its own packets.
  • A watchdog can overhear that a next hop did not forward, and a pathrater can route around that next hop.
  • Deterrence requires a consequence that makes cooperation the better local choice.

Why it matters

Malicious behavior needs stronger controls because an attacker may accept personal cost to damage the network.

Sensor behavior trust review loop from expected role through observations, evidence checks, trust update, bounded action, and retest trigger.
Sensor behavior trust review loop from expected role through observations, evidence checks, trust update, bounded action, and retest trigger.
iotclass.org

Major section

Cooperation Incentives and Enforcement (continued)

That protects the affected path, but it can also reward the free rider if the node is now excused from relay work while its own traffic still moves through other neighbors.

  • They expose the two conditions that the surrounding argument must keep together.
  • That contrast is the visual's teaching load: Sensor behavior trust review loop from expected role through observations, evidence checks, trust update, bounded action, and retest trigger.
  • Credit systems make the incentive arithmetic explicit.
iotclass.org

Major section

Cooperation Incentives and Enforcement (continued)

The chapter can now use cooperation incentives and enforcement without dropping the conditions shown here.

  • If a node has 30 relay opportunities, forwards 4, and still delivers 12 of 12 own packets while link and queue records stay normal, reputation should fall for the relay role.
  • If the same node has a low-battery alarm and queue overflow during a known interference window, the safer label may remain suspect until the pattern repeats after recovery.
  • A policy might charge one credit to inject an own packet and award one credit for forwarding a neighbor's packet.
iotclass.org

Major section

Cooperation Incentives and Enforcement (continued)

A node that wants to send 20 of its own messages must forward roughly 20 qualifying packets or receive a documented maintenance allowance.

  • A sinkhole or wormhole can forward enough traffic to preserve reputation while bending topology or observing data.
  • Pair cooperation enforcement with route-metric validation, authenticated identities, multipath checks for critical traffic, and time-decayed evidence so old good behavior cannot permanently mask recent harm.
  • Malicious behavior needs stronger controls because an attacker may accept personal cost to damage the network.
iotclass.org

Major section

Common Attacks and Effects

Behind the behavior labels are a handful of well-known node attacks.

  • Selfish (free-riding): The node uses the network for its own traffic but skips relay duty to save energy — it silently drops packets it was supposed to forward.
  • Defense: a watchdog (neighbors overhear whether a node actually forwards) feeding a reputation/trust score that routes around persistent free-riders.
  • Defense: authenticated routing metrics and geographic routing that does not trust advertised cost alone.
iotclass.org

Major section

Common Attacks and Effects (continued)

Blackhole: The node advertises an attractive route — often "shortest path to the sink" — to pull traffic toward itself, then drops everything it should forward.

  • Defense: multipath so critical messages have a second route, plus per-flow acknowledgement monitoring.
  • Sybil: One physical node fabricates many identities to stuff reputation votes, win routing decisions, or defeat redundancy (every "replica" you trusted is really one attacker).
  • Defense: bind identity to a key, or a radio-resource test so one node cannot cheaply mint many.
iotclass.org

Major section

Review Workflow · Production Trust Record

The review loop keeps classification conservative.

  • It starts with what the system expected, checks what actually happened, and ends with a retest trigger rather than a permanent judgment.
  • The reference window shows 30 forwards from 30 relay requests, or 100%.
  • The same node delivers all 12 of its own packets while link and queue records look normal.

Why it matters

That gap supports a selfishness hypothesis because shared relay work is weak while its own traffic succeeds.

Forwarding trace contrasts 30-of-30 cooperative relays with 4-of-30 observed forwards while the same node delivers 12-of-12 own packets, supporting a selfishness hypothesis without proving motive.
Forwarding trace contrasts 30-of-30 cooperative relays with 4-of-30 observed forwards while the same node delivers 12-of-12 own packets, supporting a selfishness hypothesis without proving motive.
iotclass.org

Major section

Worked Review: Relay Concern · Common Review Findings

The monitor sees that the node continues to send its own readings, but several neighbor paths show missing forwarded messages.

  • Neighbor observations agree that the node receives relay requests.
  • The schedule record shows no expected sleep period, and there is no recent role change.
  • The action should match the confidence.

Key terms

Identity information
Identity information is inconsistent across observers.
iotclass.org

Major section

Limited-Capability And Recovery Cases

Some weak behavior is not selfish or malicious.

  • A simple sensor node may be silent, recently restarted, unable to expose rich diagnostics, or returning with stored readings after a gap.
  • Scenario: a simple condition node sends periodic readings to a gateway.
  • The gateway stops receiving messages.
  • Observation: The current reading is missing.
iotclass.org

Major section

Limited-Capability And Recovery Cases (continued)

Related sources remain available, so the silence appears isolated.

  • Concrete example: a bin-fill node has no rich diagnostics; it normally sends a fill-level record and battery flag to a gateway.
  • The last accepted reading is no longer fresh enough for the application decision.
  • Recovery action: Fresh records may update the current decision.
iotclass.org

Major section

Limited-Capability And Recovery Cases (continued)

When the record stops arriving, the recovery review should preserve the last accepted reading and show the current source as unavailable until a complete new record or validated stored record arrives.

  • Evidence check: The monitor confirms the expected schedule, records the last accepted observation, and checks related sources.
  • Recovery action: The dashboard marks this source unavailable and uses a fallback evidence path for the affected decision.
  • Missing intervals remain marked as missing.
iotclass.org

Major section

Limited-Capability And Recovery Cases (continued)

Retest trigger: Retest when the node sends a new complete reading, returns with buffered records, changes role, changes schedule, or remains silent past the review rule.

  • Scenario: a simple node returns after a silent interval and sends stored readings.
  • Observation: The node is communicating again, but the records cover an interval when the gateway had no live messages.
  • Older records update the history only if their validity checks pass.
iotclass.org

Major section

Key Takeaway · Concept Relationships

Selfish and malicious behavior must be handled through trust, monitoring, isolation, and recovery controls rather than assuming every node cooperates.

  • Behavior Taxonomy provides the broader vocabulary for healthy, suspect, selfish, malicious, and limited-evidence behavior.
  • Sensor Node Behavior Classification supplies the evidence-first process used before intent-heavy labels are assigned.
  • WSN Energy and Duty Cycling explains why schedules and topology roles matter when judging missing relay behavior.
iotclass.org

Deck summary

Key takeaways

One node sends its own data but often fails to pass a neighbor's data.

  • Selfish and malicious labels are hypotheses supported by evidence, not guesses about motive.
  • The difference is how the evidence fits together.
  • Selfish forwarding is a cooperation problem.
  • That protects the affected path, but it can also reward the free rider if the node is now excused from relay work while its own traffic still moves through other neighbors.
iotclass.org

Retrieval practice

Recall check 1 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q1A node forwards its own packets normally but silently drops most traffic it is asked to relay for others. Which classification best fits first?

AMalicious, because selective dropping could be intended to disrupt neighbors' traffic
BSelfish, because it avoids shared relay work while protecting its own traffic
CHealthy, because its own traffic is delivered without error
DSilent, because peers receive little of the relay traffic they expect
Show answer

Answer: B Protecting one's own traffic while dodging shared relay work is the selfish hypothesis; malicious needs active-disruption evidence.

iotclass.org

Retrieval practice

Recall check 2 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q2A WSN uses a watchdog to detect non-forwarding nodes and a pathrater to route around them. Why might this fail to stop selfish behavior, and what actually deters it?

ARouting around it can reward free riding; deterrence needs reputation or credits that make defection costly.
BAdd link encryption and keep routing around it; confidentiality will make every dropped forwarding duty visible.
CLower its sampling rate and keep accepting its packets; saving energy removes the reason to inspect forwarding.
DBlackhole every weak neighbor immediately; permanent isolation is the only way to make cooperation stable.
Show answer

Answer: A Selfish forwarding is a tragedy of the commons.

iotclass.org

Retrieval practice

Recall check 3 of 3

Packet Pete says: answer from memory, then check your reasoning.

Q3A relay node keeps sending its own readings, but repeatedly fails to forward neighbor messages. Related nodes confirm that it received the relay requests, and the behavior improves when forwarding is explicitly monitored. Which classification is best supported?

AMalicious behaviour: missing relays alone prove intentional disruption.
BDumb-node failure: forwarding stops because the node cannot report.
CHealthy behaviour: sending own readings proves the relay is working.
DSelfish behaviour: it sends own data but evades the shared relay duty.
Show answer

Answer: D Selfish-node classification depends on an evidence pattern: own traffic is preserved, shared duties are avoided, benign causes are checked, and behavior may improve when obligations are visible.

iotclass.org

Print reference

Answers

Answer key.

  1. B · Protecting one's own traffic while dodging shared relay work is the selfish hypothesis; malicious needs active-disruption evidence.
  2. A · Selfish forwarding is a tragedy of the commons.
  3. D · Selfish-node classification depends on an evidence pattern: own traffic is preserved, shared duties are avoided, benign causes are checked, and behavior may improve when obligations are visible.
iotclass.org