I have a software test which identifies if there is a virus inserted into a computer. However, there is 5% probability of false alarm (there is a 5% chance that the test will be positive when the virus is not inserted).
I run the test and comes out positive.
How can I conclude about whether the system is really infected or not?
This looks like an application of Bayes theorem.
What you're looking for is $ P(\text{infected} \mid \text{positive}) $. In order to get this, apply Bayes theorem.
Let:
$$ P(\text{positive} \mid \text{clean}) = 0.05 $$
and therefore,
$$ P(\text{negative} \mid \text{clean}) = 0.95 $$
Since $$ P(\text{infected} \mid \text{positive}) = \frac{P(\text{positive} \mid \text{infected})P(\text{infected})}{P(\text{positive})} $$
you actually don't have enough information to solve this problem, since you need the prior probability of a virus being inserted into the computer. You don't really need $ P(\text{positive}) $ since each of these variables are binary, so you can simply normalize them at the end.