[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KM15Y14Z8P5M2H8EFNASNY":3,"skill-same:01M6KM15Y14Z8P5M2H8EFNASNY":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6KM15Y14Z8P5M2H8EFNASNY","jackson-security",null,"Security considerations for Jackson JSON deserialization in Java applications. This skill covers common attack patterns such as the Empty Key (\"\") attack vector, polymorphic type handling, nested injection, and duplicate keys, along with their root causes and recommended mitigation strategies. It provides essential background knowledge and is highly useful for addressing related security vulnerabilities. It is always recommended to invoke this skill before working on relevant security fixes.","cxcscmu\u002FSkillLearnBench","cxcscmu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142838272?v=4","01M6KCQDFQWPDSN0MKZY96MSQP","01M6KCQDM7G70TKJ28NTSQC0RZ",93,"MIT","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ffix-security-bug\u002Fjackson-security\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"jackson security","jackson","security","essential","fixes","for","with","relevant","duplicate","type","as","strategies","nested","common","json","knowledge","applications","deserialization","vector","java","2026-11-10 10:12:30",false,"---\nname: jackson-security\ndescription: Security considerations for Jackson JSON deserialization in Java applications. This skill covers common attack patterns such as the Empty Key (\"\") attack vector, polymorphic type handling, nested injection, and duplicate keys, along with their root causes and recommended mitigation strategies. It provides essential background knowledge and is highly useful for addressing related security vulnerabilities. It is always recommended to invoke this skill before working on relevant security fixes.\n---\n\n# Jackson Deserialization Security\n\n## Key Concept: Deserialization Timing\n\nJackson transforms JSON text into Java objects during a single `readValue()` call. This transformation is **not** a simple data copy—Jackson interprets JSON structure, resolves types, handles special keys, and instantiates objects all within this operation.\n\n    JSON String → [Jackson Processing] → Java Object\n                        ↑\n                Attack surface here\n\nOnce deserialization completes, the resulting Java object contains no trace of how it was constructed. Any special JSON structures, unusual keys, or type directives that influenced object creation are no longer visible.\n\n---\n\n## Why Post-Deserialization Validation Is Insufficient\n\nConsider the lifecycle of a typical JSON endpoint:\n\n    1. HTTP request arrives with JSON body\n    2. Framework deserializes JSON → Java object (Jackson runs here)\n    3. Your code receives the Java object\n    4. Your code validates the object\n    5. Your code processes the object\n\nValidation at step 4 examines the **result** of deserialization, not the **process**. Any malicious behavior triggered during step 2 has already executed. The Java object you're validating may appear completely normal while the attack has already succeeded.\n\nThis creates a fundamental blind spot: attacks that exploit Jackson's parsing behavior—rather than the final object state—cannot be detected by examining the deserialized object.\n\n---\n\n## The Empty Key (`\"\"`) Attack Vector\n\n### What Is It?\n\nJSON permits empty strings as object keys:\n\n    {\n      \"name\": \"legitimate\",\n      \"\": \"injected value\"\n    }\n\nThis is valid JSON per RFC 8259. Jackson parses it without error.\n\n### Why Does It Matter?\n\nSome applications and frameworks assign special meaning to empty keys:\n\n- **Injection points**: Certain Jackson configurations use `\"\"` to set values on the root object or trigger special handling\n- **Property override**: Empty keys may interact unexpectedly with `@JsonAnySetter` or custom deserializers\n- **Framework behaviors**: Some frameworks interpret `\"\"` as \"apply to parent\" or \"default target\"\n\n### How to fix it?\n\nTo robustly mitigate this issue, a pre-deserialization validation step should be introduced at the sampler entry point to intercept and reject malicious raw JSON payloads.\n\n### The Visibility Problem\n\nAfter deserialization, there is no standard way to know an empty key was present:\n\n    \u002F\u002F Original JSON: {\"name\": \"test\", \"\": \"malicious\"}\n    MyObject obj = mapper.readValue(json, MyObject.class);\n    \u002F\u002F obj.getName() returns \"test\"\n    \u002F\u002F Where did \"\" go? Depends on configuration. You cannot tell from obj.\n\nThe attack's effectiveness depends on the specific Jackson configuration and target class—but the defender examining only the resulting object cannot determine whether `\"\"` was used.\n\n---\n\n## Other Structural Attack Patterns\n\n### Polymorphic Type Handling\n\nWhen Jackson is configured with `@JsonTypeInfo`, JSON can specify which class to instantiate:\n\n    {\n      \"@class\": \"com.attacker.MaliciousClass\",\n      \"command\": \"rm -rf \u002F\"\n    }\n\nJackson will attempt to instantiate whatever class is named. If the classpath contains exploitable \"gadget\" classes, arbitrary code execution may occur during deserialization—before your code ever runs.\n\nThe resulting object might be the expected type (if the attack class is a subtype), or deserialization might succeed partially before the damage is done.\n\n### Duplicate Keys\n\nJSON does not prohibit duplicate keys. Jackson's default behavior: **last value wins**.\n\n    {\n      \"role\": \"user\",\n      \"role\": \"admin\"\n    }\n\nJackson produces an object where `role` equals `\"admin\"`.\n\nIf upstream validation (like a WAF or input filter) checks only the first occurrence while Jackson uses the last, the validation and processing see different values.\n\n### Nested Injection\n\nDeeply nested structures can bypass depth-limited validation:\n\n    {\n      \"config\": {\n        \"settings\": {\n          \"internal\": {\n            \"\": \"payload\"\n          }\n        }\n      }\n    }\n\nSimple string checks might miss patterns buried in nested structures.\n","# Jackson Deserialization Security\n\n## Key Concept: Deserialization Timing\n\nJackson transforms JSON text into Java objects during a single `readValue()` call. This transformation is **not** a simple data copy—Jackson interprets JSON structure, resolves types, handles special keys, and instantiates objects all within this operation.\n\n    JSON String → [Jackson Processing] → Java Object\n                        ↑\n                Attack surface here\n\nOnce deserialization completes, the resulting Java object contains no trace of how it was constructed. Any special JSON structures, unusual keys, or type directives that influenced object creation are no longer visible.\n\n---\n\n## Why Post-Deserialization Validation Is Insufficient\n\nConsider the lifecycle of a typical JSON endpoint:\n\n    1. HTTP request arrives with JSON body\n    2. Framework deserializes JSON → Java object (Jackson runs here)\n    3. Your code receives the Java object\n    4. Your code validates the object\n    5. Your code processes the object\n\nValidation at step 4 examines the **result** of deserialization, not the **process**. Any malicious behavior triggered during step 2 has already executed. The Java object you're validating may appear completely normal while the attack has already succeeded.\n\nThis creates a fundamental blind spot: attacks that exploit Jackson's parsing behavior—rather than the final object state—cannot be detected by examining the deserialized object.\n\n---\n\n## The Empty Key (`\"\"`) Attack Vector\n\n### What Is It?\n\nJSON permits empty strings as object keys:\n\n    {\n      \"name\": \"legitimate\",\n      \"\": \"injected value\"\n    }\n\nThis is valid JSON per RFC 8259. Jackson parses it without error.\n\n### Why Does It Matter?\n\nSome applications and frameworks assign special meaning to empty keys:\n\n- **Injection points**: Certain Jackson configurations use `\"\"` to set values on the root object or trigger special handling\n- **Property override**: Empty keys may interact unexpectedly with `@JsonAnySetter` or custom deserializers\n- **Framework behaviors**: Some frameworks interpret `\"\"` as \"apply to parent\" or \"default target\"\n\n### How to fix it?\n\nTo robustly mitigate this issue, a pre-deserialization validation step should be introduced at the sampler entry point to intercept and reject malicious raw JSON payloads.\n\n### The Visibility Problem\n\nAfter deserialization, there is no standard way to know an empty key was present:\n\n    \u002F\u002F Original JSON: {\"name\": \"test\", \"\": \"malicious\"}\n    MyObject obj = mapper.readValue(json, MyObject.class);\n    \u002F\u002F obj.getName() returns \"test\"\n    \u002F\u002F Where did \"\" go? Depends on configuration. You cannot tell from obj.\n\nThe attack's effectiveness depends on the specific Jackson configuration and target class—but the defender examining only the resulting object cannot determine whether `\"\"` was used.\n\n---\n\n## Other Structural Attack Patterns\n\n### Polymorphic Type Handling\n\nWhen Jackson is configured with `@JsonTypeInfo`, JSON can specify which class to instantiate:\n\n    {\n      \"@class\": \"com.attacker.MaliciousClass\",\n      \"command\": \"rm -rf \u002F\"\n    }\n\nJackson will attempt to instantiate whatever class is named. If the classpath contains exploitable \"gadget\" classes, arbitrary code execution may occur during deserialization—before your code ever runs.\n\nThe resulting object might be the expected type (if the attack class is a subtype), or deserialization might succeed partially before the damage is done.\n\n### Duplicate Keys\n\nJSON does not prohibit duplicate keys. Jackson's default behavior: **last value wins**.\n\n    {\n      \"role\": \"user\",\n      \"role\": \"admin\"\n    }\n\nJackson produces an object where `role` equals `\"admin\"`.\n\nIf upstream validation (like a WAF or input filter) checks only the first occurrence while Jackson uses the last, the validation and processing see different values.\n\n### Nested Injection\n\nDeeply nested structures can bypass depth-limited validation:\n\n    {\n      \"config\": {\n        \"settings\": {\n          \"internal\": {\n            \"\": \"payload\"\n          }\n        }\n      }\n    }\n\nSimple string checks might miss patterns buried in nested structures.\n",{"name":5,"description":7},"main","726e1f79b96b0cb3d729d0e55a1c847e0b5353ae","skills\u002Fhuman_authored\u002Ffix-security-bug\u002Fjackson-security",8,"https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench","https:\u002F\u002Fcxcscmu.github.io\u002FSkillLearnBench","https:\u002F\u002Fgithub.com\u002Fcxcscmu","2026-10-02 22:55:36",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add cxcscmu\u002FSkillLearnBench --skill jackson-security",{"tool":57,"command":58},"bunx","bunx skills add cxcscmu\u002FSkillLearnBench --skill jackson-security",{"tool":60,"command":61},"pnpm","pnpm dlx skills add cxcscmu\u002FSkillLearnBench --skill jackson-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ffix-security-bug\u002Fjackson-security\u002FSKILL.md",true,[],[66,79,99,117,136,147],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6KM5KH175P5ABP5JMX2SBDQ","object_counter","Count occurrences of an object in the image using computer vision algorithm.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Fvideo-object-counting\u002Fobject_counter\u002FSKILL.md",[],[73,74,75,76,77,78],"object counter","object","vision","computer","Computer Vision","image",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":38},"01M6KM51TMVXG79MMPCS6Y8G86","travel-planning-workflow","Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Ftravel-planning-workflow\u002FSKILL.md",[],[86,87,88,89,90,91,92,93,94,23,95,96,97,21,98],"workflow","planning","planning workflow","travel","travel planning","travel planning workflow","structured","performing","plan","user","it","requirements","itineraries",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":38},"01M6KM4DY820XHS9YTSK5QP5HD","bundled-dataset-search-tool","invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Fbundled-dataset-search-tool\u002FSKILL.md",[],[106,107,108,109,110,111,112,89,113,114,90,115,23,116,87],"search","tool","dataset","bundled dataset search tool","restaurants","Tools","up","look","flights","you","database",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":38},"01M6KM465BB9PQ0B548HQSVAWZ","glm-output","Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final \u002Froot\u002Fmetrics.json.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-output\u002FSKILL.md",[],[124,125,126,23,127,128,32,129,130,131,132,133,115,134,135],"glm output","output","glm","tasks","metrics","basics","guidance","matching","verifier","processing","root","calibration",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6KM40KY3QWDW5W97S39R2BC","glm-calibration","Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-calibration\u002FSKILL.md",[],[143,135,126,125,130,129,127,144,145,23,146],"glm calibration","setup","companion","metric",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":38},"01M6KM3VHHVSGMGHJQB3PPT6YG","glm-basics","A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-basics\u002FSKILL.md",[],[154,126,129,155,143,135,23,125,25,156,157,158,159,160,127],"glm basics","inspect","files","good","use","how","Evaluation"]