\n\u5bfc\u8bfb<\/td>\n | \u5229\u7528\u5b9a\u5236 Bash \u6e90\u589e\u52a0\u65e5\u5fd7\u5ba1\u8ba1\u529f\u80fd\uff0c\u5e76\u5c06\u7528\u6237\u64cd\u4f5c\u53d1\u7ed9 rsyslog \u805a\u5408\uff0c\u6700\u540e\u5728 elasticsearch \u505a\u65e5\u5fd7\u5b58\u50a8\u548c\u67e5\u8be2\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/p>\n Pixelated word Linux made from cubes, mosaic pattern<\/p>\n<\/div>\n \u9996\u5148\uff0c\u5f53\u8c08\u5230 Linux \u7684\u64cd\u4f5c\u5ba1\u8ba1\u9700\u6c42\u65f6\uff0c\u5927\u591a\u6570\u6211\u4eec\u5e0c\u671b\u7684\u662f\u8fd8\u539f\u7ebf\u4e0a\u670d\u52a1\u5668\u88ab\u4eba\u4e3a\uff08\u8bef\uff09\u64cd\u4f5c\u65f6\u6267\u884c\u7684\u547d\u4ee4\u884c\uff0c\u4ee5\u53ca\u5b83\u5173\u8054\u7684\u4e0a\u4e0b\u6587\u3002\u8fd9\u4e2a\u9700\u6c42\u573a\u666f\u5176\u5b9e\u8ddf\u901a\u7528\u7684\u4e1a\u52a1\u65e5\u5fd7\u91c7\u96c6\u4e00\u81f4\uff0c\u7b80\u5355\u4e00\u70b9\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 history \u5c06\u5185\u5bb9\u53d1\u7ed9 syslog\uff0c\u590d\u6742\u4e00\u70b9\u7684\u91c7\u7528 auditd \u6216 ebpf \u5728\u5185\u6838\u5c42\u9762\u4e0a\u6355\u83b7\u884c\u4e3a\u3002<\/p>\n \u4e0d\u8fc7\u672c\u6587\u4e0d\u6253\u7b97\u5bf9\u4e0a\u8ff0\u7684\u65b9\u6848\u505a\u539f\u7406\u89e3\u91ca\uff0c\u4ec5\u4ec5\u7ad9\u5728\u4e00\u4e2a\u8fd0\u7ef4\u5c0f\u767d\u7684\u89d2\u5ea6\u6765\u5b8c\u6210\u65e5\u5e38 80%\uff0880%\u7684\u6570\u636e\u6765\u6e90\uff1f\u6211\u4e5f\u4e0d\u77e5\u9053\uff0c\u5927\u6982\u662f\u4e8c\u516b\u539f\u5219\uff09\u7684\u64cd\u4f5c\u5ba1\u8ba1 \u3002\u65e2\u7136\u6587\u7ae0\u6807\u9898\u662f\u7528 Shell \u6765\u5b8c\u6210\uff0c \u7531\u6b64\u53ef\u89c1\u4eca\u5929\u7684\u4e3b\u9898\u8ddf Bash \u8131\u4e0d\u4e86\u5173\u7cfb\u4e86\u3002<\/p>\n \u4e00\u53e5\u8bdd\u6982\u62ec\u4eca\u5929\u7684\u4e3b\u9898\uff1a\u5229\u7528\u5b9a\u5236 Bash \u6e90\u589e\u52a0\u65e5\u5fd7\u5ba1\u8ba1\u529f\u80fd\uff0c\u5e76\u5c06\u7528\u6237\u64cd\u4f5c\u53d1\u7ed9 rsyslog \u805a\u5408\uff0c\u6700\u540e\u5728 elasticsearch \u505a\u65e5\u5fd7\u5b58\u50a8\u548c\u67e5\u8be2\u3002<\/p>\n Linux \u90e8\u5206<\/strong><\/div>\n\n- \u51c6\u5907\u4e00\u4e9b\u5fc5\u8981\u7684\u5de5\u5177<\/li>\n
\n- rsyslog: \u4e00\u4e2aLinux\u4e0a\u81ea\u5e26\u5e76\u517c\u5bb9 syslog \u8bed\u6cd5\u7684\u65e5\u5fd7\u5904\u7406\u670d\u52a1<\/li>\n
- jq: \u4e00\u4e2a\u5728 shell \u4e0b\u5904\u7406 json \u6570\u636e\u7684\u5c0f\u5de5\u5177<\/li>\n
- logger: \u4e00\u4e2a\u53ef\u4ee5\u5f80 syslog \u8f93\u5165\u65e5\u5fd7\u7684\u5de5\u5177<\/li>\n<\/ul>\n
\u8fd9\u4e9b\u5c0f\u5de5\u5177\u9664 jq \u5916\uff0c\u5927\u591a\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u90fd\u81ea\u5e26\uff0c\u5982\u679c\u6ca1\u6709\u7684\u8bdd\u4e5f\u53ef\u4ee5\u76f4\u63a5\u7528\u64cd\u4f5c\u7cfb\u7edf\u5185\u7f6e\u7684\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5\u3002<\/p>\n - ash.audit.sh\uff0c\u5e76\u5c06\u5176\u62f7\u8d1d\u5230 \/etc\/profile.d\/ \u76ee\u5f55\u4e0b<\/li>\n
\r\nif [ \"${SHELL##*\/}\" != \"bash\" ]; then\r\n return\r\nfi\r\nif [ \"${AUDIT_READY}\" = \"yes\" ]; then\r\n return\r\nfi\r\ndeclare -rx HISTFILE=\"$HOME\/.bash_history\r\ndeclare -rx HISTSIZE=500000\r\ndeclare -rx HISTFILESIZE=500000\r\ndeclare -rx HISTCONTROL=\"\"\r\ndeclare -rx HISTIGNORE=\"\"\r\ndeclare -rx HISTCMD\r\ndeclare -rx AUDIT_READY=\"yes\"\r\nshopt -s histappend\r\nshopt -s cmdhist\r\nshopt -s histverify\r\nif shopt -q login_shell && [ -t 0 ]; then\r\n stty -ixon\r\nfi\r\nif groups | grep -q root; then\r\n declare -x TMOUT=86400\r\n # chattr +a \"$HISTFILE\"\r\nfi\r\ndeclare -a LOGIN_INFO=( $(who -mu | awk '{print $1,$2,$6}') )\r\ndeclare -rx AUDIT_LOGINUSER=\"${LOGIN_INFO[0]}\"\r\ndeclare -rx AUDIT_LOGINPID=\"${LOGIN_INFO[2]}\"\r\ndeclare -rx AUDIT_USER=\"$USER\"\r\ndeclare -rx AUDIT_PID=\"$$\"\r\ndeclare -rx AUDIT_TTY=\"${LOGIN_INFO[1]}\"\r\ndeclare -rx AUDIT_SSH=\"$([ -n \"$SSH_CONNECTION\" ] && echo \"$SSH_CONNECTION\" | awk '{print $1\":\"$2\"->\"$3\":\"$4}')\"\r\ndeclare -rx AUDIT_STR=\"$AUDIT_LOGINUSER $AUDIT_LOGINPID $AUDIT_TTY $AUDIT_SSH\"\r\ndeclare -rx AUDIT_TAG=$(echo -n $AUDIT_STR | sha1sum |cut -c1-12)\r\ndeclare -x AUDIT_LASTHISTLINE=\"\"\r\nset +o functrace\r\nshopt -s extglob\r\nfunction AUDIT_DEBUG() {\r\n if [ -z \"$AUDIT_LASTHISTLINE\" ]; then\r\n local AUDIT_CMD=\"$(fc -l -1 -1)\"\r\n AUDIT_LASTHISTLINE=\"${AUDIT_CMD%%+([^ 0-9])*}\"\r\n else\r\n AUDIT_LASTHISTLINE=\"$AUDIT_HISTLINE\"\r\n fi\r\n local AUDIT_CMD=\"$(history 1)\"\r\n AUDIT_HISTLINE=\"${AUDIT_CMD%%+([^ 0-9])*}\"\r\n if [ \"${AUDIT_HISTLINE:-0}\" -ne \"${AUDIT_LASTHISTLINE:-0}\" ] || [ \"${AUDIT_HISTLINE:-0}\" -eq \"1\" ]; then\r\n MESSAGE=$(jq -c -n \\\r\n --arg pwd \"$PWD\" \\\r\n --arg cmd \"${AUDIT_CMD##*( )?(+([0-9])?(\\*)+( ))}\" \\\r\n --arg user \"$AUDIT_LOGINUSER\" \\\r\n --arg become \"$AUDIT_USER\" \\\r\n --arg pid \"$AUDIT_PID\" \\\r\n --arg info \"${AUDIT_STR}\" \\\r\n '{cmd: $cmd, user: $user, become: $become, pid: $pid, pwd: $pwd, info: $info}')\r\n logger -p local6.info -t \"$AUDIT_TAG\" \"@cee: $MESSAGE\"\r\n fi\r\n}\r\nfunction AUDIT_EXIT() {\r\n local AUDIT_STATUS=\"$?\"\r\n if [ -n \"$AUDIT_TTY\" ]; then\r\n MESSAGE_CLOSED=$(jq -c -n \\\r\n --arg action \"session closed\" \\\r\n --arg user \"$AUDIT_LOGINUSER\" \\\r\n --arg become \"$AUDIT_USER\" \\\r\n --arg pid \"$AUDIT_PID\" \\\r\n --arg info \"${AUDIT_STR}\" \\\r\n '{user: $user, become: $become, pid: $pid, action: $action, info: $info}')\r\n logger -p local6.info -t \"$AUDIT_TAG\" \"@cee: $MESSAGE_CLOSED\"\r\n fi\r\n exit \"$AUDIT_STATUS\"\r\n}\r\ndeclare -frx +t AUDIT_DEBUG\r\ndeclare -frx +t AUDIT_EXIT\r\nif [ -n \"$AUDIT_TTY\" ]; then\r\n MESSAGE_OPENED=$(jq -c -n \\\r\n --arg action \"session opened\" \\\r\n --arg user \"$AUDIT_LOGINUSER\" \\\r\n --arg become \"$AUDIT_USER\" \\\r\n --arg pid \"$AUDIT_PID\" \\\r\n --arg info \"${AUDIT_STR}\" \\\r\n '{user: $user, become: $become, pid: $pid, action: $action, info: $info}')\r\n logger -p local6.info -t \"$AUDIT_TAG\" \"@cee: $MESSAGE_OPENED\"\r\nfi\r\ndeclare -rx PROMPT_COMMAND=\"[ -n \"$AUDIT_DONE\" ] && echo ''; AUDIT_DONE=; trap 'AUDIT_DEBUG && AUDIT_DONE=1; trap DEBUG' DEBUG\r\ndeclare -rx BASH_COMMAND\r\ndeclare -rx SHELLOPT\r\ntrap AUDIT_EXIT EXIT<\/pre>\n\u7b80\u5355\u8bf4\u660e\u4e0b\u8fd9\u4e2a\u811a\u672c\uff0c\u5927\u81f4\u5c31\u662f\u5b9a\u4e49\u4e86 shell \u7684\u5386\u53f2\u6761\u76ee\u3001\u767b\u5f55\u8d85\u65f6\u65f6\u95f4\u3001\u4ee5\u53ca\u5ba1\u8ba1\u65e5\u5fd7\u7684\u683c\u5f0f\u548c\u53d1\u9001\u3002<\/p>\n - \u914d\u7f6ersyslog \u5ba2\u6237\u7aef\uff0c\u672c\u5730\u521b\u5efa\u4e00\u4e2a \/etc\/rsyslog.d\/40-audit.conf \u6587\u4ef6\uff0c\u7528\u4e8e\u5c06\u672c\u5730local6\u7ea7\u522b\u7684\u7cfb\u7edf\u65e5\u5fd7\u53d1\u9001\u8fdc\u7aef\u7684rsyslog\u670d\u52a1\u96c6\u4e2d\u5904\u7406<\/li>\n
\r\n$RepeatedMsgReduction off\r\nlocal6.info @<>:514\r\n& stop<\/pre>\n\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u522b\u5fd8\u4e86\u91cd\u542f\u4e0b rsyslog \u670d\u52a1\uff01<\/p>\n \u6570\u636e\u90e8\u5206<\/strong><\/div>\n\u6570\u636e\u90e8\u5206\u987e\u540d\u601d\u4e49\uff0c\u7528\u4e8e\u63a5\u6536\u5e76\u5904\u7406\u5ba2\u6237\u7aef\u53d1\u6765\u7684\u64cd\u4f5c\u7cfb\u7edf\u65e5\u5fd7\u3002\u8fd9\u91cc\u6211\u4eec\u7528\u5230\u4e86 rsyslog \u548c elasticsearch \u4e24\u4e2a\u670d\u52a1\u4e86\u3002<\/p>\n \u51c6\u5907rsyslog-elasticsearch<\/strong><\/span><\/div>\n\u8981\u8ba9 rsyslog \u5c06\u65e5\u5fd7\u53d1\u9001\u7ed9 elastichsearch\uff0c\u6211\u4eec\u5c31\u5fc5\u987b\u5b89\u88c5\u5b83\u7684 es \u6a21\u5757<\/p>\n \r\n# Ubuntu \r\napt-get install -y rsyslog-elasticsearch rsyslog-mmjsonparse \r\n#CentOS\r\nyum install rsyslog-elasticsearch rsyslog-mmjsonparse<\/pre>\n\u51c6\u5907 ElasticSearch \u670d\u52a1<\/strong><\/span><\/div>\n\u4e3a\u4e86\u7b80\u5355\u90e8\u7f72\uff0c\u672c\u6587\u76f4\u63a5\u7528 docker \u5feb\u901f\u62c9\u8d77\u4e00\u4e2a ES \u670d\u52a1<\/p>\n \r\ndocker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e \"discovery.type=single-node\" elasticsearch:7.3.1\r\n<\/pre>\n\u914d\u7f6e rsyslog \u670d\u52a1\u7aef\uff0c\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6 \/etc\/rsyslog.d\/40-audit-server.conf\uff0c\u7528\u4e8e\u5b9a\u4e49\u65e5\u5fd7\u7684\u5199\u5165\u7b56\u7565\u3002<\/strong><\/span><\/div>\n\r\n$RepeatedMsgReduction off\r\n$ModLoad imudp\r\n$UDPServerRun 514\r\nmodule(load=\"mmjsonparse\") # for parsing CEE-enhanced syslog messages\r\nmodule(load=\"omelasticsearch\") # for outputting to Elasticsearch\r\n#try to parse a structured log\r\n# this is for index names to be like: rsyslog-YYYY.MM.DD\r\ntemplate(name=\"rsyslog-index\" type=\"string\" string=\"bashaudit-%$YEAR%.%$MONTH%.%$DAY%\")\r\n# this is for formatting our syslog in JSON with @timestamp\r\ntemplate(name=\"json-syslog\" type=\"list\") {\r\n constant(value=\"{\")\r\n constant(value=\"\\\"@timestamp\\\":\\\"\") property(name=\"timegenerated\" dateFormat=\"rfc3339\" date.inUTC=\"on\")\r\n constant(value=\"\\\",\\\"host\\\":\\\"\") property(name=\"fromhost-ip\")\r\n constant(value=\"\\\",\\\"severity\\\":\\\"\") property(name=\"syslogseverity-text\")\r\n constant(value=\"\\\",\\\"facility\\\":\\\"\") property(name=\"syslogfacility-text\")\r\n constant(value=\"\\\",\\\"program\\\":\\\"\") property(name=\"programname\")\r\n constant(value=\"\\\",\\\"tag\\\":\\\"\") property(name=\"syslogtag\" format=\"json\")\r\n constant(value=\"\\\",\") property(name=\"$!all-json\" position.from=\"2\")\r\n # closing brace is in all-json\r\n}\r\nif ($syslogfacility-text == 'local6' and $syslogseverity-text == 'info') then {\r\n action(type=\"mmjsonparse\")\r\n action(type=\"omelasticsearch\" template=\"json-syslog\" searchIndex=\"rsyslog-index\" dynSearchIndex=\"on\" server=\"\" serverport=\"\")\r\n # action(type=\"omfile\" file=\"\/var\/log\/bashaudit.log\")\r\n stop\r\n}<\/your_elasticsearch_port><\/your_elasticsearch_address><\/pre>\n\u8fd9\u91cc\u91c7\u7528\u4e86 rsyslog \u7684\u4e24\u4e2a module \u6765\u5904\u7406\u6536\u96c6\u7684\u65e5\u5fd7<\/p>\n - mmjsonparse\u7528\u4e8e json \u683c\u5f0f\u5316\u65e5\u5fd7<\/li>\n
- omelasticsearch\u7528\u4e8e\u914d\u7f6e ElastichSearch<\/li>\n
- \u914d\u7f6e\u5b8c\u6210\u91cd\u542f rsyslog \u670d\u52a1<\/li>\n
\u67e5\u8be2\u90e8\u5206<\/strong><\/div>\n\u5ba1\u8ba1\u65e5\u5fd7\u7684\u67e5\u8be2\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Kibana \u6216\u8005\u81ea\u5df1\u6839\u636e ElasticSearch API \u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u3002\u8fd9\u91cc\u6211\u4eec\u4ee5 Kibana \u4e3e\u4f8b\u3002<\/p>\n \r\ncat << EOF > .\/kibana.yml\r\nserver.port: 15601\r\nelasticsearch.hosts: [\"http:\/\/:\"]\r\ni18n.locale: \"zh-CN\"\r\nEOF\r\ndocker run -d --ulimit nofile=1000000:1000000 --net host --name elasticsearch-audit -v .\/kibana.yml:\/usr\/share\/kibana\/config\/kibana.yml --restart always docker.elastic.co\/kibana\/kibana-oss:7.3.1<\/your_elasticsearch_port><\/your_elasticsearch_address><\/pre>\n\u672c\u5730\u8bbf\u95eehttp:\/\/localhost:15601\u8fdb\u5165 kibana \u914d\u7f6e\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a bashaudit \u7684\u7d22\u5f15\u6a21\u5f0f<\/p>\n <\/p>\n \u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u80fd\u8fdb\u5165 Discover \u4e2d\u67e5\u8be2\u5ba1\u8ba1\u65e5\u5fd7\u4e86\uff0c\u5305\u542b\u4e86\u57fa\u672cShell\u6267\u884c\u65f6\u95f4\u3001\u6765\u6e90\u7528\u6237\u3001\u6267\u884c\u76ee\u5f55\u7b49\u6570\u636e\u3002<\/p>\n <\/p>\n \u518d\u8fdb\u4e00\u6b65\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528 API \u7684\u65b9\u5f0f\u5bf9\u5ba1\u8ba1\u65e5\u5fd7\u505a\u4e00\u4e9b\u989d\u5916\u7684\u4e8c\u6b21\u5f00\u53d1\uff0c\u4f8b\u5982\uff1a<\/p>\n - \u5bf9\u7ebf\u4e0a\u670d\u52a1\u5668\u70ed\u70b9\u7528\u6237\u7edf\u8ba1<\/li>\n
- \u5bf9\u7ebf\u4e0a\u670d\u52a1\u5668\u505a\u70ed\u70b9\u64cd\u4f5c\u7edf\u8ba1<\/li>\n
- \u5bf9\u7ebf\u4e0a\u5371\u9669Shell \u64cd\u4f5c\u505a\u544a\u8b66<\/li>\n
<\/p>\n \u603b\u7ed3<\/strong><\/div>\n\u672c\u6587\u8bb2\u8ff0\u4e86\u91c7\u7528\u5b9a\u5236 Bash \u7684\u65b9\u5f0f\uff0c\u5728\u7528\u6237\u767b\u5f55\u521d\u59cb\u5316 Shell \u7684\u65b9\u5f0f\u5c06\u5176\u540e\u7eed\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u53d1\u9001\u7ed9 rsyslog \u670d\u52a1\u8fdb\u884c\u5904\u7406\uff0c\u5e76\u5c06\u683c\u5f0f\u5316\u540e\u7684\u65e5\u5fd7\u5b58\u50a8\u5728 ElasticSearch \u4e2d\u65b9\u4fbf\u8f85\u52a9\u7cfb\u7edf\u7ba1\u7406\u8005\u5728\u7ebf\u4e0a\u6545\u969c\u5b9a\u4f4d\u65f6\u4f7f\u7528\uff0c\u4e5f\u53ef\u4ee5\u4f9d\u6b64\u5bf9 Linux\u547d\u4ee4\u884c\u5ba1\u8ba1\u505a\u53ef\u89c6\u5316\u7684\u4e8c\u6b21\u5f00\u53d1\u3002<\/p>\n \u4e0d\u8fc7\u672c\u6587\u57fa\u4e8e\u5b9a\u5236 Bash \u7684\u65b9\u5f0f\u4ecd\u7136\u5177\u5907\u5f88\u591a\u5c40\u9650\u6027\uff0c\u4f8b\u5982\uff1a<\/p>\n - \u4e0d\u80fd\u5ba1\u8ba1 ShellScript \u5185\u7684\u6267\u884c\u903b\u8f91\uff1b<\/li>\n
- \u5b58\u5728\u7528\u5176\u4ed6 shell \u7ed5\u8fc7\u5ba1\u8ba1\uff0c\u5982 zsh \u7b49\uff1b<\/li>\n
\u53ef\u4ee5\u770b\u5230\u8981\u60f3\u5ba1\u8ba1\u5230\u66f4\u8be6\u7ec6\u7684\u5185\u5bb9\uff0c\u5149\u5728 Bash\uff08\u8868\u9762\u529f\u592b\uff09\u4e0a\u5b9e\u73b0\u5e76\u4e0d\u80fd\u6ee1\u8db3\uff0c\u8bfb\u8005\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528snoopy \u5bf9 Shell \u811a\u672c\u5185\u90e8\u505a\u8ddf\u8e2a\u5ba1\u8ba1\u3002<\/ol>\n","protected":false},"excerpt":{"rendered":" \u9996\u5148\uff0c\u5f53\u8c08\u5230 Linux \u7684\u64cd\u4f5c\u5ba1\u8ba1\u9700\u6c42\u65f6\uff0c\u5927\u591a\u6570\u6211\u4eec\u5e0c\u671b\u7684\u662f\u8fd8\u539f\u7ebf\u4e0a\u670d\u52a1\u5668\u88ab\u4eba\u4e3a\uff08\u8bef\uff09\u64cd\u4f5c\u65f6\u6267\u884c\u7684\u547d\u4ee4\u884c\uff0c\u4ee5 […]<\/p>\n","protected":false},"author":317,"featured_media":253772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-254071","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/254071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=254071"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/254071\/revisions"}],"predecessor-version":[{"id":254077,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/254071\/revisions\/254077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/253772"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=254071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=254071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=254071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |