/lc-fundamentals:fimfrom lc-fundamentals
Manages LimaCharlie Integrity extension for file system and registry monitoring with pattern-based rules. Covers rule syntax, FIM_HIT events, platform-specific patterns, and CLI management.
Ships in lc-fundamentals. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Integrity extension (ext-integrity) automates integrity checks of file systems and registry values through pattern-based rules. When a monitored file or registry key is modified, a FIM_HIT event appears in the sensor timeline.
limacharlie extension subscribe --name ext-integrity --oid <oid>
# List rules
limacharlie extension request --name ext-integrity --action list_rules --oid <oid> --output yaml
# Add rule
limacharlie extension request --name ext-integrity --action add_rule --data '{"name":"linux-ssh-configs","patterns":["/root/.ssh/*","/home/*/.ssh/*"],"tags":["server"],"platforms":["linux"]}' --oid <oid> --output yaml
# Remove rule
limacharlie extension request --name ext-integrity --action remove_rule --data '{"name":"linux-ssh-configs"}' --oid <oid> --output yaml
Patterns support wildcards: * (any characters), ? (single character), + (one or more characters).
| Pattern | Monitors |
|---|---|
?:\\Windows\\System32\\drivers | drivers directory on any drive |
C:\\Windows\\System32\\specialfile.exe | specific file on C: |
?:\\inetpub\\wwwroot | IIS web root on any drive |
Gotcha: Windows directory separators (backslash) MUST be escaped with double-backslash \\ in patterns.
All registry monitoring patterns MUST begin with \REGISTRY, followed by the hive and then the path.
| Pattern | Monitors |
|---|---|
\REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Run* | System Run key (persistence) |
\REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce* | System RunOnce key |
\REGISTRY\USER\S-*\Software\Microsoft\Windows\CurrentVersion\Run* | All users' Run keys |
Gotcha: the prefix is \REGISTRY, NOT HKLM or HKEY_LOCAL_MACHINE. This is a common mistake.
| Pattern | Monitors |
|---|---|
/root/.ssh/authorized_keys | Root SSH authorized keys |
/home/*/.ssh/* | All users' SSH directories |
/etc/passwd | User account file |
/etc/shadow | Password hash file |
/etc/crontab | System cron |
| Pattern | Monitors |
|---|---|
/Users/*/Library/Keychains/* | User keychains |
/Library/Keychains | System keychains |
/Library/LaunchDaemons/* | Launch daemons (persistence) |
/Library/LaunchAgents/* | Launch agents (persistence) |
On eBPF-capable systems, FIM capabilities are on par with Windows and macOS — full file notification with efficient kernel-level monitoring.
On systems without eBPF, FIM uses inotify (active monitoring, not passive):
* required for directory monitoring: omitting the final * results in only the top-level directory being monitored, not its contents/home/*/.ssh/* works, but /home/*/.ssh only monitors the .ssh directory entry itselfWhen a monitored path is modified, a FIM_HIT event is generated containing:
Use FIM_HIT events in D&R rules for automated response:
# Example: detect FIM hits on critical Windows persistence locations
event: FIM_HIT
op: starts with
path: event/FILE_PATH
value: \REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
extension_config:
ext-integrity:
data:
rules:
- name: windows-persistence
patterns:
- '?\Windows\System32\drivers'
- '\REGISTRY\MACHINE\Software\Microsoft\Windows\CurrentVersion\Run*'
tags: [windows-server]
platforms: [windows]
- name: linux-ssh
patterns:
- '/root/.ssh/*'
- '/home/*/.ssh/*'
tags: [linux-server]
platforms: [linux]
usr_mtd:
enabled: true
expiry: 0
| Gotcha | Detail |
|---|---|
Windows paths need \\ | Backslash must be escaped as double-backslash |
Registry prefix is \REGISTRY | NOT HKLM or HKEY_LOCAL_MACHINE |
| Linux inotify: 20 sub-dir limit | Wildcard paths limited on non-eBPF systems |
Linux inotify: final * needed | Omitting final wildcard monitors only directory entry |
| FIM needs ext-integrity subscribed | 403 errors indicate missing subscription |
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/adaptersWorking with LimaCharlie adapters — cloud sensors (SaaS integrations), external adapters (cloud-managed), and on-prem/USP adapters. Covers configuration, credential setup, parsing rules, validation, deployment, and troubleshooting. Use when setting up data sources, configuring adapters, or troubleshooting ingestion./appsAuthor and deploy LimaCharlie "apps" — self-contained AI-generated HTML mini-apps that render in a sandboxed iframe in the LimaCharlie web UI and call LimaCharlie APIs through a brokered, permission-scoped runtime (window.lc). Use when a user wants to create, edit, or understand a custom app/dashboard/tool embedded in the LimaCharlie console (the `app` hive)./npx claudepluginhub refractionpoint/lc-ai --plugin lc-fundamentalsOther plugins' skills for the same job