{"id":6593,"date":"2018-09-07T20:20:39","date_gmt":"2018-09-07T16:20:39","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-server\/"},"modified":"2018-09-07T20:20:39","modified_gmt":"2018-09-07T16:20:39","slug":"how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux\/","title":{"rendered":"How to Setup File Integrity Monitoring (FIM) using osquery on Linux"},"content":{"rendered":"<p>Osquery is an open source operating system instrumentation, monitoring, and analytics. Created by Facebook, it exposes an operating system as a high-performance relational database that can be queried using SQL-based queries.<\/p>\n<p>Osquery is a multi-platform software, can be installed on Linux, Windows, MacOS, and FreeBSD. It allows us to explore all of those operating systems&#8217; profile, performance, security checking etc, using SQL-based queries.<\/p>\n<p>In this tutorial, we will show you how to setup File Integrity Monitoring (FIM) using osquery. We will be using the Linux operating systems Ubuntu 18.04 and CentOS 7.<\/p>\n<h2>Prerequisites<strong><br \/><\/strong><\/h2>\n<ul>\n<li>Linux (Ubuntu or CentOS)<\/li>\n<li>Root privileges<\/li>\n<li>Completed first osquery guide<\/li>\n<\/ul>\n<h2 id=\"what-we-will-do\">What we will do<\/h2>\n<ol>\n<li>Install osquery on Linux Server<\/li>\n<li>Enable Syslog Consumption for osquery<\/li>\n<li>Basic osquery Configuration<\/li>\n<li>Configure File Integrity Monitoring osquery<\/li>\n<li>Testing<\/li>\n<\/ol>\n<h2 id=\"step-install-osquery-on-linux-server\">Step 1 &#8211; Install osquery on Linux Server<\/h2>\n<p>Osquery provides its own repository for all platform installation, and the first step we are going to do is installing the osquery package FROM the official osquery repository.<\/p>\n<h3 id=\"on-ubuntu\">On Ubuntu<\/h3>\n<p>Add the osquery key to the system.<\/p>\n<p class=\"command\">export OSQUERY_KEY=1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B<br \/>sudo apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys $OSQUERY_KEY<\/p>\n<p>Add the osquery repository and install the package.<\/p>\n<p class=\"command\">sudo add-apt-repository &#8216;deb [arch=amd64] https:\/\/pkg.osquery.io\/deb deb main&#8217;<br \/>sudo apt install osquery -y<\/p>\n<h3 id=\"on-centos\">On CentOS<\/h3>\n<p>Add the osquery key to the system.<\/p>\n<p class=\"command\">curl -L https:\/\/pkg.osquery.io\/rpm\/GPG | sudo tee \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-osquery<\/p>\n<p>Add and enable the osquery repository, and install the package.<\/p>\n<p class=\"command\">sudo yum-config-manager &#8211;add-repo https:\/\/pkg.osquery.io\/rpm\/osquery-s3-rpm.repo<br \/>sudo yum-config-manager &#8211;enable osquery-s3-rpm<br \/>sudo yum install osquery -y<\/p>\n<p>Wait for all packages to be installed.<\/p>\n<p><a class=\"fancybox\" id=\"img-1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux.png\" alt=\"Install osquery\" width=\"500\" height=\"253\" title=\"\"><\/a><\/p>\n<p><strong>Note:<\/strong><\/p>\n<p>If you get the error about the yum-config-manager command.<\/p>\n<p class=\"command\">sudo: yum-config-manager: command not found<\/p>\n<p>Install the &#8216;yum-utils&#8217; package.<\/p>\n<p class=\"command\">yum -y install yum-utils<\/p>\n<h2 id=\"step-enable-syslog-consumption-in-osquery\">Step 2 &#8211; Enable Syslog Consumption in osquery<\/h2>\n<p>Osquery provides features to read or consume system logs on the Apple MacOS using the Apple System Log (ASL), and for Linux is using the syslog.<\/p>\n<p>In this step, we will enable the syslog consumption for osquery through the rsyslog.<\/p>\n<h3 id=\"on-ubuntu-2\">On Ubuntu<\/h3>\n<p>Install the rsyslog package using the apt command below.<\/p>\n<p class=\"command\">sudo apt install rsyslog -y<\/p>\n<h3 id=\"on-centos-2\">On CentOS<\/h3>\n<p>Install the rsyslog package using the yum command below.<\/p>\n<p class=\"command\">sudo yum install rsyslog -y<\/p>\n<p>After the installation is complete, go to the &#8216;\/etc\/rsyslog.d&#8217; directory and create a new configuration file osquery.conf.<\/p>\n<p class=\"command\">cd \/etc\/rsyslog.d\/<br \/>vim osquery.conf<\/p>\n<p>Paste the following configuration there.<\/p>\n<pre>template(&#13; name=\"OsqueryCsvFormat\"&#13; type=\"string\"&#13; string=\"%timestamp:::date-rfc3339,csv%,%hostname:::csv%,%syslogseverity:::csv%,%syslogfacility-text:::csv%,%syslogtag:::csv%,%msg:::csv%\\n\"&#13;\n)&#13;\n*.* action(type=\"ompipe\" Pipe=\"\/var\/osquery\/syslog_pipe\" template=\"OsqueryCsvFormat\")&#13;\n<\/pre>\n<p>Save and exit.<\/p>\n<p><a class=\"fancybox\" id=\"img-2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-1.png\" alt=\"Configure osquery to read the syslog\" width=\"500\" height=\"199\" title=\"\"><\/a><\/p>\n<h2 id=\"step-basic-configuration-osquery\">Step 3 &#8211; Basic Configuration osquery<\/h2>\n<p>osquery default configuration is &#8216;osquery.conf&#8217;, usually located in the &#8216;\/etc\/osquery&#8217; directory. There are samples of the osquery configuration &#8216;\/usr\/share\/osquery\/osquery.conf&#8217; and sample of osquery packs configuration.<\/p>\n<p>In this step, we will learn about the osquery configuration components, create the custom osquery configuration, and then deploy the osqueryd as a service.<\/p>\n<p>osquery configuration formatted as a JSON file contains osquery configuration specifications described below.<\/p>\n<ul>\n<li>Options: part of the osqueryd CLI command and it determines the apps start and initialization.<\/li>\n<li>Schedule: Define flow of the scheduled query names to the query details.<\/li>\n<li>Decorators: Used to add additional &#8220;decorations&#8221; to results and snapshot logs.<\/li>\n<li>Packs: a group of the schedule queries.<\/li>\n<li>More: File Path, YARA, Prometheus, Views, EC2, Chef Configuration.<\/li>\n<\/ul>\n<p>Go to the &#8216;\/etc\/osquery&#8217; directory and create a new custom configuration &#8216;osquery.conf&#8217;.<\/p>\n<p class=\"command\">cd \/etc\/osquery\/<br \/>vim osquery.conf<\/p>\n<p>Paste the following configurations there.<\/p>\n<pre>{&#13; \"options\": {&#13; \"config_plugin\": \"filesystem\",&#13; \"logger_plugin\": \"filesystem\",&#13; \"logger_path\": \"\/var\/log\/osquery\",&#13; \"disable_logging\": \"false\",&#13; \"log_result_events\": \"true\",&#13; \"schedule_splay_percent\": \"10\",&#13; \"pidfile\": \"\/var\/osquery\/osquery.pidfile\",&#13; \"events_expiry\": \"3600\",&#13; \"database_path\": \"\/var\/osquery\/osquery.db\",&#13; \"verbose\": \"false\",&#13; \"worker_threads\": \"2\",&#13; \"enable_monitor\": \"true\",&#13; \"disable_events\": \"false\",&#13; \"disable_audit\": \"false\",&#13; \"audit_allow_config\": \"true\",&#13; \"host_identifier\": \"hakase-labs\",&#13; \"enable_syslog\": \"true\",&#13; \"syslog_pipe_path\": \"\/var\/osquery\/syslog_pipe\",&#13; \"force\": \"true\",&#13; \"audit_allow_sockets\": \"true\",&#13; \"schedule_default_interval\": \"3600\"&#13; },&#13;\n&#13;\n&#13; \"schedule\": {&#13; \"crontab\": {&#13; \"query\": \"SELECT * FROM crontab;\",&#13; \"interval\": 300&#13; },&#13; \"system_info\": {&#13; \"query\": \"SELECT hostname, cpu_brand, physical_memory FROM system_info;\",&#13; \"interval\": 3600&#13; },&#13; \"ssh_login\": {&#13; \"query\": \"SELECT username, time, host FROM last WHERE type=7\",&#13; \"interval\": 360&#13; }&#13; },&#13;\n&#13; \"decorators\": {&#13; \"load\": [&#13; \"SELECT uuid AS host_uuid FROM system_info;\",&#13; \"SELECT user AS username FROM logged_in_users ORDER BY time DESC LIMIT 1;\"&#13; ]&#13; },&#13;\n&#13; \"packs\": {&#13; \"osquery-monitoring\": \"\/usr\/share\/osquery\/packs\/osquery-monitoring.conf\"&#13; }&#13;\n}<\/pre>\n<p>Save and exit.<\/p>\n<p><strong>Note: <\/strong><\/p>\n<ul>\n<li>We&#8217;re using the &#8216;filesystem&#8217; as a config and logger plugins.<\/li>\n<li>Define the logger path to the &#8216;\/var\/log\/osquery&#8217; directory.<\/li>\n<li>Enable the syslog pip to the &#8216;\/var\/syslog\/syslog_pipe&#8217; file.<\/li>\n<li>On the scheduler, we define three queries for checking the crontab, system info, and ssh login.<\/li>\n<li>Enable the osquery packs named &#8216;osquery-monitoring&#8217;, and packs files located at the &#8216;\/usr\/share\/osquery\/packs&#8217; directory.<\/li>\n<\/ul>\n<p>Now start the osqueryd daemon service and enable it to launch every time at system boot.<\/p>\n<p class=\"command\">systemctl start osqueryd<br \/>systemctl enable osqueryd<\/p>\n<p>And restart the rsyslog service.<\/p>\n<p class=\"command\">systemctl restart rsyslog<\/p>\n<p>Basic configuration osquery has been completed.<\/p>\n<p><a class=\"fancybox\" id=\"img-3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/3.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-2.png\" alt=\"\" title=\"\"><\/a><\/p>\n<h2 id=\"step-configure-file-integrity-monitoring-fim-using-osquery\">Step 4 &#8211; Configure File Integrity Monitoring (FIM) Using osquery<\/h2>\n<p>Osquery provides File Integrity Monitoring on Linux and MacOS Darwin using the inotify and FSEvents. Simply, it monitors and detects any changes of files on the defined directory using the &#8216;file_path&#8217;and then store all activity to the file_events table.<\/p>\n<p>In this step, we will configure osquery to monitor important directories such as home, ssh directory, etc, tmp, and the www web root directory using custom FIM packs.<\/p>\n<p>Go to the &#8216;\/usr\/share\/osquery\/packs&#8217; directory and create a new packs configuration file &#8216;fim.conf&#8217;.<\/p>\n<p class=\"command\">cd \/usr\/share\/osquery\/packs<br \/>vim fim.conf<\/p>\n<p>Paste configurations below.<\/p>\n<pre>{&#13; \"queries\": {&#13; \"file_events\": {&#13; \"query\": \"SELECT * FROM file_events;\",&#13; \"removed\": false,&#13; \"interval\": 300&#13; }&#13; },&#13; \"file_paths\": {&#13; \"homes\": [&#13; \"\/root\/.ssh\/%%\",&#13; \"\/home\/%\/.ssh\/%%\"&#13; ],&#13; \"etc\": [&#13; \"\/etc\/%%\"&#13; ],&#13; \"home\": [&#13; \"\/home\/%%\"&#13; ],&#13; \"tmp\": [&#13; \"\/tmp\/%%\"&#13; ],&#13; \"www\": [&#13; \"\/var\/www\/%%\"&#13; ]&#13; }&#13;\n}<\/pre>\n<p>Save and exit.<\/p>\n<p>Now back to the &#8216;\/etc\/osquery&#8217; configuration directory and edit the osquery.conf file.<\/p>\n<p class=\"command\">cd \/etc\/osquery\/<br \/>vim osquery.conf<\/p>\n<p>Add the File Integrity Monitoring packs configuration inside the &#8216;packs&#8217; section.<\/p>\n<pre> \"packs\": {&#13; \"osquery-monitoring\": \"\/usr\/share\/osquery\/packs\/osquery-monitoring.conf\",&#13; \"fim\": \"\/usr\/share\/osquery\/packs\/fim.conf\"&#13; }<\/pre>\n<p><a class=\"fancybox\" id=\"img-4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-3.png\" alt=\"osquery file monitoring\" width=\"500\" height=\"170\" title=\"\"><\/a><\/p>\n<p>Save and exit, then restart the osqueryd service.<\/p>\n<p class=\"command\">systemctl restart osqueryd<\/p>\n<p><a class=\"fancybox\" id=\"img-5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-4.png\" alt=\"Restart osqueryd\" width=\"500\" height=\"169\" title=\"\"><\/a><strong><br \/><\/strong><\/p>\n<p><strong>Note:<\/strong><\/p>\n<p>Keep checking the JSON configuration file using the JSON linter &#8216;<a href=\"http:\/\/jsonlint.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/jsonlint.com\/<\/a>&#8216; and make sure there is no error.<\/p>\n<h2 id=\"step-testing\">Step 5 &#8211; Testing<\/h2>\n<p>We will test the File Integrity Monitoring packs by creating a new file on the defined directory &#8216;home&#8217; and &#8216;www&#8217;.<\/p>\n<p>Go to the &#8216;\/var\/www\/&#8217; directory and create a new file named &#8216;howtoforge.md&#8217;.<\/p>\n<p class=\"command\">cd \/var\/www\/<br \/>touch howtoforge.md<\/p>\n<p>Go to the &#8216;\/home\/youruser\/&#8217; directory and create a new file named &#8216;hakase-labs.md&#8217;.<\/p>\n<p class=\"command\">cd \/home\/vagrant\/<br \/>touch hakase-labs.md<\/p>\n<p>Now we will check all logs monitoring using the real-time interactive mode osqueryi and the logs of the osquery results.<\/p>\n<p><a class=\"fancybox\" id=\"img-6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-5.png\" alt=\"Testing osquery setup\" width=\"500\" height=\"151\" title=\"\"><\/a><\/p>\n<h3 id=\"osqueryi\">osqueryi<\/h3>\n<p>Run the osqueryi command below.<\/p>\n<p class=\"command\">osqueryi &#8211;config-path \/etc\/osquery\/osquery.conf<\/p>\n<p>Now check all logs about file changes in the &#8216;file_events&#8217; table.<\/p>\n<p>For global changes.<\/p>\n<p class=\"command\">select * from file_events;<\/p>\n<p>For &#8216;home&#8217; directory.<\/p>\n<p class=\"command\">select target_path, category, action, atime, ctime, mtime from file_events WHERE category=&#8221;home&#8221;;<\/p>\n<p>For the &#8216;www&#8217; web root directory.<\/p>\n<p class=\"command\">select target_path, category, action, atime, ctime, mtime from file_events WHERE category=&#8221;www&#8221;;<\/p>\n<p><a class=\"fancybox\" id=\"img-7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-6.png\" alt=\"Using osqueryi\" width=\"500\" height=\"241\" title=\"\"><\/a><\/p>\n<h3 id=\"osqueryd-results-log\">osqueryd results log<\/h3>\n<p>Go to the &#8216;\/var\/log\/osquery&#8217; directory and you will get the &#8216;osqueryd.results.log&#8217; file.<\/p>\n<p class=\"command\">cd \/var\/log\/osquery\/<br \/>ls -lah osqueryd.results.log<\/p>\n<p>Filter the osquery logs using the &#8216;grep&#8217; command.<\/p>\n<p class=\"command\">grep -rin howtoforge.md osqueryd.results.log<br \/>grep -rin hakase-labs.md osqueryd.results.log<\/p>\n<p>You will see info about those file has been created.<\/p>\n<p><a class=\"fancybox\" id=\"img-8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_setup_file_integrity_monitoring_fim_using_osquery_on_linux_server\/big\/8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-7.png\" alt=\"osqueryd results log\" width=\"500\" height=\"230\" title=\"\"><\/a><\/p>\n<p>The installation and configuration of the File Integrity Monitoring (FIM) on Linux Server Ubuntu and CentOS using osquery has been completed successfully.<\/p>\n<h2 id=\"reference\">Reference<\/h2>\n<div class=\"authorbox\" readability=\"15\">\n<p><strong>About Muhammad Arul<\/strong><\/p>\n<p>Muhammad Arul is a freelance system administrator and technical writer. He is working with Linux Environments for more than 5 years, an Open Source enthusiast and highly motivated on Linux installation and troubleshooting. Mostly working with RedHat\/CentOS Linux and Ubuntu\/Debian, Nginx and Apache web server, Proxmox, Zimbra Administration, and Website Optimization. Currently learning about OpenStack and Container Technology.<\/p>\n<\/div>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-server%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-8.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-server%2F&amp;text=How+to+Setup+File+Integrity+Monitoring+%28FIM%29+using+osquery+on+Linux&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-10.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-server%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/09\/how-to-setup-file-integrity-monitoring-fim-using-osquery-on-linux-11.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Osquery is an open source operating system instrumentation, monitoring, and analytics. Created by Facebook, it exposes an operating system as a high-performance relational database that can be queried using SQL-based queries. Osquery is a multi-platform software, can be installed on Linux, Windows, MacOS, and FreeBSD. It allows us to explore all of those operating systems&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-6593","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=6593"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6593\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}