This is to a large extent adapted from here. You need to inject for tree={folder, grow'=0} whenever you want to start a folder. Your tree is a bit too wide, so I reduced the text width for all but the root nodes.
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{forest}
\useforestlibrary{edges}
\makeatletter
% remove the stray space https://tex.stackexchange.com/a/513549
\patchcmd{\pgfutilsolvetwotwoleqfloat}
{ \noexpand\pgfmathfloatdivide@}
{\noexpand\pgfmathfloatdivide@}
{}{}
\makeatother
\begin{document}
\noindent\begin{forest}
before typesetting nodes={
if={isodd(n_children("!r"))}{
for nodewalk/.wrap pgfmath arg={{fake=r,n=#1}{calign with current edge}}{int((n_children("!r")+1)/2)},
}{},
},
forked edges,
for tree={draw, minimum width=2cm, minimum height=1cm, rounded corners,
if level=0{}{text width=2cm}},
[IDS for Automotive CAN Bus System
[Deployment Strategy,for tree={folder, grow'=0}
[ECU]
[CAN]
[Gateway]
]
[Detection Approach
[Specification Based]
[Anomaly Based,for tree={folder, grow'=0}
[Machine Learning]
[Hybrid Based]
[Frequency Based]
]
[Signature Based]
]
[Attacking Technique,for tree={folder, grow'=0}
[DoS]
[Replay]
]
]
\end{forest}
\end{document}

showframe is only to show that this tree fits (yet just loading the geometry package makes the page a bit wider).
EDIT: Removed tempcounta/.max={level}{tree}, which was not used, big thanks to @cfr.
2nd EDIT: Added fix from https://tex.stackexchange.com/a/513549, following a suggestion by @cfr.
minimum width=2cm, minimum height=1cmandif level=0{}{text width=2cm}}. If you increase these dimensions, the nodes will get larger, but at a given point the tree might become too large. – Dec 01 '19 at 07:35\noindentbefore\begin{forest}moves the tree to the right? – Dec 03 '19 at 05:32tempcountathere, by the way. – cfr Dec 04 '19 at 02:45tikzpictures. Maybe they disappear at the start of the line (get swallowed by the paragraph indent) but not if the paragraph indent is nixed? Guessing ... (The space isn't in the tree itself, it seems ....) – cfr Dec 04 '19 at 02:51