codeguard-0-framework-and-languages
Framework & language security guides (Django/DRF, Laravel/Symfony/Rails, .NET, Java/JAAS, Node.js, PHP config)
Install / Use
npx skills add cisco-ai-defense/skill-scannerInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
SecuritySupported Platforms
Our assessment of codeguard-0-framework-and-languages
codeguard-0-framework-and-languages scores 86/100 on our quality scale, 734th of 1,108 Security skills we index.
Its Cursor Rules is 6.1 KB long, well organised into 11 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 2,549 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so codeguard-0-framework-and-languages is actively maintained.
- Our last check on 2026-11-03 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
codeguard-0-framework-and-languages compared with similar skills
All 4 of these similar skills score higher than codeguard-0-framework-and-languages; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| codeguard-0-framework-and-languages (this skill)by cisco-ai-defense | 86 | 2.5k | 53d ago | Cursor Rules |
| diagram-designby cathrynlavery | 100 | 63.5k | 20d ago | SKILL.md |
| protocol-reverse-engineeringby wshobson | 100 | 39.9k | 57d ago | SKILL.md |
| anndataby K-Dense-AI | 100 | 46.4k | 56d ago | SKILL.md |
| codeqlby github | 100 | 39.3k | 53d ago | SKILL.md |
Frequently asked questions
- How do I install codeguard-0-framework-and-languages?
- Run
npx skills add cisco-ai-defense/skill-scanner. The install tabs above show the steps for each supported agent. - Which AI agents does codeguard-0-framework-and-languages work with?
- It is written for Cursor, as a Cursor Rules file. Other agents that read the same format can often use it too.
- Is codeguard-0-framework-and-languages safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is codeguard-0-framework-and-languages still maintained?
- The repository was last updated about 2 months ago, so codeguard-0-framework-and-languages is actively maintained.
Skill content
View source on GitHubdescription: Framework & language security guides (Django/DRF, Laravel/Symfony/Rails, .NET, Java/JAAS, Node.js, PHP config) globs: /*.c,/.h,**/.java,/*.js,/.jsx,**/.kt,/*.kts,/.mjs,**/.php,/*.py,/.pyi,**/.pyx,/*.rb,/.ts,**/.tsx,/*.wsdl,/.xml,**/.xsd,/*.xslt,/.yaml,**/.yml version: 1.0.1
rule_id: codeguard-0-framework-and-languages
Framework & Language Guides
Apply secure‑by‑default patterns per platform. Harden configurations, use built‑in protections, and avoid common pitfalls.
Django
- Disable DEBUG in production; keep Django and deps updated.
- Enable
SecurityMiddleware, clickjacking middleware, MIME sniffing protection. - Force HTTPS (
SECURE_SSL_REDIRECT); configure HSTS; set secure cookie flags (SESSION_COOKIE_SECURE,CSRF_COOKIE_SECURE). - CSRF: ensure
CsrfViewMiddlewareand{% csrf_token %}in forms; proper AJAX token handling. - XSS: rely on template auto‑escaping; avoid
mark_safeunless trusted; usejson_scriptfor JS. - Auth: use
django.contrib.auth; validators inAUTH_PASSWORD_VALIDATORS. - Secrets: generate via
get_random_secret_key; store in env/secrets manager.
Django REST Framework (DRF)
- Set
DEFAULT_AUTHENTICATION_CLASSESand restrictiveDEFAULT_PERMISSION_CLASSES; never leaveAllowAnyfor protected endpoints. - Always call
self.check_object_permissions(request, obj)for object‑level authz. - Serializers: explicit
fields=[...]; avoidexcludeand"__all__". - Throttling: enable rate limits (and/or at gateway/WAF).
- Disable unsafe HTTP methods where not needed. Avoid raw SQL; use ORM/parameters.
Laravel
- Production:
APP_DEBUG=false; generate app key; secure file perms. - Cookies/sessions: enable encryption middleware; set
http_only,same_site,secure, short lifetimes. - Mass assignment: use
$request->only()/$request->validated(); avoid$request->all(). - SQLi: use Eloquent parameterization; validate dynamic identifiers.
- XSS: rely on Blade escaping; avoid
{!! ... !!}for untrusted data. - File uploads: validate
file, size, andmimes; sanitize filenames withbasename. - CSRF: ensure middleware and form tokens enabled.
Symfony
- XSS: Twig auto‑escaping; avoid
|rawunless trusted. - CSRF: use
csrf_token()andisCsrfTokenValid()for manual flows; Forms include tokens by default. - SQLi: Doctrine parameterized queries; never concatenate inputs.
- Command execution: avoid
exec/shell_exec; use Filesystem component. - Uploads: validate with
#[File(...)]; store outside public; unique names. - Directory traversal: validate
realpath/basenameand enforce allowed roots. - Sessions/security: configure secure cookies and authentication providers/firewalls.
Ruby on Rails
- Avoid dangerous functions:
eval("ruby code here")
system("os command here")
`ls -al /` # (backticks contain os command)
exec("os command here")
spawn("os command here")
open("| os command here")
Process.exec("os command here")
Process.spawn("os command here")
IO.binread("| os command here")
IO.binwrite("| os command here", "foo")
IO.foreach("| os command here") {}
IO.popen("os command here")
IO.read("| os command here")
IO.readlines("| os command here")
IO.write("| os command here", "foo")
- SQLi: always parameterize; use
sanitize_sql_likefor LIKE patterns. - XSS: default auto‑escape; avoid
raw,html_safeon untrusted data; usesanitizeallow‑lists. - Sessions: database‑backed store for sensitive apps; force HTTPS (
config.force_ssl = true). - Auth: use Devise or proven libraries; configure routes and protected areas.
- CSRF:
protect_from_forgeryfor state‑changing actions. - Secure redirects: validate/allow‑list targets.
- Headers/CORS: set secure defaults; configure
rack-corscarefully.
.NET (ASP.NET Core)
- Keep runtime and NuGet packages updated; enable SCA in CI.
- Authz: use
[Authorize]attributes; perform server‑side checks; prevent IDOR. - Authn/sessions: ASP.NET Identity; lockouts; cookies
HttpOnly/Secure; short timeouts. - Crypto: use PBKDF2 for passwords, AES‑GCM for encryption; DPAPI for local secrets; TLS 1.2+.
- Injection: parameterize SQL/LDAP; validate with allow‑lists.
- Config: enforce HTTPS redirects; remove version headers; set CSP/HSTS/X‑Content‑Type‑Options.
- CSRF: anti‑forgery tokens on state‑changing actions; validate on server.
Java and JAAS
- SQL/JPA: use
PreparedStatement/named parameters; never concatenate input. - XSS: allow‑list validation; sanitize output with reputable libs; encode for context.
- Logging: parameterized logging to prevent log injection.
- Crypto: AES‑GCM; secure random nonces; never hardcode keys; use KMS/HSM.
- JAAS: configure
LoginModulestanzas; implementinitialize/login/commit/abort/logout; avoid exposing credentials; segregate public/private credentials; manage subject principals properly.
Node.js
- Limit request sizes; validate and sanitize input; escape output.
- Avoid
eval,child_process.execwith user input; usehelmetfor headers;hppfor parameter pollution. - Rate limit auth endpoints; monitor event loop health; handle uncaught exceptions cleanly.
- Cookies: set
secure,httpOnly,sameSite; setNODE_ENV=production. - Keep packages updated; run
npm audit; use security linters and ReDoS testing.
PHP Configuration
- Production php.ini:
expose_php=Off, log errors not display; restrictallow_url_fopen/include; setopen_basedir. - Disable dangerous functions; set session cookie flags (
Secure,HttpOnly,SameSite=Strict); enable strict session mode. - Constrain upload size/number; set resource limits (memory, post size, execution time).
- Use Snuffleupagus or similar for additional hardening.
Implementation Checklist
- Use each framework’s built‑in CSRF/XSS/session protections and secure cookie flags.
- Parameterize all data access; avoid dangerous OS/exec functions with untrusted input.
- Enforce HTTPS/HSTS; set secure headers.
- Centralize secret management; never hardcode secrets; lock down debug in production.
- Validate/allow‑list redirects and dynamic identifiers.
- Keep dependencies and frameworks updated; run SCA and static analysis regularly.
Related Skills
diagram-design
63.5kCreate branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, py…
protocol-reverse-engineering
39.9kMaster network protocol reverse engineering including packet analysis, protocol dissection, and custom protocol documentation
anndata
46.4kHandles annotated matrices in single-cell analysis, .h5ad and Zarr files, and integration with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
codeql
39.3kComprehensive guide for setting up and configuring CodeQL code scanning via GitHub Actions workflows and the CodeQL CLI. This skill should be used when users need help with code scanning configuration, CodeQL workflow files, CodeQL CLI commands, SARIF output, security analysis setup, or troubleshoot…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
