Back to skill

Security audit

islamic-inheritance-calculator

Security checks for vulnerabilities and agentic risk

Overview

This offline inheritance guide requests relevant information and contains no hidden execution, data-transfer, or account-access instructions.

Use anonymized family details where possible. Treat results as educational and confirm any actual distribution with a qualified scholar and an adviser familiar with local inheritance law.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (12)

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 89)May include surrounding context.

md
"Descendant" below = a child or a son's child (any depth through males), male or female. A daughter's children are not "descendants" here (they are distant kindred).

| Heir                                                    | Share                                 | Condition                                                                                     | Evidence                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 91)May include surrounding context.

md
---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Husband                                                 | 1/2                                   | no descendant                                                                                 | `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Husband                                                 | 1/4                                   | with descendant                                                                               | `[QURAN]` 4:12

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 92)May include surrounding context.

md
| `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Husband                                                 | 1/4                                   | with descendant                                                                               | `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Wife (1-4 wives share equally)                          | 1/4                                   | no descendant                                                                                 | `[QURAN]` 4:12

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 93)May include surrounding context.

md
| `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Wife (1-4 wives share equally)                          | 1/4                                   | no descendant                                                                                 | `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Wife                                                    | 1/8                                   | with descendant                                                                               | `[QURAN]` 4:12

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 94)May include surrounding context.

md
| `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Wife                                                    | 1/8                                   | with descendant                                                                               | `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Father                                                  | 1/6                                   | with a male descendant                                                                        | `[QURAN]` 4:11

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 95)May include surrounding context.

md
| `[QURAN]` 4:12                                                                                                                                                                                                                                                                     |
| Father                                                  | 1/6                                   | with a male descendant                                                                        | `[QURAN]` 4:11                                                                                                                                                                                                                                                                     |
| Father                                                  | 1/6 + residue                         | with only female descendants                                                                  | `[QURAN]` 4:11 + `[SAHIH HADITH]` "Give t

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 99)May include surrounding context.

md
s blocked) | `[QURAN]` 4:11; two siblings suffice: `[SAHABA]` majority, `[IJMA]` of later scholars (Ibn Abbas held three)                                                                                                                                                                       |
| Mother                                                  | 1/3                                   | no descendant, fewer than 2 siblings                                                          | `[QURAN]` 4:11                                                                                                                                                                                                                                                                     |
| Mother                                                  | 1/3 of the remainder after the spouse | ONLY heirs are spouse + father + mother (Umariyyatan)                                         | `[SAHABA]` ruling of Umar, agreed by Uthm

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 101)May include surrounding context.

md
| `[SAHABA]` ruling of Umar, agreed by Uthman, Zayd, Ibn Mas'ud; `[MADHHAB]` adopted by all four schools. Ibn Abbas gave 1/3 of the whole                                                                                                                                            |
| Daughter (1)                                            | 1/2                                   | no son                                                                                        | `[QURAN]` 4:11                                                                                                                                                                                                                                                                     |
| Daughters (2+)                                          | 2/3 shared                            | no son                                                                                        | `[QURAN]` 4:11 (for "more than two"); two

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 103)May include surrounding context.

md
| `[QURAN]` 4:11 (for "more than two"); two daughters take 2/3 by `[HADITH]` the daughters of Sa'd ibn al-Rabi' (Abu Dawud 2891, Tirmidhi 2092, Ibn Majah 2720 - graded hasan by Tirmidhi and al-Albani, some graders weaken it), by analogy with two sisters in 4:176, and `[IJMA]` |
| Daughter(s) with son(s)                                 | residuary, male = 2 females           |                                                                                               | `[QURAN]` 4:11                                                                                                                                                                                                                                                                     |
| Son's daughter(s)                                       | 1/2 (one) / 2/3 (2+)                  | no children of the deceased                                                                   | `[IJMA]` (son's children stand in place o

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 106)May include surrounding context.

md
| `[SAHIH HADITH]` Ibn Mas'ud reporting the Prophet's ﷺ ruling (Bukhari 6736)                                                                                                                                                                                                        |
| Full sister (1)                                         | 1/2                                   | no descendant male, no father (grandfather: see 7.3), no full brother, no daughter            | `[QURAN]` 4:176                                                                                                                                                                                                                                                                    |
| Full sisters (2+)                                       | 2/3 shared                            | same conditions                                                                               | `[QURAN]` 4:176

Context Window Stuffing

Medium
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.

Content

Scanner excerpt · SKILL.md (reported line 107)May include surrounding context.

md
| `[QURAN]` 4:176                                                                                                                                                                                                                                                                    |
| Full sisters (2+)                                       | 2/3 shared                            | same conditions                                                                               | `[QURAN]` 4:176                                                                                                                                                                                                                                                                    |
| Paternal half-sister(s)                                 | 1/2 / 2/3                             | as full sister, and no full sibling                                                           | `[QURAN]` 4:176; `[IJMA]` that 4:176 cover

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · SKILL.md (reported line 105)May include surrounding context.

md
e none)                                                                                                                                                                                                           |
| Son's daughter(s)                                       | 1/6 shared                            | with exactly ONE daughter and no son ("completing 2/3")                                       | `[SAHIH HADITH]` Ibn Mas'ud reporting the Prophet's صلى lللo عليo وسلم ruling (Bukhari 6736)                                                                                                                                                                                                        |
| Full sister (1)                                         | 1/2                                   | no descendant male, no father (grandfather: see 7.3), no full brother, no daughter            | `[QURAN]` 4:176

Static analysis

No suspicious patterns detected.