Back to skill

Security audit

竞品 GEO 差距分析

Security checks for vulnerabilities and agentic risk

Overview

The skill’s page analysis and optional publishing workflow are disclosed, purpose-aligned, and bounded by user control.

Provide only authorized files and trusted public URLs, and protect reports containing private inputs. Optional browser access uses your existing login. Review the separate [aimeGeo integration](https://github.com/aiispower/aimegeo) before enabling it, and approve final content and target accounts before publishing.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 394)May include surrounding context.

python
source = root / 'input.json'
            source.write_text(json.dumps({'comparison': {'question': '合成产品页的抓取规则比较',
                'page_slots': ['product']}, 'sites': sites, 'ai_samples': []}), encoding='utf-8')
            result = subprocess.run([sys.executable, str(ROOT / 'scripts/compare_pages.py'),
                '--input', str(source), '--out', str(root / 'out')], capture_output=True, text=True, timeout=15)
            self.assertEqual(result.returncode, 0, result.stderr)
            report = json.loads((root / 'out/evidence.json').read_text())

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 532)May include surrounding context.

python
with self.assertRaisesRegex(mod.InputError, message):
                            mod.validate(data)
                        path.write_text(json.dumps(data, ensure_ascii=False), encoding="utf-8")
                        run = subprocess.run([sys.executable, str(ROOT / "scripts/compare_pages.py"),
                                              "--input", str(path), "--out", str(out)],
                                             cwd=tmp, capture_output=True, text=True, check=False)
                        self.assertEqual(run.returncode, 2, run.stderr)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 574)May include surrounding context.

python
site["pages"] = [{"slot": "product", "url": url + path}]
                path = Path(tmp) / "input.json"
                path.write_text(json.dumps(self.data, ensure_ascii=False), encoding="utf-8")
                run = subprocess.run([sys.executable, str(ROOT / "scripts/compare_pages.py"),
                                      "--input", str(path), "--out", tmp, "--fetch"],
                                     cwd=tmp, capture_output=True, text=True, check=False)
                self.assertEqual(run.returncode, 0, run.stderr)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 629)May include surrounding context.

python
site['pages'] = [{'slot': 'product', 'url': origin + path}]
                source, out = Path(tmp) / 'input.json', Path(tmp) / 'out'
                source.write_text(json.dumps(self.data), encoding='utf-8')
                run = subprocess.run([sys.executable, str(ROOT / 'scripts/compare_pages.py'), '--input', str(source),
                    '--out', str(out), '--fetch'], capture_output=True, text=True, timeout=20)
                self.assertEqual(run.returncode, 0, run.stderr)
                self.assertEqual(run.stderr, '')

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 771)May include surrounding context.

python
def test_cli_csv_json_from_arbitrary_working_directory(self):
        with tempfile.TemporaryDirectory() as tmp:
            run = subprocess.run([sys.executable, str(ROOT / "scripts/compare_pages.py"),
                                  "--input", str(ROOT / "examples/comparison.json"), "--out", tmp],
                                 cwd=tmp, capture_output=True, text=True, check=False)
            self.assertEqual(run.returncode, 0, run.stderr)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/self_test.py (reported line 786)May include surrounding context.

python
with tempfile.TemporaryDirectory() as tmp:
            path = Path(tmp) / "bad.json"
            path.write_text('{"sites": []}', encoding="utf-8")
            run = subprocess.run([sys.executable, str(ROOT / "scripts/compare_pages.py"), "--input", str(path), "--out", tmp],
                                 cwd=tmp, capture_output=True, text=True, check=False)
            self.assertEqual(run.returncode, 2)
            self.assertIn("comparison.question", run.stderr)

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · NOTICE.md (reported line 26)May include surrounding context.

md
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE