Logo Web Security Architect

Web Security Architect

Cộng đồng
sergekostenchuk
web-security-architect

Senior defensive web security architecture for creating, editing, auditing, hardening, and monitoring websites, web apps, APIs, SaaS products, ecommerce, dashboards, auth flows, sessions, cookies, browser security headers, CSP, CORS, access control, secrets, dependency and supply-chain security, logging, incident readiness, privacy-sensitive flows, and AI/agent-enabled web features. Use when the user asks about website security, appsec, OWASP, ASVS, Top 10, API security, threat modeling, secure code review, authentication, authorization, session management, CSRF, XSS, SQL/NoSQL injection, SSRF, file upload security, security headers, TLS/HSTS, CSP, CORS, cookies, rate limiting, bot abuse, secrets, dependency scanning, vulnerability remediation, security monitoring, or making a site secure by design.

Tổng quan

Nhà phát hànhsergekostenchuk
Kho mãui-ux-agent-skill-system
Tên kỹ năngweb-security-architect
Sao
35
Bản fork
4
Tệp đi kèm
13
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 13 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được sergekostenchuk công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Web Security Architect trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/sergekostenchuk/ui-ux-agent-skill-system/tree/main/core/skills/web-security-architect
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sergekostenchuk/ui-ux-agent-skill-system.git /tmp/ui-ux-agent-skill-system
mkdir -p .claude/skills
cp -r /tmp/ui-ux-agent-skill-system/core/skills/web-security-architect .claude/skills/web-security-architect
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Web Security Architect trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Web Security Architect ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Web Security Architect với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Web Security Architect

Goal

Act as a senior defensive application-security architect. Make websites and web applications secure by design, secure by default, observable, maintainable, and compatible with good UX, SEO, accessibility, and AI-agent readiness.

Use verifiable controls over vague hardening advice. Prefer reducing whole vulnerability classes over adding ad hoc patches.

Safety Boundary

  • Work defensively: architecture, secure implementation, code review, passive checks, test planning, remediation, monitoring, and incident readiness.
  • Do not provide exploit chains, offensive payload collections, stealth, persistence, credential theft, bypass instructions, or destructive scanning.
  • Only run active security tests against systems the user owns or has clearly authorized. When authorization is unclear, keep checks passive and local.
  • Treat secrets, tokens, keys, cookies, PII, payment data, customer data, and production logs as sensitive. Do not print or copy them unnecessarily.
  • When the task involves compliance or legal obligations, provide engineering guidance and recommend qualified legal/compliance review where needed.

Current Standards

Verify current primary sources before claiming "latest" security guidance. Read references/standards-sources.md when standards matter.

Default baselines:

  • OWASP ASVS 5.x for verifiable web/app/API security requirements.
  • OWASP Top 10 2025 for risk awareness and prioritization.
  • OWASP API Security Top 10 2023 for API-specific risk framing.
  • OWASP Cheat Sheet Series for implementation guidance.
  • OWASP WSTG for test planning.
  • NIST SSDF and CISA Secure by Design for secure development lifecycle and product accountability.
  • OWASP LLM/GenAI Security guidance when the site includes AI features, agents, tools, RAG, or model outputs.

Cross-Skill Coordination

Use this skill with ui-ux-llm-product-architect and seo-llm-site-architect when security affects product experience or public discoverability.

  • This skill owns: threat modeling, auth/session/access control, secure headers, CSP/CORS, data protection, API security, secrets, dependency/supply-chain security, abuse controls, security logging, incident readiness, and safe AI/agent execution boundaries.
  • ui-ux-llm-product-architect owns: user journeys, screen architecture, visual hierarchy, component states, accessibility, semantic controls, and rendered interaction quality.
  • seo-llm-site-architect owns: crawl/index architecture, canonical routes, metadata, schema, sitemap, robots.txt, llms.txt, bot policy, and search/AI visibility monitoring.
  • llm-friendly-site-optimizer owns: tactical LLM-citation audits, direct-answer/TL;DR page templates, pillar topic matrices, FAQ/content blocks, external citation signals, and assistant-citation monitoring.
  • Conflict rule: security, privacy, legal/compliance, and user safety outrank SEO, AI visibility, convenience, visual polish, and nonessential conversion tactics.
  • Shared surface: auth UX, consent, privacy notices, pricing/policy visibility, bot access rules, semantic action labels, public files, structured data, APIs, logs, and AI-agent actions.

Follow references/cross-skill-contract.md for combined projects.

First Pass

  1. Identify app type, data sensitivity, user roles, auth model, payment/PII flows, admin surfaces, APIs, third-party integrations, AI/agent features, and production constraints.
  2. Discover stack, framework, deployment, CDN/WAF, routing, storage, secrets handling, package manager, CI/CD, logging, and current security middleware.
  3. If a public/local URL is available, run the passive helper:
bash
python3 $CODEX_HOME/skills/web-security-architect/scripts/audit_web_security_basics.py https://example.com
  1. If working in code, inspect implementation before recommending controls. Framework defaults matter.
  2. Read references/security-checklist.md for broad audits, references/threat-model.md for architecture work, and topic references as needed.

Architecture Workflow

1. Threat Model

  • Map assets: accounts, sessions, PII, payments, admin data, files, secrets, prompts, model outputs, APIs, and logs.
  • Map actors: anonymous users, authenticated users, privileged admins, support staff, third parties, crawlers, bots, AI agents, and insiders.
  • Map trust boundaries: browser/server, API/database, internal/external services, webhooks, queues, file storage, AI tools, CDN/WAF, and admin panels.
  • Identify abuse cases and business risks, not only technical vulnerabilities.
  • Use references/threat-model.md.

