10. Given the function $f(x)=x^{3}-a x^{2}+\left(a^{2}-2\right) x+1$, if there exists $m>0$, such that $f(m) \leqslant 0$, then the maximum value of the real number $a$ is $\qquad$ .
When $a=1$, $f(1)=0$, which satisfies the condition; when $a>1$, $f(x)=x^{3}-2 a x^{2}+a^{2} x+a x^{2}-2 x+1$ $=x(x-a)^{2}+a x^{2}-2 x+1>x^{2}-2 x+1 \geqslant 0$, so the maximum value of the real number $a$ is 1.