The use of wireless links renders a vehicular ad-hoc network (VANET) vulnerable to malicious attacks such as Denial of Service, blackhole attack, Sybil attack, selective forwarding and altering routing information. In wired networks the attacker needs to gain access to the physical media to make an attack. In wireless networks the scenario is much different, there are no firewalls and gateways in place hence attacks can take place from any location within radio coverage area. Each mobile node in ad-hoc network is an autonomous unit in itself free to move independently. This means a node with not adequate physical protection is very much susceptible to be compromised. It is difficult to track down a single compromised node in a large network, attacks stemming from a compromised node are far more detrimental and much harder to detect.
Since the beginning of the covid-19 crisis, people from all over the world have used social media platforms to publish their opinions, sentiments, and ideas about the coronavirus epidemic and their news. Due to the nature of social networks, users share an immense amount of data every day in a freeway, which gives them the possibility to express opinions and sentiments about the coronavirus pandemic regardless of the time and the place. Moreover, The rapid number of exponential cases globally has become the apprehension of panic, fear, and anxiety among people. In this paper, we propose a new sentiment analysis approach to detect sentiments in Moroccan tweets related to covid-19 from March to October 2020. The proposed model is a recommender approach using the advantages of recommendation systems for classifying each tweet into three classes: positive, negative, or neutral. Experimental results show that our method gives good accuracy(86%) and outperforms the well-known machine learning algorithms. We find also that the sentiments of users changed from period to period, and that the evolution of the epidemiological situation in morocco affects the sentiments of users.