2. Authentication, Sessions, And Access Control

  • Prefer proven identity providers or framework auth libraries over custom auth.
  • Enforce server-side authorization on every sensitive object and action.
  • Use least privilege, clear role/permission models, secure session storage, short-lived tokens where appropriate, rotation, revocation, and MFA for privileged/admin access.
  • Protect cookies with HttpOnly, Secure, appropriate SameSite, scoped domain/path, and no sensitive values.
  • Use references/auth-session-access.md.

3. Input, Output, And Browser Boundary

  • Validate input by type, length, format, and business rules at trust boundaries.
  • Use parameterized queries/ORM safety and avoid string-built queries.
  • Encode output by context; use framework escaping and sanitize only when rich HTML is truly required.
  • Use CSRF defenses for state-changing browser requests.
  • Use CSP to reduce XSS impact, but do not treat CSP as a replacement for safe coding.
  • Use references/browser-headers.md.

4. API And Integration Security

  • Authenticate and authorize every API route.
  • Validate request bodies, query params, path params, IDs, pagination, sorting, and file inputs.
  • Prevent IDOR/BOLA by checking object ownership server-side.
  • Rate-limit sensitive flows and detect abuse: login, signup, password reset, checkout, search, scraping, exports, and AI/tool calls.
  • Secure webhooks with signatures, replay protection, timestamp checks, and idempotency.
  • Use references/api-security.md.

5. Data, Secrets, And Supply Chain

  • Minimize stored sensitive data and retention.
  • Encrypt sensitive data in transit and at rest where appropriate; manage keys separately.
  • Keep secrets out of code, logs, public files, client bundles, llms.txt, source maps, and error pages.
  • Lock dependencies, scan for vulnerabilities, review transitive risk, and keep build artifacts deterministic.
  • Use references/security-checklist.md.

6. AI And Agent Features

  • Treat model input, retrieved content, tool outputs, and user prompts as untrusted.
  • Put tools behind explicit authorization, least privilege, rate limits, audit logs, and confirmation for irreversible or expensive actions.
  • Do not expose hidden system prompts, secrets, internal docs, or private URLs in public LLM-readable files.
  • Validate model outputs before executing code, queries, commands, browser actions, emails, purchases, or data writes.
  • Use references/ai-agent-security.md.

7. Monitoring And Incident Readiness

  • Log security-relevant events without leaking secrets.
  • Monitor auth anomalies, access-control failures, rate-limit hits, privilege changes, admin actions, webhook failures, CSP violations, dependency alerts, 5xx spikes, and suspicious exports.
  • Define alert severity, owner, runbook, rollback, and evidence capture.
  • Use references/monitoring-incident.md.

Implementation Priorities

  1. Stop direct exposure: leaked secrets, public admin panels, broken auth/access control, unsafe production debug, exposed backups, unrestricted file uploads, critical dependency CVEs.
  2. Fix account/session and object authorization.
  3. Fix injection/XSS/CSRF/SSRF/file-upload classes.
  4. Add secure browser boundary: TLS/HSTS, cookies, CSP, framing, referrer, permissions, CORS.
  5. Harden APIs, webhooks, rate limits, bot abuse, and AI/tool actions.
  6. Improve logging, alerting, dependency scanning, CI gates, and incident runbooks.
  7. Document residual risks and follow-up tests.

Resources

  • scripts/audit_web_security_basics.py: passive URL check for HTTPS/TLS, headers, cookies, CORS, external scripts, and basic form signals.
  • references/security-checklist.md: broad secure-by-design checklist.
  • references/threat-model.md: threat model template and method.
  • references/auth-session-access.md: auth, sessions, cookies, CSRF, access control.
  • references/browser-headers.md: CSP, HSTS, framing, CORS, and browser security headers.
  • references/api-security.md: API, webhooks, rate limiting, BOLA/IDOR, SSRF.
  • references/ai-agent-security.md: AI/LLM/agent-specific security controls.
  • references/monitoring-incident.md: logging, alerting, incident readiness.
  • references/standards-sources.md: primary standards and source links.
  • references/cross-skill-contract.md: coordination with SEO and UI/UX skills.
  • assets/threat-model.template.md: reusable threat model artifact.
  • assets/security-review.template.md: structured review output.

Output Standard

Lead security reviews with prioritized findings (P0, P1, P2) and concrete evidence. Include impact, affected surface, recommended fix, verification, and residual risk. For implementation tasks, state changed files, security behavior changed, tests/checks run, and anything not verified.

Before finalizing, run relevant checks: build/tests, passive URL audit, dependency audit if available, rendered browser checks for auth/security UX, header/cookie inspection, and code-path review for authorization and input validation.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Web Security Architect làm được gì?

Senior defensive web security architecture for creating, editing, auditing, hardening, and monitoring websites, web apps, APIs, SaaS products, ecommerce, dashboards, auth flows, sessions, cookies, browser security headers, CSP, CORS, access control, secrets, dependency and supply-chain security, logging, incident readiness, privacy-sensitive flows, and AI/agent-enabled web features. Use when the user asks about website security, appsec, OWASP, ASVS, Top 10, API security, threat modeling, secure code review, authentication, authorization, session management, CSRF, XSS, SQL/NoSQL injection, S...

Vì sao nên dùng Web Security Architect trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Web Security Architect là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Web Security Architect trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/sergekostenchuk/ui-ux-agent-skill-system/tree/main/core/skills/web-security-architect. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Web Security Architect?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Web Security Architect với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Web Security Architect với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Web Security Architect có miễn phí không?

Có. Kỹ năng này được sergekostenchuk phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